Closed 1404971870 closed 1 year ago
我已经解决了,是因为basicsr缺少了metrics子文件夹
我已经解决了,是因为basicsr缺少了metrics子文件夹
你好,我也遇到这个问题,请问你是从哪里补充的metrics子文件的呢?
我已经解决了,是因为basicsr缺少了metrics子文件夹
你好,我也遇到这个问题,请问你是从哪里补充的metrics子文件的呢?
got to basicSR repo link https://github.com/XPixelGroup/BasicSR/tree/master, metrics folder is ./basicr/metrics
已经安装了basicsr包,但是运行sh inf_moe_8x.sh报错ModuleNotFoundError: No module named 'basicsr.metrics'。我服上了完整报错信息以及我的环境包目录。 全部报错信息如下: Traceback (most recent call last): File "/data/sunys/program/Frequency_Aug_VAE_MoESR/Frequency_Aug_VAE_MoESR/sr_8x_inf/sr_val_ddim_moe.py", line 18, in
from basicsr.utils.imresize import imresize
File "/data/sunys/program/Frequency_Aug_VAE_MoESR/Frequency_Aug_VAE_MoESR/sr_8x_inf/basicsr/init.py", line 6, in
from .metrics import
ModuleNotFoundError: No module named 'basicsr.metrics'
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 25366) of binary: /data/sunys/miniconda3/envs/moe_sr/bin/python
Traceback (most recent call last):
File "/data/sunys/miniconda3/envs/moe_sr/bin/torchrun", line 33, in
sys.exit(load_entry_point('torch==1.12.1', 'console_scripts', 'torchrun')())
File "/data/sunys/miniconda3/envs/moe_sr/lib/python3.9/site-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 345, in wrapper
return f( args, **kwargs)
File "/data/sunys/miniconda3/envs/moe_sr/lib/python3.9/site-packages/torch/distributed/run.py", line 761, in main
run(args)
File "/data/sunys/miniconda3/envs/moe_sr/lib/python3.9/site-packages/torch/distributed/run.py", line 752, in run
elastic_launch(
File "/data/sunys/miniconda3/envs/moe_sr/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 131, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/data/sunys/miniconda3/envs/moe_sr/lib/python3.9/site-packages/torch/distributed/launcher/api.py", line 245, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
sr_val_ddim_moe.py FAILED
Failures: