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

Could you please provide the demo.py #12

Open
9p15p opened this issue Aug 5, 2022 · 15 comments
Open

Could you please provide the demo.py #12

9p15p opened this issue Aug 5, 2022 · 15 comments

Comments

@9p15p
Copy link

9p15p commented Aug 5, 2022

Could you please provide the demo.py for us to display visualization results like Detectron2.
But the one in Detectron2 is for image-leve and it cannot be used directly.

@lalalafloat
Copy link

lalalafloat commented Aug 10, 2022

https://github.com/lalalafloat/VNext/blob/main/projects/IDOL/demo_idol.py

python projects/IDOL/demo_idol.py --config-file projects/IDOL/configs/coco_pretrain/r50_coco_sequence.yaml --input input.png --output result.png

@luoolu
Copy link

luoolu commented Aug 13, 2022

ModuleNotFoundError: No module named 'MultiScaleDeformableAttention'

https://github.com/lalalafloat/VNext/blob/main/projects/IDOL/demo_idol.py

python projects/IDOL/demo_idol.py --config-file projects/IDOL/configs/coco_pretrain/r50_coco_sequence.yaml --input input.png --output result.png

ModuleNotFoundError: No module named 'MultiScaleDeformableAttention'

@CarlHuangNuc
Copy link

https://github.com/lalalafloat/VNext/blob/main/projects/IDOL/demo_idol.py

python projects/IDOL/demo_idol.py --config-file projects/IDOL/configs/coco_pretrain/r50_coco_sequence.yaml --input input.png --output result.png

Can you sucessfully run demo visualize ??

@Doan-IT
Copy link

Doan-IT commented Aug 22, 2022

I tried the above command.
However, the '--confidence-threshold' is not active.
Image output visual is not the same as the paper's description:
https://github.com/lalalafloat/VNext#visualization-results-on-ovis-valid-set

@CarlHuangNuc
Copy link

https://github.com/lalalafloat/VNext/blob/main/projects/IDOL/demo_idol.py

python projects/IDOL/demo_idol.py --config-file projects/IDOL/configs/coco_pretrain/r50_coco_sequence.yaml --input input.png --output result.png

i try to run on video inference visulize ,but failed.

@andreazuna89
Copy link

I tried to run python projects/IDOL/demo_idol.py but it is not finding the checkpoint. Have you any idea in which folder I have to put the pre-trained model?

Thanks

@andreazuna89
Copy link

#11 (comment)

@lalalafloat
Copy link

I tried to run python projects/IDOL/demo_idol.py but it is not finding the checkpoint. Have you any idea in which folder I have to put the pre-trained model?

Thanks

You can choose any folder to put the checkpoint, but you need to specify its weight in the configuration file. For example
https://github.com/lalalafloat/VNext/blob/d965e0f7af3ecdfdcf74ba14e0ad5443c06b68cc/projects/IDOL/configs/coco_pretrain/r50_coco_sequence.yaml#L13

@lalalafloat
Copy link

Sorry for replying so late. You can go to the folder "projects/IDOL/idol/models/ops", and then execute the following command: bash make.sh. If you compile successfully, and you can fix the bug.

@lalalafloat
Copy link

Yes, i can visualize detection results successfully, what problems or bugs do you met?

@andreazuna89
Copy link

Please continue in this issue:

#11 (comment)

@assia855
Copy link

@lalalafloat thanks for your suggestions, but I don't understand why I have this kind of output. Thanks for your help.
cow_idol

@Tharunguvvala67
Copy link

@CarlHuangNuc Hello. Have you solved the issue to run this code on video?

@netzahdzc
Copy link

@assia855 have you figured out the problem? I'm experiencing a similar issue

Screenshot 2023-03-14 at 14 03 50

@reno77
Copy link

reno77 commented Mar 23, 2023

I've updated the demo_idol.py from lalalafloat to visualize on videos. I've set is_multi_cls to False to match the IDs to the pred_scores.
My forked repo is over here https://github.com/reno77/VNext .
Cmd to infer on videos is : python projects/IDOL/demo_idol.py --config-file projects/IDOL/configs/ovis_swin.yaml --video-input input.mp4 --output output1.mp4

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

10 participants