Giter Site home page Giter Site logo

eragonruan / refinenet-image-segmentation Goto Github PK

View Code? Open in Web Editor NEW
131.0 131.0 36.0 1.46 MB

a tensorflow implement of refinenet ,RefineNet: Multi-Path Refinement Networks for High-Resolution Semantic Segmentation

Python 100.00%
refinenet semantic-segmentation tensorflow

refinenet-image-segmentation's People

Contributors

eragonruan avatar

Stargazers

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

Watchers

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

refinenet-image-segmentation's Issues

advise for the code

The original code is written in matlab, and the network architectures are appended in the code package.
It's my honor to read your code in tensorflow, but there are some problems in your code different from the orignal network architectures. With respect, I list these codes in below pictures.
qq 20180212104032
qq 20180212104128
qq 20180212104215
I will be waiting for your reply.

the utils.aug file

Hi,
I want to know the features of this function,I want to try.Can you tell some thing about it? Thank you very much!

Tensor not found Error

Hi @eragonruan ,
I am getting following error when i am running demo.py file.

tensorflow.python.framework.errors_impl.NotFoundError: Tensor name "feature_fusion/Conv/BatchNorm/gamma/ExponentialMovingAverage" not found in checkpoint files "resnet_v1_101.ckpt"

[[Node: save/RestoreV2_1 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2_1/tensor_names, save/RestoreV2_1/shape_and_slices)]]

Thanks & Regards,
Akansha Shah

error when run multi_gpu_train.py

when I run multi_gpu_train.py, it occurred that "tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 786432 values, but the requested shape has 262144"
I don't know what caused this error, wish you can help me with it!
thanks!
@eragonruan

Weighted Cross Entropy loss function

Hi,
First thank you for this implementation.
I didn't test it yet but I'm about to, for custom data, a 3 classes segmentation task,
where implementing a weighted cross entropy function should be determinant.
What changes in the code should be done to do that ?
(I don't master tf yet, I worked on caffe before, a tip would be gratefuly taken)

Thanks in advance !

test.py problem

thanks for your code very much first!
can the test.py work now? and the miou can be obtained?

Error when run demo.py

'''NotFoundError (see above for traceback): Key feature_fusion/Conv_37/BatchNorm/beta/ExponentialMovingAverage not found in checkpoint'''
The ckpt is your trained model.

Thanks.

the color_map file

Hi,
Thank you very much for your help given me!I want to use my own data to train the model, but for color_map file I'm not particularly aware of how this is generated.Hope your reply.

Why did I get a bad result?

I use mulit_gpu_train.py training data (the Tfrecord file you provided). Parameter ‘restore’ I chose False .When I choose true, the error is ‘'''NotFoundError (see above for traceback): Key feature_fusion/Conv_37/BatchNorm/beta/ExponentialMovingAverage not found in checkpoint'''’. so I chose False. And parameter ‘max_steps’ I chose 100000.
Training is done and the demo is running poorly.
why?

chained residual pooling

Thanks for sharing
I think that at the chained residual pooling block there is a mistake.
Based on Fig. 3 of the paper, the input to the second, third etc. Pool layer is the output of the previous one, not the output of the ReLU layer:

def ChainedResidualPooling(inputs,features=256):
    net_relu=tf.nn.relu(inputs)
    net=slim.max_pool2d(net_relu, [5, 5],stride=1,padding='SAME')
    net=slim.conv2d(net,features,3)
    net_sum_1=tf.add(net,net_relu)

    # net = slim.max_pool2d(net_relu, [5, 5], stride=1, padding='SAME')
    net = slim.max_pool2d(net, [5, 5], stride=1, padding='SAME')

    net = slim.conv2d(net, features, 3)
    net_sum_2=tf.add(net,net_sum_1)

    return net_sum_2

Finished version

Hi,
Just wanted to know if you have a final version since you said it was a demo,
I'm wondering what's different from the version of the authors ...
Will try to implement it in Rstudio trying to use your code as an example,
I hope I'll succeed !
Thanks,
Joris

train other data and change the number of labels

Hi there,
Hope you are doing well.
I want to train other data using your code but I found changing the "num_classes" in mult_gpu_train.py is not working. Then I change the model function in model.py . I changed the "f_score" ,but the computer is out of memory.
What's wrong with my change? Can you give me help? Looking forward to your reply!

I've met an error when runing 'python3 RefineNet/multi_gpu_train.py'

Traceback (most recent call last): File "RefineNet/multi_gpu_train.py", line 245, in <module> tf.app.run() File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 48, in run _sys.exit(main(_sys.argv[:1] + flags_passthrough)) File "RefineNet/multi_gpu_train.py", line 83, in main color_map = pickle.load(f) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 0: ordinal not in range(128)

Run demo.py error

I have the same problem proposed in previous issues.
When running demo.py, ERROR:
Key feature_fusion/Conv_37/BatchNorm/beta/ExponentialMovingAverage not found in checkpoint

I wonder if you save the checkpoint with ExponentialMovingAverage parameters ?

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.