ghostnet_cifar10 icon indicating copy to clipboard operation
ghostnet_cifar10 copied to clipboard

ModuleNotFoundError: No module named 'models.ghost_net'

Open dreamitpossible1 opened this issue 5 years ago • 2 comments

运行python bin/02_main.py -gpu 1 0 -arc vgg16 -replace_conv进行训练提示:Traceback (most recent call last): File "bin/02_main.py", line 17, in from models.ghost_net import GhostModule ModuleNotFoundError: No module named 'models.ghost_net', 在models文件夹里面存在ghost_net,这是什么原因呢?

dreamitpossible1 avatar Oct 13 '20 03:10 dreamitpossible1

添加相应路径到环境变量当中,sys.path.append(你的包所在的目录) 具体可看:https://www.itdaan.com/blog/2017/05/04/9bcb827705ea999c44b5fc5eca2b20e6.html

在 2020-10-13 11:34:45,"dreamitpossible1" [email protected] 写道:

运行python bin/02_main.py -gpu 1 0 -arc vgg16 -replace_conv进行训练提示:Traceback (most recent call last): File "bin/02_main.py", line 17, in from models.ghost_net import GhostModule ModuleNotFoundError: No module named 'models.ghost_net', 在models文件夹里面存在ghost_net,这是什么原因呢?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

TingsongYu avatar Oct 13 '20 07:10 TingsongYu

谢谢大哥

------------------ 原始邮件 ------------------ 发件人: "TingsongYu"<[email protected]>; 发送时间: 2020年10月13日(星期二) 下午3:35 收件人: "TingsongYu/ghostnet_cifar10"<[email protected]>; 抄送: "鮗ぶ鮕ぢ~ .."<[email protected]>; "Author"<[email protected]>; 主题: Re: [TingsongYu/ghostnet_cifar10] ModuleNotFoundError: No module named 'models.ghost_net' (#6)

添加相应路径到环境变量当中,sys.path.append(你的包所在的目录) 具体可看:https://www.itdaan.com/blog/2017/05/04/9bcb827705ea999c44b5fc5eca2b20e6.html

在 2020-10-13 11:34:45,"dreamitpossible1" <[email protected]> 写道:

运行python bin/02_main.py -gpu 1 0 -arc vgg16 -replace_conv进行训练提示:Traceback (most recent call last): File "bin/02_main.py", line 17, in from models.ghost_net import GhostModule ModuleNotFoundError: No module named 'models.ghost_net', 在models文件夹里面存在ghost_net,这是什么原因呢?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

dreamitpossible1 avatar Oct 13 '20 07:10 dreamitpossible1