Giha Ryu

Results 7 comments of Giha Ryu

Does the same problem occur after running the code below? ``` from tool import darknet2pytorch import torch # load weights from darknet format model = darknet2pytorch.Darknet('path/to/cfg/yolov4-416.cfg', inference=True) model.load_weights('path/to/weights/yolov4-416.weights') # save...

@gauravgund Code should run on the top-level folder of this repository. So the module imported here should be `/pytorch-YOLOv4/tool`, not `/usr/local/lib/python3.7/dist-packages/tool`.

@gauravgund I've never seen such an error... What pre-trained model did you use? Could you check the cfg file? Is the last layer is \[yolo]?

@gauravgund well..., I am not sure what is causing this problem. It seems good to open up to other issues and ask others for help.

@thatITfox I think [demo.py](https://github.com/Tianxiaomo/pytorch-YOLOv4/blob/master/demo.py) can help you. code below shows you how to load a model from pytorch model. https://github.com/Tianxiaomo/pytorch-YOLOv4/blob/a65d219f9066bae4e12003bd7cdc04531860c672/demo.py#L65-L67 although code from another function, you can process image as...

@mathur01 I think the issue seems to be the same cause as [mentioned above](https://github.com/Tianxiaomo/pytorch-YOLOv4/issues/281#issuecomment-835822081). > Code should run on the top-level folder of this repository. So the module imported here...

* Environment: container - nvidia/cuda:11.3.1-cudnn8-devel-centos7 * Branch: ```commit 62e5549cef53bd11890808615e0bfae59cfd4491 Author: Stphane Charette Date: Wed Sep 21 04:03:47 2022 -0700 Make sure best.weights is the most recent weights for a given...