Closed AIisCool closed 2 months ago
Hi, sorry for the late reply. Could you check if the file HiT-SR/basicsr/models/hit_model.py
exists in your repo? If so, please try to run python setup.py develop
again and it should be able to find HITModel. Please let me know if that works. Thanks.
Thank you for the reply. Yes hit_model.py
is in the correct location and I ran python setup.py develop
again but I still get that error.
Edit:
Somehow managed to fix it but now get this error:
python basicsr/test.py -opt options/Test/test_single_x2.yml
Traceback (most recent call last):
File "C:\HiT-SR\basicsr\test.py", line 5, in <module>
from basicsr.data import build_dataloader, build_dataset
File "C:\Program Files\Python311\Lib\site-packages\basicsr\__init__.py", line 3, in <module>
from .archs import *
File "C:\Program Files\Python311\Lib\site-packages\basicsr\archs\__init__.py", line 16, in <module>
_arch_modules = [importlib.import_module(f'basicsr.archs.{file_name}') for file_name in arch_filenames]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\basicsr\archs\__init__.py", line 16, in <listcomp>
_arch_modules = [importlib.import_module(f'basicsr.archs.{file_name}') for file_name in arch_filenames]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\basicsr\archs\basicvsrpp_arch.py", line 8, in <module>
from basicsr.archs.basicvsr_arch import ConvResidualBlocks
File "C:\Program Files\Python311\Lib\site-packages\basicsr\archs\basicvsr_arch.py", line 7, in <module>
from .edvr_arch import PCDAlignment, TSAFusion
File "C:\Program Files\Python311\Lib\site-packages\basicsr\archs\edvr_arch.py", line 6, in <module>
from .arch_util import DCNv2Pack, ResidualBlockNoBN, make_layer
ImportError: cannot import name 'DCNv2Pack' from 'basicsr.archs.arch_util' (C:\Program Files\Python311\Lib\site-packages\basicsr\archs\arch_util.py)
Wired. I just tried on my Windows computer and everything seems fine on my side 🤔 This error looks like something is wrong with the basicsr package. Could you create a new virtual environment and follow here to re-install everything? Thanks
Fixed it. Is this how the output should look using HiT-SRF?
Yes, this looks good 👍