Code Monkey home page Code Monkey logo

Comments (1)

NicolasHug avatar NicolasHug commented on July 23, 2024

Hi @FranciscoPark ,

I realize it's not completley obvious (especially since we support **kwargs), but these model builders functions like models.swin_b are meant to implement a very specific architecture and not all parameters are allowed. For swin_b, stochastic_depth_prob is hard-coded to 0.5 and it should not be modified.

Since you're not using pre-trained weights anyway, I suggest that you instanciate a model directly from the SwinTransformer base class instead:

class SwinTransformer(nn.Module):

You might have to hard-code a few of the swin_b parameters yourself, you can look at the code to figure out the values. HTH.

from vision.

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.