GithubHelp home page GithubHelp logo

Convergence and force output about lavis HOT 2 CLOSED

salesforce avatar salesforce commented on May 23, 2024
Convergence and force output

from lavis.

Comments (2)

dxli94 avatar dxli94 commented on May 23, 2024

Hi @mcjinye, thanks for your interest.

You can change max_epoch to limit the number of epochs, see https://github.com/salesforce/LAVIS/blob/main/lavis/projects/blip/train/caption_coco_ft.yaml#L34.

We don't track the convergence of the model.

You may force saving the last model after the max_epochs by adding self._save_checkpoint(cur_epoch, is_best=False) to https://github.com/salesforce/LAVIS/blob/main/lavis/runners/runner_base.py#L387.

Thanks.

from lavis.

mcjinye avatar mcjinye commented on May 23, 2024

Hi @dxli94, thank you for the quick response! I think I misunderstand the tools. I can use the generated .pth file and register this model for my own use case. Is this the correct routine?

I have a follow-up question on this topic. I want to do a zero-shot classification with my own dataset. If I don't want to use the existing model, should I pretrain the base model (blip_pretrain) or tune this blip_feature_extractor? I notice that in the example you are using blip_feature_extractor. But when I retrain it, it seems like the repo is not supporting retraining blip_feature_extractor. (Although I feel like the final layer of blip_pretrain is what we have from blip_feature_extractor).

Sorry for a lot of questions. This is a great work. Thanks!

from lavis.

Related Issues (20)

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.