greatlog / DAN

This is an official implementation of Unfolding the Alternating Optimization for Blind Super Resolution
231 stars 41 forks source link

Syntax error in test_single_img.py #12

Closed 4knahs closed 3 years ago

4knahs commented 3 years ago
Traceback (most recent call last):
  File "test_single_img.py", line 15, in <module>
    import options as option
  File "/home/SERILOCAL/mario.a/DAN/codes/config/DAN/options.py", line 10, in <module>
    from utils import OrderedYaml
  File "../../utils/__init__.py", line 1, in <module>
    from .deg_utils import *
  File "../../utils/deg_utils.py", line 88
    mask_iso = np.random.uniform(0, 1, (batch)) < rate_iso]
                                                          ^
SyntaxError: invalid syntax
4knahs commented 3 years ago

Also import utils.util as util should be import utils as util

greatlog commented 3 years ago

Yes, you are right. It seems that I have mixed the codes of different versions. I will try to fix it as soon as possible.