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

About the COCO data file path #3

Open
dreamwish1998 opened this issue Sep 11, 2022 · 18 comments
Open

About the COCO data file path #3

dreamwish1998 opened this issue Sep 11, 2022 · 18 comments

Comments

@dreamwish1998
Copy link

What should the file path under datasets/coco/ be, for example, whether the train2014 and val2014 data folders are separate or together (trainval2014)? Thanks!

@GuangxingHan
Copy link
Owner

GuangxingHan commented Sep 11, 2022

We followed the previous work (TFA, ICML 2020) to prepare the dataset (https://github.com/ucbdrive/few-shot-object-detection/tree/master/datasets). Please see below for an overview of the coco folder.

coco/
  annotations/
    trainvalno5k.json
    instances_val2014.json     # same as the 5k.json
    ...  # few-shot annotations
  trainval2014/
    # the combination of train2014 and val2014
  val2014/
    # the original val2014
  ... # few-shot training examples

@dreamwish1998
Copy link
Author

我们按照之前的工作(TFA、ICML 2020)准备数据集(https://github.com/ucbdrive/few-shot-object-detection/tree/master/datasets)。请参阅下面的 coco 文件夹概述。

coco/
  annotations/
    trainvalno5k.json
    instances_val2014.json     # same as the 5k.json
    ...  # few-shot training examples
  trainval2014/
    # the combination of train2014 and val2014
  val2014/
    # the original val2014

I got it, thanks!

@dreamwish1998
Copy link
Author

One more question, after running the data processing program in the datasets/coco or datasets/pascal_voc folder, will the original coco or VOC image data still be called by the training or test code? and can they be deleted from the folder? thank you very much!

@GuangxingHan
Copy link
Owner

No, they should not be deleted. We do not save the original images anywhere else with our scripts.

@dreamwish1998
Copy link
Author

Thanks, is it possible for you to post the pre-trained weights of the base stage (meta-train)? Thank you very much!

@GuangxingHan
Copy link
Owner

Sure. Please see this link for our meta-trained model on the MSCOCO dataset.

@dreamwish1998
Copy link
Author

If I want to see whether I reproduce the paper's experimental results, what fields of which files should I see? Thanks!!!

@GuangxingHan
Copy link
Owner

Please run the scripts in this repo with both meta-learning and fine-tuning. It will automatically run the evaluation and report the testing results at the end of log for each shot.

Could you please let me know which step are you at?

@dreamwish1998
Copy link
Author

Thanks for the heads up, the code I'm running right now is in the evaluation stage and not over yet. Also, how should I set other hyperparameters when I can't set the batch size to 8 and set it to 4 for now? such as learning rate. Thanks!

@GuangxingHan
Copy link
Owner

I have not tried this before, but you can try different values for the learning rate, like keeping the same value or decreasing the value a little bit.

@dreamwish1998
Copy link
Author

When the few-shot finetune stage is performed on the COCO dataset, where does the field "ROI_BOX_HEAD:GAMMA_NUM: 2" in the config file work, and what does it mean? Why do I get an error involving this field when I run the few-shot finetune script? Thank you very much for being so patient!

@GuangxingHan
Copy link
Owner

This has been removed from the config files. Thanks for the feedback.

@dreamwish1998
Copy link
Author

How can I visualize the results of training or inference on the image in this project? Thank you very much!

@GuangxingHan
Copy link
Owner

GuangxingHan commented Oct 2, 2022

Can you be more specific what do you want to visualize?
For example, you can try to visualize the constructed graph following the code/paper.

@dreamwish1998
Copy link
Author

Can you be more specific what do you want to visualize? For example, you can try to visualize the constructed graph following the code/paper.

I currently want to observe the model's inference results, such as which samples are inferring well. So I want to feed back the final output to the original image for final visualization, specifically in the form of a box. Could you provide some guidance, thanks a lot!

@GuangxingHan
Copy link
Owner

I see. You can visualize the final predicted boxes here using the visualization function here

@yomik-js
Copy link

Can you be more specific what do you want to visualize? For example, you can try to visualize the constructed graph following the code/paper.

hello, if I want to visualize the constructed graph, what should I do? I cannot find the folder code/paper.

@GuangxingHan
Copy link
Owner

You can follow the code here ss_edge and _process_per_class, which define the inter-class and intra-class graphs respectively. You can try to visualize the graph with the nodes and edge weights defined in the above functions.

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

3 participants