yolo2-pytorch icon indicating copy to clipboard operation
yolo2-pytorch copied to clipboard

ModuleNotFoundError: No module named 'layers.reorg._ext.reorg_layer._reorg_layer'

Open happyjin opened this issue 6 years ago • 7 comments

Hi all: There is an error when I run: python demo.py

(myenv) lijins-MacBook-Pro:yolo2-pytorch-master lijin$ python demo.py Traceback (most recent call last): File "demo.py", line 6, in from darknet import Darknet19 File "/Users/lijin/Documents/GitHub/RL_tracking/yolo2-pytorch-master/darknet.py", line 8, in from layers.reorg.reorg_layer import ReorgLayer File "/Users/lijin/Documents/GitHub/RL_tracking/yolo2-pytorch-master/layers/reorg/reorg_layer.py", line 3, in from ._ext import reorg_layer File "/Users/lijin/Documents/GitHub/RL_tracking/yolo2-pytorch-master/layers/reorg/_ext/reorg_layer/init.py", line 3, in from ._reorg_layer import lib as _lib, ffi as _ffi ModuleNotFoundError: No module named 'layers.reorg._ext.reorg_layer._reorg_layer'

Could anyone tell me what is wrong with this error and how to deal with it? Thanks in advance!

happyjin avatar Feb 28 '18 14:02 happyjin

Did you run sh make.sh first?

longcw avatar Mar 06 '18 09:03 longcw

Yes, I do. But then it comes an error: 'cffi.error.VerificationError: LinkError: command 'gcc' failed with exit status 1' Could you please tell me how to fix the error and run the code

happyjin avatar Mar 23 '18 16:03 happyjin

exact same errors experienced Ubuntu 16.04 + python 3.6

shirishr avatar Mar 26 '18 02:03 shirishr

The author says: "2. Build the reorg layer (tf.extract_image_patches)" then configure the .sh file the step 2 may miss some necessities.

libzzluo avatar Apr 10 '18 03:04 libzzluo

Do you resolve the problem? How to build the reorg layer? Can you tell me? Thank you very much.

sitongzhen avatar Oct 12 '18 13:10 sitongzhen

update on how this problem was solved?

sheepdnb avatar Mar 28 '19 15:03 sheepdnb

Did you run sh make.sh

Did you run sh make.sh first?

Hi,how are you? You mean that if I want to directly run train.py I also have to run make.sh first ? Cause now I meet up with the seam problem shows that No module named 'layers.reorg._ext.reorg_layer._reorg_layer'.

EddieEduardo avatar May 26 '19 00:05 EddieEduardo