ultralytics / yolov3

YOLOv3 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
10.16k stars 3.44k forks source link

Nothing was detected #31

Closed JingXiaolun closed 5 years ago

JingXiaolun commented 5 years ago

When I load the trained model and run the detected.py,I found no bounding boxes was detected,I was very confused,anyone who can give me some suggestions to solve the problem,thanks.

glenn-jocher commented 5 years ago
  1. Download the latest commit b25b16dcccb44e0e1b38bbe838252725718bbdb0.
  2. Place the downloaded yolov3.pt weights in the checkpoints directory
  3. Run detect.py. This will process any images in the data/samples folder.

The output will look like this:

Namespace(batch_size=1, cfg='cfg/yolov3.cfg', class_path='data/coco.names', conf_thres=0.5, image_folder='data/samples', img_size=416, nms_thres=0.45, output_folder='output', plot_flag=True, txt_out=False)
0 (3, 416, 416)
Batch 0... (Done 0.790 s)
image 0: 'data/samples/zidane.jpg'
2 persons
1 ties
glenn-jocher commented 5 years ago

For readme: zidane_out_spp zidane_out_tiny zidane_out