Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jiangxin Dong
SVMAP
Commits
026859b0
Commit
026859b0
authored
Jun 17, 2021
by
Jiangxin Dong
Browse files
Upload New File
parent
62c4fa1a
Changes
1
Show whitespace changes
Inline
Side-by-side
data/blur_image.py
0 → 100644
View file @
026859b0
import
os
from
data
import
vsrdata
# Data loader for blur images
class
BLUR_IMAGE
(
vsrdata
.
VSRData
):
def
__init__
(
self
,
args
,
name
=
'BLUR_IMAGE'
,
train
=
True
):
super
(
BLUR_IMAGE
,
self
).
__init__
(
args
,
name
=
name
,
train
=
train
)
def
_scan
(
self
):
names_sharp
,
names_blur
,
names_kernel
=
super
(
BLUR_IMAGE
,
self
).
_scan
()
return
names_sharp
,
names_blur
,
names_kernel
def
_set_filesystem
(
self
,
dir_data
):
if
self
.
args
.
template
==
"SVMAP"
:
print
(
"loading image..."
)
self
.
apath
=
os
.
path
.
join
(
dir_data
)
self
.
dir_image_blur
=
os
.
path
.
join
(
self
.
apath
,
"InputBlurredImage"
)
self
.
dir_image_gt
=
os
.
path
.
join
(
self
.
apath
,
"InputTargetImage"
)
self
.
dir_image_kernel
=
os
.
path
.
join
(
self
.
apath
,
"psfMotionKernel"
)
print
(
"Training image path:"
,
self
.
dir_image_blur
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment