Open Hikaru-Furuta opened 3 years ago
FileNotFoundError: Download the YOLOv3 model using Pytorch, such as 'https://github.com/ultralytics/yolov3'. Then extract it, and rename it as 'yolov3'
Traceback (most recent call last):
File "darknet_yolov3_tiny.py", line 413, in
asn1crypto = 0.24.0 cycler = 0.10.0 dataclasses = 0.8 future = 0.18.2 idna = 2.6 importlib-metadata = 3.1.1 keyring = 10.6.0 keyrings.alt = 3.0 kiwisolver = 1.3.1 MarkupSafe = 1.1.1
onnx = 1.8.0 opencv-python = 4.5.1.48 pip = 21.0 protobuf = 3.14.0 py = 1.9.0 pycrypto = 2.6.1 pygobject = 3.26.1 pyparsing = 2.4.7
python-apt = 1.6.5+ubuntu0.3 python-dateutil = 2.8.1
pyxdg = 0.25 SecretStorage = 2.3.1 torchvision = 0.8.1 unattended-upgrades = 0.1 veriloggen = 1.8.2
# matplotlib = 3.3.3 numpy = 1.19.4 packaging = 20.7
pyverilog = 1.2.1 setuptools = 39.0.1 six = 1.11.0 wheel = 0.30.0 pytest = 6.1.2
FileNotFoundError: Download the YOLOv3 model using Pytorch, such as 'https://github.com/ultralytics/yolov3'. Then extract it, and rename it as 'yolov3'
Traceback (most recent call last): File "darknet_yolov3_tiny.py", line 413, in rslt = run(silent=False, verilog_filename='tmp.v') File "darknet_yolov3_tiny.py", line 77, in run model = models.Darknet(cfg_filename, img_size).to('cpu') AttributeError: module 'models' has no attribute 'Darknet'
It seems that the version of that repository 'ultralytics/yolov3' has been upgraded and is no longer supported, so checkout tags/v8 and give it a try.
@RyusukeYamano Thanks for the replying I've already tried it but found it wouldn't work causing the same error
@Hikaru-Furuta
Have you already tried adding the map in the repository manually, that is how it worked for me. yolov3-map-20210215T163716Z-001.zip
Thank you. I will try that
@Hikaru-Furuta
If it works out, I would appreciate you helping me with or sharing your version of the implementation on the FPGA as this is something I not yet managed to succeed in.
issue
I've tried to load an onnx-model that I had created using a module, "torch.onnx.export", from a ".pth"(Pytorch) model. The following codes are for these implimentaitions. Some nodes in my onnx-file couldn't be accepted by 'ng.from_onnx'. For example, 'ConvTranspose' is not supported in NNgen. As is written on NNgen's Git, I interpreted this as that existing models should be loaded from torchvision instead of creating onnx-file myself. Is there any possible ways to use my own onnx-file?
Converting a pytorch-file into onnx-file
Loading my own onnx-file. (Getting_started.py )
Loading my own onnx-file