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

Would you release the code for the pseudo label generation and assignment? #4

Open
Scarecrow0 opened this issue Mar 1, 2022 · 8 comments

Comments

@Scarecrow0
Copy link

Scarecrow0 commented Mar 1, 2022

Hi!

Thanks for your interesting work and nice codebase on weakly supervised SGG. Your high-quality codebase and comments make me understand your proposed method concretely.

The pseude label generation and assignment is a much different design from previous works of weakly SGG. The generated labels have been provided here. However, I'm wondering about the technical details of seudo label generation and assignment in your work.
Do you have a plan to release the preprocess code for the pseudo label generation?

I'm looking forward to your reply.

@JingyuLi-code
Copy link

Hi, Yiwu. Same question! In my understanding, the quality of pseudo labels may greatly affect the quality of scene graph generation. Would you release the code for the pseudo label generation and assignment? Thanks!

@zyong812
Copy link

zyong812 commented Jul 9, 2022

Same question +1 about parsing labels from language. Have not found related code.

@YiwuZhong
Copy link
Owner

Hi @Scarecrow0 @JingyuLi-code @zyong812, thanks for your interests in our work!

Sorry for late response. I haven't got a chance to fully clean my preprocessing code. As you requested, I uploaded my functions used for preprocessing (https://github.com/YiwuZhong/SGG_from_NLS/tree/main/preprocess#pseudo-label-creation). You could use them as reference for your case.

@JingyuLi-code
Copy link

Hi @Scarecrow0 @JingyuLi-code @zyong812, thanks for your interests in our work!

Sorry for late response. I haven't got a chance to fully clean my preprocessing code. As you requested, I uploaded my functions used for preprocessing (https://github.com/YiwuZhong/SGG_from_NLS/tree/main/preprocess#pseudo-label-creation). You could use them as reference for your case.

Hi, Yiwu. Thanks for your reply. I have checked the link_cap_vg.py, which converts the predicted caption categories into VG standard categories.

How about matching sentence triplets to pairs of regions provided by the object detector. as the paper displays 'This is done by a greedy matching between every triplet from the caption and each region pair from the image.' How do I generate COCO_triplet_labels.npy files?

For pseudo label assignment, many image region pairs may correspond to a caption triple, this may lead to a wrong pseudo label. For example, for image region pairs 'man0', 'man1', 'boat', this will have <man0, boat>, <man1, boat> to correspond to a same caption triple <man, boat>. However, <man1, boat> may have no semantic relation. Do you have a good way to solve this problem?

@YiwuZhong
Copy link
Owner

Hi, Yiwu. Thanks for your reply. I have checked the link_cap_vg.py, which converts the predicted caption categories into VG standard categories.

How about matching sentence triplets to pairs of regions provided by the object detector. as the paper displays 'This is done by a greedy matching between every triplet from the caption and each region pair from the image.' How do I generate COCO_triplet_labels.npy files?

For pseudo label assignment, many image region pairs may correspond to a caption triple, this may lead to a wrong pseudo label. For example, for image region pairs 'man0', 'man1', 'boat', this will have <man0, boat>, <man1, boat> to correspond to a same caption triple <man, boat>. However, <man1, boat> may have no semantic relation. Do you have a good way to solve this problem?

@JingyuLi-code Thanks for your interest in our work. I provided the functions I used to process the pseudo labels link_det_cap.py.

The key idea is simply using WordNet or something equivalent to match the detection labels and caption nouns. If there are multiple objects with same detection class, we select the ones using heuristic approach. For example, inspired by MotifNet, we only care about the objects that have overlapping regions.

@ZHUXUHAN
Copy link

ZHUXUHAN commented Aug 27, 2022

The key idea is simply using WordNet or something equivalent to match the detection labels and caption nouns. If there are multiple objects with same detection class, we select the ones using heuristic approach. For example, inspired by MotifNet, we only care about the objects that have overlapping regions.

Thank you for your work, but for this generation of pseudo labels, can you open source the relevant code, just for the generation of COCO_triplet_labels.npy.

@shwetabhardwaj44
Copy link

Hi Authors, thanks for the code repository.
I also have the same question: can you make the code for COCO_triplet_labels.npy available to generate pseudo labels for given COCO-captions dataset.

@YiwuZhong
Copy link
Owner

Just release the code for parsing triplets from captions (parse_captions.py): https://github.com/YiwuZhong/SGG_from_NLS/tree/main/preprocess#pseudo-label-creation

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

6 participants