Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image shape not correct while using detect.py #224

Closed
kenrickfernandes opened this issue Apr 20, 2021 · 1 comment
Closed

Image shape not correct while using detect.py #224

kenrickfernandes opened this issue Apr 20, 2021 · 1 comment

Comments

@kenrickfernandes
Copy link

kenrickfernandes commented Apr 20, 2021

I run detect.py on an mp4 file as follows:
python3 detect.py --source ./vid.mp4 --output /test/ml/ScaledYOLOv4/tta_results_32epoch/ --weights runs/exp5_yolov4-p5/weights/best.pt --img-size 896 --device 0 --conf-thres 0.75

But, while inferencing I see that the image shape is 512,896.
video 1/1 (1/8451) /test/ml/darknet_detection_training/test_vids/020096.mp4: 512x896 Done. (0.190s)

Is it supposed to be this way?
How do I change it to inference on (896,896) images?

@kenrickfernandes kenrickfernandes changed the title Image shape not correct while Inferencing Image shape not correct while using detect.py Apr 20, 2021
@kenrickfernandes
Copy link
Author

Closing this issue as I have found the reason. It is clearly stated as a comment in the dataloaders.
To understand more, look at : ultralytics/yolov3#232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant