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
62c4fa1a
Commit
62c4fa1a
authored
Jun 17, 2021
by
Jiangxin Dong
Browse files
Upload New File
parent
aa1580c6
Changes
1
Show whitespace changes
Inline
Side-by-side
data/benchmark.py
0 → 100644
View file @
62c4fa1a
import
os
from
data
import
vsrdata
class
Benchmark
(
vsrdata
.
VSRData
):
"""
Data generator for benchmark tasks
"""
def
__init__
(
self
,
args
,
name
=
''
,
train
=
False
):
super
(
Benchmark
,
self
).
__init__
(
args
,
name
=
name
,
train
=
train
)
def
_set_filesystem
(
self
,
dir_data
):
if
self
.
args
.
template
==
"SVMAP"
:
self
.
apath
=
os
.
path
.
join
(
dir_data
)
if
not
self
.
args
.
test_only
:
self
.
dir_image_blur
=
os
.
path
.
join
(
self
.
apath
,
"blurredImage"
)
self
.
dir_image_gt
=
os
.
path
.
join
(
self
.
apath
,
"GTImage"
)
self
.
dir_image_kernel
=
os
.
path
.
join
(
self
.
apath
,
"kernelImage"
)
print
(
"validation image path :"
,
self
.
dir_image_blur
)
else
:
self
.
dir_image_blur
=
os
.
path
.
join
(
self
.
apath
,
"blurredImage"
)
self
.
dir_image_gt
=
os
.
path
.
join
(
self
.
apath
,
"blurredImage"
)
self
.
dir_image_kernel
=
os
.
path
.
join
(
self
.
apath
,
"kernelImage"
)
print
(
"validation 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