-
Notifications
You must be signed in to change notification settings - Fork 252
How to run captioning on any image? E.g. how to prepare the test.yaml and other required files required by the run_captioning.py? #183
Comments
Hi, Thank you so much for sharing. I tested and it really worked well. Can you please also provide us a demo on how to run |
hello,thank you so much for sharing.I tested it and found a bug when python tools/test_sg_net.py .I just executed each command in sequence,and I wonder if I did something wrong when executed your Colab notebook?Thank you for answering! 2022-03-08 05:49:34,799 maskrcnn_benchmark.data.build WARNING: When using more than one image per GPU you may encounter an out-of-memory (OOM) error if your GPU does not have sufficient memory. If this happens, you can reduce SOLVER.IMS_PER_BATCH (for training) or TEST.IMS_PER_BATCH (for inference). For training, you must also adjust the learning rate and schedule length according to the linear scaling rule. See for example: https://github.com/facebookresearch/Detectron/blob/master/configs/getting_started/tutorial_1gpu_e2e_faster_rcnn_R-50-FPN.yaml#L14 |
@Nidadadadada I encountered the same error at first and I think it's because we also need to modify the config yaml file. Right above the cell you executed the author writes:
|
I also meet your error, and I try your method, It works, thank you. |
Dears, @2021202420 @feifang24 @Amir-mjafari @jontooy I run it and I successfully generated the needed features and files. So do u face this issue? Thanks in advance! |
Hi eslambakr, Although this was for me long ago, I do recall having a similar issue. I don't think your features are wrong (If you doubled checked them and they look right, they should be right). Could you share the command you use to run the model? What settings do you use? I'd start with changing the BERT-model for a start. |
Thanks for your prompt response! |
@jontooy @eslambakr Hey! iv created the dataset using the three images present inside the above colab notebook... |
never mind got it fixed. |
@hamzakhalil798 I am also having trouble running image captioning. Can you please offer some guidance on how to set up oscar correctly and how to load the pre-trained checkpoints to accomplish this? |
The image contains classes seen in coco captioning dataset but I do not know how to extract the features for captioning using oscar+
The text was updated successfully, but these errors were encountered: