Giter Site home page Giter Site logo

About swish activation about ml-cvnets HOT 3 CLOSED

apple avatar apple commented on May 14, 2024
About swish activation

from ml-cvnets.

Comments (3)

chenbinghui1 avatar chenbinghui1 commented on May 14, 2024

When training classification model, model.activation.name is Swish while then training detection model, it is changed to relu?

classification:
name: "mobilevit_v2"
mitv2:
width_multiplier: 2.0
attn_norm_layer: "layer_norm_2d"
activation:
name: "swish"
normalization:
name: "sync_batch_norm"
momentum: 0.1
activation:
name: "relu"
inplace: false

Is it correct? and why?

from ml-cvnets.

sacmehta avatar sacmehta commented on May 14, 2024

Hi,

model.activation.name is the default activation function. If we don’t specify anything specific to classification or any backbone, this activation function is used. If we specify a particular activation function for any backbone (Swish in this case for MobileViTv2), we override it while building model. See here:

gen_act_fn = getattr(opts, "model.activation.name", "relu")

Hope this helps.

from ml-cvnets.

chenbinghui1 avatar chenbinghui1 commented on May 14, 2024

@sacmehta Thanks for quick reply~ I got it.

from ml-cvnets.

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.