Grounded-Segment-Anything icon indicating copy to clipboard operation
Grounded-Segment-Anything copied to clipboard

questions on VISAM: how to fill --mot_path your_data_path?

Open aixiaodewugege opened this issue 1 year ago • 18 comments

Can you provide a more specific guide on how to reproduce your demo with VISAM?

aixiaodewugege avatar Apr 20 '23 09:04 aixiaodewugege

image for example, --mot_path=/data/Dataset/mot

fengxiuyaun avatar Apr 20 '23 10:04 fengxiuyaun

Thanks for your quick reply. But I think that it failed to load the config file, even if I use your settings. Did I miss anything?

Here is my error log:

(mmedit-sam) wushuchen@wushuchen:~/projects/SAM_test/Grounded-Segment-Anything$ python grounded_sam_visam.py --meta_arch motr --dataset_file e2e_dance --with_box_refine --query_interaction_layer QIMv2 --num_queries 10 --det_db det_db_motrv2.json --use_checkpoint --mot_path ./ --resume motrv2_dancetrack.pth --sam_checkpoint sam_vit_h_4b8939.pth --video_path DanceTrack/test/dancetrack0003

/home/wushuchen/anaconda3/envs/mmedit-sam/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and will be removed in 0.15, please use 'weights' instead. warnings.warn( /home/wushuchen/anaconda3/envs/mmedit-sam/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or None for 'weights' are deprecated since 0.13 and will be removed in 0.15. The current behavior is equivalent to passing weights=None. warnings.warn(msg) Training with Self-Cross Attention. None aaaaaaaaaaaaaaaaaaaaa Traceback (most recent call last): File "grounded_sam_visam.py", line 253, in detr, _, _ = build_model(args) File "/home/wushuchen/projects/SAM_test/Grounded-Segment-Anything/VISAM/models/init.py", line 19, in build_model return build_func(args) File "/home/wushuchen/projects/SAM_test/Grounded-Segment-Anything/VISAM/models/motr.py", line 731, in build num_frames_per_batch = max(args.sampler_lengths) TypeError: 'NoneType' object is not iterable

And my folder structed is as followed: image

aixiaodewugege avatar Apr 20 '23 11:04 aixiaodewugege

Sorry, you can use this param" --meta_arch motr --dataset_file e2e_dance --with_box_refine --batch_size 1 --sample_mode random_interval --sample_interval 10 --sampler_lengths 5 --merger_dropout 0 --dropout 0 --random_drop 0.1 --fp_ratio 0.3 --query_interaction_layer QIMv2 --query_denoise 0.05 --num_queries 10 --append_crowd --det_db det_db_motrv2.json --use_checkpoint --mot_path XXX --resume motrv2_dancetrack.pth --sam_checkpoint sam_vit_h_4b8939.pth --video_path DanceTrack/test/dancetrack0003", I will change readme

fengxiuyaun avatar Apr 20 '23 12:04 fengxiuyaun

I have the same problem:TypeError: 'NoneType' object is not iterable,thank you for your replay. Other question is: what's in e2e_dance dir?

dcjniwota avatar Apr 20 '23 12:04 dcjniwota

I have the same problem:TypeError: 'NoneType' object is not iterable,thank you for your replay. Other question is: what's in e2e_dance dir?

I think it is not a dir, it means only detect people.

aixiaodewugege avatar Apr 20 '23 12:04 aixiaodewugege

Yes, because we use motrv2 weight now. After we will release our code

fengxiuyaun avatar Apr 20 '23 13:04 fengxiuyaun

Yes, because we use motrv2 weight now. After we will release our code

Sorry to bother again. Do you actually use groundingDINO in grounded_sam_visam.py? I can't find your code using groundingDINO detector.

aixiaodewugege avatar Apr 20 '23 13:04 aixiaodewugege

No.

fengxiuyaun avatar Apr 20 '23 13:04 fengxiuyaun

Ok. Thanks.

Thank you for your work, it's wonderful !

aixiaodewugege avatar Apr 20 '23 13:04 aixiaodewugege

Here is my error new log when using the new command: image All test image data In /vdb1/dataset/visam/mot/DanceTrack/test/dancetrack0003/img1: image Looking forward to your reply~

dcjniwota avatar Apr 21 '23 04:04 dcjniwota

xxx.txt in --det_db det_db_motrv2.json. You can open det_db_motrv2.json, then you will see it

fengxiuyaun avatar Apr 21 '23 04:04 fengxiuyaun

image here. you need to delete “/vdb1/dataset/visam/mot/”

fter we release my code, this problem will no longer exist.

fengxiuyaun avatar Apr 21 '23 04:04 fengxiuyaun

Thanks for your guidance, I have got the final result: "visam.avi"file~ The end result is different from the VISAM in README.md.

dcjniwota avatar Apr 21 '23 07:04 dcjniwota

Sure, I'm using my own weights. Looking forward to our future code.

fengxiuyaun avatar Apr 21 '23 07:04 fengxiuyaun

i just want to use demo to test my own video, so why should i download the dataset into data folder

shixiaotong123 avatar May 12 '23 07:05 shixiaotong123

So... did anyone actually get this to run? And on their own video file?

arose26 avatar Sep 24 '23 14:09 arose26

Can anybody tell me where is det_db_motrv2.json

2018141043089 avatar Dec 17 '23 04:12 2018141043089

det_db_motrv2.json

这个不需要。假如真的想用,可以参考MOTRv2

fengxiuyaun avatar Jan 03 '24 02:01 fengxiuyaun