JialianW / TraDeS

Track to Detect and Segment: An Online Multi-Object Tracker (CVPR 2021)
MIT License
553 stars 108 forks source link

2 heads at the same time #41

Closed Ilyabasharov closed 3 years ago

Ilyabasharov commented 3 years ago

Hello! Thank you for this great work! I faced with small problem. I want to use 2 heads at the same time (to predict segmentation mask and 3D bbox). Now I can run it separately - or 3d bbox, or segmentation head. I am ready to take your trained weights and turn on 2 heads at the same time. But I don't understand where in code you turn on segmentation head? Please help.

best wishes, Ilya

JialianW commented 3 years ago

We use the keyword --seg in the run script for turning on the segmentation. You may go to the corresponding code with --seg to see how to run 3D and seg both at the same time.

Ilyabasharov commented 3 years ago

for example, I want to see the results of segmentation like on your intro video. What command should I type? For example this does not work python demo.py tracking --dataset youtube_vis --pre_hm --demo ../videos/nuscenes_mini.mp4 --pre_thresh 0.5 --track_thresh 0.05 --load_model ../models/coco_seg.pth --gpus 0 --clip_len 2 --trades --box_nms 0.7 --save_video --resize_video --input_h 544 --input_w 960 --seg

Because of

Screenshot 2021-09-17 at 01 00 43

So what should I type or fix/add in code? Thanks.

Ilyabasharov commented 3 years ago

@JialianW pls help

JialianW commented 3 years ago

Sorry, we didn't provide the segmentation demo code. What I did in the video is that I tested the whole dataset and visualized them on my own.

Ilyabasharov commented 3 years ago

@JialianW maybe u have that code now? or link to it? just for optimise time. Thanks for understanding

JialianW commented 3 years ago

What we have for segmentation now is https://github.com/JialianW/TraDeS/blob/0443c36c2ec716ade2fd2e9748deed1d36f172cd/experiments/youtube_vis.sh

Ilyabasharov commented 3 years ago

@JialianW yes, I already used it. I want to visualise the results. After your script execution I got json file with results. Maybe u have a code to convert json to visualisation? I got it that right now in your GitHub there is not that code, but maybe u used another code in open source repos. Of course I can analyse the structure in your json and write my own code but it takes time. Thanks for understanding

JialianW commented 3 years ago

I believe many instance segmentation github repos have such code.

Ilyabasharov commented 3 years ago

for future users: if u interested in several heads, u should change the code when model will be being read and results will be being visualised. so write to me and I'll explain.

Jx-Tan commented 2 years ago

Hi @Ilyabasharov We try to train on mot dataset. But We don't know where Head Network(such as 2D detection, 3D detection and Instace segmentation) plays, can you tell me where this part is in the code.

Thanks a lot.