Code Monkey home page Code Monkey logo

Comments (3)

fawazsammani avatar fawazsammani commented on September 15, 2024

Hi @kaipo-chang
Are you changing any of the hyperparameters during training? Are you initializing with the pretrained model? Are you running the filter_and_get_scores function? Are you using the coco-caption i indicated in the readme?

I recommend you first use the checkpoint I provided and see if you can get the scores reported in the paper. Or you can directly provide the json output result I provided. If you do not get the correct scores, then there is probably a different coco-caption you are using?

from nlxgpt.

kaipo-chang avatar kaipo-chang commented on September 15, 2024

Thank you for your rapid reply. After your kindly reminder, I found that I forget to set finetuned_pretrained to True. Therefore, the distilGPT2 is initialized from Huggingface. Sorry for making this stupid error.

On the other hand, I would like to ask you why the clip-vit encoder would be fixed during finetuning. Do you have done the related experiments?

from nlxgpt.

fawazsammani avatar fawazsammani commented on September 15, 2024

@kaipo-chang finetuning clip is not that safe and easy as you expect. You need to follow carefully very specific guides and hyperparameters in order for it to work. And above all that it may not work at the end. You can find these guides and hyperparameters somewhere in one of the issues of the clip github repo i think. I remember following them, and it ended up not working at all. Also, I think keeping a strong modality featurizer fixed (e.g., image features) and training the other (text) has a good impact (topic of the popular LiT paper published also in CVPR 2022). Also, training becomes much faster in this case. You may try finetuning CLIP, and would love to hear from you if you could make it work!

Feel free to open this issue again if you still face any problems!
Regards

from nlxgpt.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.