运行推理单元时出现以下错误消息。但我是初学者,所以我不知道。我应该怎么办?
Traceback (most recent call last):
File "test_video.py", line 28, in <module>
from archs.gfpganv1_arch import GFPGANv1
ModuleNotFoundError: No module named 'archs'
然后,我针对必要的库 facexlib、basicsr、GFPGAN 和 SimSwap 尝试了 git reset 命令或更多命令。尽管情况并没有改变,只是在推理单元上打印了以下消息。
Traceback (most recent call last):
File "test_video.py", line 84, in <module>
model = create_model(opt)
File "/content/SimSwap/models/models.py", line 18, in create_model
model.initialize(opt)
File "/content/SimSwap/models/fs_model.py", line 71, in initialize
self.load_network(self.netG, 'G', opt.which_epoch, pretrained_path)
File "/content/SimSwap/models/base_model.py", line 58, in load_network
raise('Generator must exist!')
TypeError: exceptions must derive from BaseException
Error!
谢谢你。