Code Monkey home page Code Monkey logo

Comments (7)

mjlm avatar mjlm commented on May 19, 2024 5

We're working on releasing the training code but cannot give a precise ETA yet. It will take at least a few more weeks. I'll keep you posted.

from scenic.

mjlm avatar mjlm commented on May 19, 2024 2

We just added fine-tuning instructions to the README.

The config is very similar to the from-scratch config. The only crucial difference is that instead of config.init_from.codebase = 'clip', it uses config.init_from.checkpoint_path = 'path/to/parent/checkpoint'.

However, some other changes may be necessary to get good fine-tuning result. They depend on the target dataset, so I can make only general recommendations:

  • If the dataset is small, very short fine-tuning schedules might be optimal. I would try values for config.num_training_steps starting as low as 500 steps and then keep doubling the value until performance is optimal.
  • The default learning rate is a good starting point, but it should be tuned. Try going up and down by a factor of 2 or 3.
  • Carefully go through the preprocessing settings and check if they make sense for your application. For example remove_forbidden_labels is only needed to measure zero-shot LVIS performance and therefore not included in the fine-tuning config. Also, if you have a dataset with a small, fixed label space, then you should probably get rid of the add_random_prompts op and simply add all categories that are not present in an image as negative labels directly in the dataset decoder.
  • Input resolution should be tuned. If your dataset contains mostly large objects, a smaller input resolution may lead to better results (and would be faster).

from scenic.

mjlm avatar mjlm commented on May 19, 2024 1

We just published the training code.
Please let us know if you have any questions.

from scenic.

HITerStudy avatar HITerStudy commented on May 19, 2024

@mjlm hello, thanks for your fancy work! When the all of codes can be updated? Please offer the full codes which include the configs for experiments published in the paper. Thanks!

from scenic.

ronhag avatar ronhag commented on May 19, 2024

Hi there! Exciting news about the training code, thanks a lot!

When could we expect finetuning instructions? Is it mostly similar to training detection from scratch (some smaller learning rate here and there)? Or are there any other tips to be aware of? :)

thanks so much!

from scenic.

unrue avatar unrue commented on May 19, 2024

Hi,

is there a complete example how to train Owl-vit? From my dataset having a lot of images, what I have to do? Such commands are quite cryptic. Thanks

from scenic.

shivarajabi avatar shivarajabi commented on May 19, 2024

hi, i have a dataset of only images, no text_queries and i want to use it as image one shot detection at the end, can i finetune the same way ?

from scenic.

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.