Open haideralimughal opened 3 years ago
Replace ‘from ResNet import B2_ResNet’ with ‘from model.ResNet import B2_ResNet’
This is due to the python version. If you use python 3, you might use "from model.ResNet import B2_ResNet" instead. Or "from ResNet import B2_ResNet" if you are using python 2.7.
On Mon, 12 Apr 2021 at 17:05, Abiuzz @.***> wrote:
Replace ‘from ResNet import B2_ResNet’ with ‘from model.ResNet import B2_ResNet’
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JingZhang617/UCNet/issues/10#issuecomment-817545210, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE6B4F3DH5DHRGKQGFXEZV3TIKLVBANCNFSM4VW33HVA .
-- Jing Zhang Ph.D. Student College of Engineering and Computer Science, Australian National University. Email: @.***
python train.py Traceback (most recent call last): File "train.py", line 8, in
from model.ResNet_models import Generator
File "/home/ali/UCNet-master/model/ResNet_models.py", line 5, in
from ResNet import B2_ResNet
ModuleNotFoundError: No module named 'ResNet'