Giter Site home page Giter Site logo

semantic-segmentation-metrics's People

Contributors

xtudbxk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

semantic-segmentation-metrics's Issues

How to get the segmented image?

By running python deeplab_aspp_test.py,metrics like recall could be got,but how to get and output the segmented image with the trained network model?

IndexError: boolean index did not match indexed array along dimension 0; dimension is 187500 but corresponding boolean dimension is 562500

I am trying to evaluate your DSRG model however whenever I try to predict results on val.txt files I am getting the below error.

exception info:multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib64/python3.6/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib64/python3.6/multiprocessing/pool.py", line 44, in mapstar
    return list(map(*args))
  File "/home/ssindhu/winter2020/DSRG-tensorflow/pythonlib/predict.py", line 25, in single_crf_metrics
    m.update(label,crf_pred)
  File "/home/ssindhu/winter2020/DSRG-tensorflow/pythonlib/predict.py", line 120, in update
    self.hist += self._fast_hist(x.flatten(),y.flatten(),self.n_class)
  File "/home/ssindhu/winter2020/DSRG-tensorflow/pythonlib/predict.py", line 116, in _fast_hist
    self.hist = np.bincount( n_class * label_true[mask].astype(int)+label_pred[mask],minlength=n_class**2).reshape(n_class,n_class)
IndexError: boolean index did not match indexed array along dimension 0; dimension is 187500 but corresponding boolean dimension is 562500
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ssindhu/winter2020/DSRG-tensorflow/pythonlib/predict.py", line 84, in metrics_predict_tf_with_crf
    ret = pool.map(single_crf_metrics,params)
  File "/usr/lib64/python3.6/multiprocessing/pool.py", line 266, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/usr/lib64/python3.6/multiprocessing/pool.py", line 644, in get
    raise self._value
IndexError: boolean index did not match indexed array along dimension 0; dimension is 187500 but corresponding boolean dimension is 562500

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.