Coder Social home page Coder Social logo

Comments (4)

josedolz avatar josedolz commented on May 22, 2024

Hi @CaelynCheung1996

I'll try to upload a piece of code showing how this can be done. Basically you need to access to the output of each layer (i.e. feature map) and save it in the format you prefer.

Jose

from livianet.

CaelynCheung1996 avatar CaelynCheung1996 commented on May 22, 2024

Thanks Jose. I will greatly appreciate if you can show me that part of code (new starters of theano...).

from livianet.

josedolz avatar josedolz commented on May 22, 2024

Hi @CaelynCheung1996

sorry for the delay. I am quite busy and do not find time to manage all these small issues/questions.

To get the feature maps, for example when you want to segment the model (since the model would be ideally trained), you can do the following (in startTesting.py):

from line 120:

predictions = myNetworkModel.networkModel_Test(0)'

Choose from which layer you want to get the feature maps.

featMaps = predictions[layer]

Then you can save it in matlab format as:

nameToSave = 'xxxxxxx.mat'
scipy.io.savemat(nameToSave,mdict={'Fm':featMaps})

Hope it helps.

from livianet.

CaelynCheung1996 avatar CaelynCheung1996 commented on May 22, 2024

Thanks so much for the guide!

from livianet.

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.