Code Monkey home page Code Monkey logo

Comments (1)

xiaohk avatar xiaohk commented on May 3, 2024

Hello @baobobby, thank you for using CNN Explainer! Glad to see you are trying your own tiny-vgg model!

The CNN Explainer visualization is tailored to the original architecture of tiny-vgg, so you need to manually update the visualization code if you want to add a new layer.

For example, in the Overview.svelte, you would need to update the layerIndexDict definition, and corresponding variables. It is relatively easier to add a new layer that already exists in CNN Explainer than using a totally different model, but it still requires some effort to make the change in the visualization code.

const layerIndexDict = {
'input': 0,
'conv_1_1': 1,
'relu_1_1': 2,
'conv_1_2': 3,
'relu_1_2': 4,
'max_pool_1': 5,
'conv_2_1': 6,
'relu_2_1': 7,
'conv_2_2': 8,
'relu_2_2': 9,
'max_pool_2': 10,
'output': 11
}

let updatingLayerIndexDict = {
local: {
module: [1, 2, 8, 9, 10],
global: [1, 2, 3, 4, 5, 8, 9, 10]
},
module: {
local: [1, 2, 8, 9, 10],
global: [1, 2, 3, 4, 5, 8, 9, 10]
},
global: {
local: [1, 2, 3, 4, 5, 8, 9, 10],
module: [1, 2, 3, 4, 5]
}
};

I would close the issue for now, let me know if you have other questions :)

from cnn-explainer.

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.