Coder Social home page Coder Social logo

Comments (7)

kaushikb11 avatar kaushikb11 commented on May 18, 2024

Hi @Zumbalamambo, this is because you are freezing the backbone (resnet18 here), hence the optimizer receives an empty parameter list while finetuning. A couple of points to note, the default epoch at which it unfreezes in the freeze_unfreeze strategy is 10. Also, you could add a head to your ImageEmbedder Model by

embedder = ImageEmbedder(backbone="resnet18", embedding_dim=1024)

from lightning-flash.

Zumbalamambo avatar Zumbalamambo commented on May 18, 2024

@kaushikb11 thank you! Is it possible to increase the input size of the ImageEmbedder ?

from lightning-flash.

kaushikb11 avatar kaushikb11 commented on May 18, 2024

@Zumbalamambo What do you mean by input size of the ImageEmbedder? If you mean the Input size of the images, we have default preprocessing transforms in place to resize your input image data :)

from lightning-flash.

Zumbalamambo avatar Zumbalamambo commented on May 18, 2024

@kaushikb11 thank you! I have one another doubt, how do you determine the value of embedding_dim? I used vgg16 and selected an embedding_size of 4096 but then it threw the following error ,

RuntimeError: mat1 and mat2 shapes cannot be multiplied (4x512 and 4096x4096)

from lightning-flash.

kaushikb11 avatar kaushikb11 commented on May 18, 2024

Hi @Zumbalamambo, I have patched a fix in PR #154. Thanks!

from lightning-flash.

Zumbalamambo avatar Zumbalamambo commented on May 18, 2024

@kaushikb11 thank you! :) May I know how I can apply the latest fix? I have installed lightning-flash using pip

from lightning-flash.

kaushikb11 avatar kaushikb11 commented on May 18, 2024

Hi @Zumbalamambo, follow the below commands :)

git clone https://github.com/PyTorchLightning/lightning-flash.git
cd lightning-flash
# install in editable mode
pip install -e .

from lightning-flash.

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.