Comments (13)
You tried to use BasicSR code to run the model. You need to use the code from this specific repository.
from hat.
@dkobayas-cyber The blog means to add the three modules to the system path.
from hat.
https://github.com/XPixelGroup/HAT#installation
from hat.
请问这个问题解决了吗,我匹配了requirement.txt还是会报这个错
from hat.
同样的问题
from hat.
You tried to use BasicSR code to run the model. You need to use the code from this specific repository.
I follow the installation from https://github.com/XPixelGroup/HAT#installation, and run the HAT/test.py, and then this bug appear. I cannot understand "use the code from this specific repository". How can I solve this problem? Thank you
from hat.
This error occurs because there is a problem with the basicsr environment. The reason may be
- the hat environment is not installed correctly (
python setup.py develop
is not implemented), referring to https://github.com/XPixelGroup/HAT#installation. - there are more than one basicsr existing in the current environment, and the wrong library is used.
from hat.
Is it solved, please? I'm having the same issue too
请问解决了吗?我也遇到相同的问题了
from hat.
You tried to use BasicSR code to run the model. You need to use the code from this specific repository.
I follow the installation from https://github.com/XPixelGroup/HAT#installation, and run the HAT/test.py, and then this bug appear. I cannot understand "use the code from this specific repository". How can I solve this problem? Thank you
https://blog.csdn.net/qq_41620742/article/details/129267462
from hat.
I'm having the same problem. When I run python setup.py develop
, I get a long warning message like the one below at the beginning. @chxy95, do you think this is the root cause? II'm not sure if it helps, but I also attach the full messages on the terminal.
depot/cfrueh/apps/env_hat/lib/python3.8/site-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
running develop
/depot/cfrueh/apps/env_hat/lib/python3.8/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/depot/cfrueh/apps/env_hat/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
from hat.
I am not certain if the reported error is due to the installation order of Pytorch and BasicSR environment. Generally, in a clean conda environment, I would install Pytorch first, then execute the hat environment installation. I have never encountered the error reported. If you have encountered similar issues and are certain that the installation process is correct, you may refer to the following blog to see if it can be resolved.
You tried to use BasicSR code to run the model. You need to use the code from this specific repository.
I follow the installation from https://github.com/XPixelGroup/HAT#installation, and run the HAT/test.py, and then this bug appear. I cannot understand "use the code from this specific repository". How can I solve this problem? Thank you
from hat.
@chxy95 Thanks for the link. If I understand correctly, I need to change the lines:
import hat.arch
import hat.data
import hat.models
into
from hat.models import *
Is my understanding correct? I'm not sure in which file I need to make this modification. Do I need to do it only in train.py
and test.py
? Any other code in which I need to make this modification?
By the way, I printed the MODEL_REGISTRY
variable by:
from basicsr.utils.registry import MODEL_REGISTRY
print(MODEL_REGITSTRY._obj_map)
and it shows:
{'SRModel': basicsr.models.sr_model.SRModel,
'VideoBaseModel': basicsr.models.video_base_model.VideoBaseModel,
'VideoRecurrentModel': basicsr.models.video_recurrent_model.VideoRecurrentModel,
'VideoRecurrentGANModel': basicsr.models.video_recurrent_gan_model.VideoRecurrentGANModel,
'SRGANModel': basicsr.models.srgan_model.SRGANModel,
'VideoGANModel': basicsr.models.video_gan_model.VideoGANModel,
'SwinIRModel': basicsr.models.swinir_model.SwinIRModel,
'EDVRModel': basicsr.models.edvr_model.EDVRModel,
'StyleGAN2Model': basicsr.models.stylegan2_model.StyleGAN2Model,
'HiFaceGANModel': basicsr.models.hifacegan_model.HiFaceGANModel,
'ESRGANModel': basicsr.models.esrgan_model.ESRGANModel
It seems like some models are successfully registered but not the HATModel
for some reason...
from hat.
@chxy95 I was misunderstanding something because of a mistranslation. The model works perfectly after the modifications. Thanks!
from hat.
Related Issues (20)
- SR replication results mismatch reported values on certain datasets HOT 5
- 训练iteration数? HOT 4
- fine tuning Real_HAT_mse model with paired dataset HOT 2
- Scale by 2 or 8?
- 单通道训练问题 HOT 3
- RuntimeError: NCCL invalid usage HOT 1
- Having problem while Training on low resolution images
- How to use the package in Mac with M1/M2 chip
- How you calculate macs and params?
- Inquiry on HAT Application for Same-Size Super Resolution HOT 5
- How to modify basicsr code and apply to HAT model? HOT 2
- Can't Reproduce the Results of SRx3
- How can I calculate PSNR&SSIM with only LR images in HAT_SRX4_ImageNet-LR.yml?Thank you!
- Does the Real-HAT have a small version like HAT-S? HOT 6
- Half precision (fp16) Training and Inference of the HAT models HOT 3
- TypeError: calculate_psnr() missing 1 required positional argument: 'img2' HOT 2
- Tại bài hát mới
- Question about the forward method HOT 3
- 1x模型权重
- How to limit the range of the super-resolved image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hat.