Coder Social home page Coder Social logo

Comments (5)

JihongJu avatar JihongJu commented on July 17, 2024 2

Hi @LetsExplore11, that is because BilinearUpSampling2D is a custom layer. You need to pass it as an argument to the load_model. I've updated the infer.py script on master and now it should work.

from keras-fcn.

mahemon avatar mahemon commented on July 17, 2024

Hi @JihongJu Thank you. I am completely new in keras. So I have some common questions.

  1. Do I call the methods of score.py from infer.py to calculate the mean_IU? Would you please give me an example how to call the mean_IU method
  2. Do I need to write another file to run test files?

from keras-fcn.

JihongJu avatar JihongJu commented on July 17, 2024

@LetsExplore11 I haven't tested the metrics in score.py and they were implemented with numpy, meaning that they cannot be compiled with the keras model as one of the monitoring metrics. But you can use the infer script to predict segmentation for each of the images once you have a trained model and call, for example, mean_IU by feeding the prediction and the label as numpy arrays.

from keras-fcn.

mahemon avatar mahemon commented on July 17, 2024

Hi @JihongJu Thanks for your quick reply. As I am new in keras, So I do not fully understand your explanation. I beg a pardon for this reason. Could you please suggest me some way to make a way.

from keras-fcn.

JihongJu avatar JihongJu commented on July 17, 2024

@LetsExplore11 Ok. The current mean_IU has nothing to do with keras. It is a function manipulating numpy arrays. You can use a trained model to predict the segmentation. Once you have the segmentation, you can use the mean_IU function to compute mean IU. Maybe you can refer to the keras documentation for how to predict with a trained model.

from keras-fcn.

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.