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

--augment agrument does not work in predict.py file. #21

Open
Vlad188-1 opened this issue Oct 26, 2022 · 4 comments
Open

--augment agrument does not work in predict.py file. #21

Vlad188-1 opened this issue Oct 26, 2022 · 4 comments

Comments

@Vlad188-1
Copy link

Vlad188-1 commented Oct 26, 2022

Hello! Thank you for your repository. I have a question for you. I trained yolov7 segmentation om my custom dataset and I want to do inference for the video.
This command works fine:
python3 segment/predict.py --weights "/home/user/Disk/Priroda/git_reps/yolov7-segmentation/runs/train-seg/yolov7-seg18/weights/best.pt" --source "/home/user/Disk/Whales/From_Sasha_3/20_01/crop1_DJI_0481.mp4" --imgsz 640

When I want to slightly increase quality of inference I specify --augment parameter but it does not work.

Report error looks like this:
photo_1

@RizwanMunawar
Copy link
Owner

@Vlad188-1! it seems the error is related to the None type, Let me test the issue in detail and then I will let you know or maybe directly able to fix it.

@Vlad188-1
Copy link
Author

@RizwanMunawar Ok. Thank you!

@RizwanMunawar
Copy link
Owner

@Vlad188-1 The save-txt module is added for segmentation. You can use the mentioned command below to get coordinates of segmented area.
python3 segment/predict.py --weights yolov7-seg.pt --source "videopath.mp4" --save-txt

For --augment argument issue, I will resolve as soon as possible

@Vlad188-1
Copy link
Author

@RizwanMunawar Thank you for your work!

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

2 participants