Giter Club home page Giter Club logo

Comments (6)

sezginerr avatar sezginerr commented on June 28, 2024

Hello @zhi-xuan-chen, thank you very much for your interest in our work. Are you using our zero-shot inference code to load checkpoints? Also, could you please check your torch version, which should be 2.0.1? It's unexpected because it works in my case. Discr blocks are not used in CT-CLIP anyway, as the encoder is from another work of ours that require discr blocks. Therefore, it would be better if I remove them from the checkpoints and the model code (as it takes some unnecessary GPU memory). I will send the PR for edited codes and update the weight files in hugging face today after ensuring they do not break anything.

from ct-clip.

sezginerr avatar sezginerr commented on June 28, 2024

Hello @zhi-xuan-chen, I have updated model weights and the transformer_maskgit code. Discr blocks should be removed now and it should work in your case as well. Please let me know if you can run the model.

from ct-clip.

zhi-xuan-chen avatar zhi-xuan-chen commented on June 28, 2024

OK! Only the transformer_maskgit code was changed, so I only need to update the code of this part?

from ct-clip.

zhi-xuan-chen avatar zhi-xuan-chen commented on June 28, 2024

I have noticed only ctvit.py was modified. I will try your new code immediately!

from ct-clip.

sezginerr avatar sezginerr commented on June 28, 2024

Yes, I only modified ctvit.py to remove weights that are not used in the forward run of CT-Clip. Let me know if you have any further inquiries on this!

from ct-clip.

zhi-xuan-chen avatar zhi-xuan-chen commented on June 28, 2024

The model checkpoint can be successfully loaded. Thank you very much!

from ct-clip.

Related Issues (14)

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.