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

Where is network.yolo

Open JunShao-Hub opened this issue 7 years ago • 3 comments

Excuse me, where is yolo.weights, thank you!

Traceback (most recent call last): File "tools/yad2t.py", line 13, in from network.yolo import yolo ImportError: No module named network.yolo

JunShao-Hub avatar Dec 29 '17 05:12 JunShao-Hub

  1. You can download the weights and cfg from offical website
  2. Due to the line of sys.path.append('..'): You should run it under the directory of tools (You can delete this line if you run in IDE---like Pycharm)

AceCoooool avatar Dec 29 '17 14:12 AceCoooool

Can't seem to resolve this issue still!
File "yad2t.py", line 12, in from network.yolo import yolo ModuleNotFoundError: No module named 'network.yolo'; 'network' is not a package

ipshita2396 avatar Sep 26 '21 19:09 ipshita2396

It seems to work when you add the following on top of the yad2t.py under tools/ directory.

current_dir = os.path.dirname(os.path.realpath(__file__))
to_network = os.path.join(current_dir, '..')

sys.path.append(to_network)
from network.yolo import yolo

Srking501 avatar May 28 '24 14:05 Srking501