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

How to do the relation inference with custom video? #15

Open
Puqi7 opened this issue Jul 28, 2024 · 3 comments
Open

How to do the relation inference with custom video? #15

Puqi7 opened this issue Jul 28, 2024 · 3 comments

Comments

@Puqi7
Copy link

Puqi7 commented Jul 28, 2024

Hi, I have followed your steps in stage 1 (IPS) and successfully got the segmentation and unitrack results.

However, when I follow the instructions on the preparation for the relation model (# Prepare for relation modeling: sh scripts/utils/prepare_rel_set.sh). I found that it requires the ground truth of relation to generate relation.pickle . If without relation.pickle, the following steps for relation inference (# Test sh scripts/test/test_relation_full.sh) could not work.

I wanner to know how could I get the relation prediction on my custom dataset without the gt relation (only: video.mp4+segmation results(frames mask)+unitrack results(qurey_feats.pickle)).

@Jingkang50
Copy link
Collaborator

In test_relation_full.sh, relation.pickle seems not necessary for relation inference, but only for evaluation. You may remove the code around relation.pickle in test_relation_full.py?

@Puqi7
Copy link
Author

Puqi7 commented Jul 31, 2024

Thanks for your quick response! I used query_feat.pickle as ['feats'] input instead of relation.pickle
I have another questions: Why the relation results.txt of the relation model(# Test sh scripts/test/test_relation_full.sh) only contains the subject, relation, object but no time information. (for example: from frame x- frame y)

@Puqi7
Copy link
Author

Puqi7 commented Aug 1, 2024

Thanks for your amazing code! I have found the frame_id in relation_span.

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