Coder Social home page Coder Social logo

Comments (25)

jiao0805 avatar jiao0805 commented on July 20, 2024 2

Sorry,
USE \\ please not \
Your pickle file is
0
0
That means your computer find no directory.

from fcn.tensorflow.

Patickk avatar Patickk commented on July 20, 2024 2

@chankeh
hi chankeh,
Thank you for your suggesions, but i still have the same question:
ValueError: Cannot feed value of shape (0,) for Tensor 'input_image:0', which has shape '(?, 224, 224, 3)'

i have tried both, but didn't work:
1.SceneParsing_folder = os.path.splitext(DATA_URL.split("\")[-1])[0]
filename = os.path.splitext(f.split("\")[-1])[0]
2.SceneParsing_folder = os.path.splitext(DATA_URL.split("/")[-1])[0]
filename = os.path.splitext(f.split("\")[-1])[0]

I am a learner,my computer is windows tf0.12 gpu1060, could you help me?
best regards

from fcn.tensorflow.

chankeh avatar chankeh commented on July 20, 2024 1

I have solved some problems both in ubuntu and Windows10 , and now the code can run very well.
some tips you should know.
1.unzip the dataset and download the mat file
2.you should know the difference between linux and window, such as os.path.splitext() function,you must replace '/' with '\'(use two'\',caution) in windows.
3.use a computer which equiped with gpu.
I think , if you solved above problems , the code will be runed well.


2017/05/11 in ShenYang,China,Northeastern University.

from fcn.tensorflow.

Wuranker avatar Wuranker commented on July 20, 2024 1

Before generating "MITSceneParsing.pickle", I use '\\' instead of '/' (line 54 in "read_MITSceneParsingData.py"), and solve the problem.

from fcn.tensorflow.

wxwhu avatar wxwhu commented on July 20, 2024 1

@chankeh
hello
Sorry to bother you,I use '\' instead of '/' .But it doesn't work.I use WIN10 .It gives the same error.Do you know the reason?
Thank you very much!
qq 20171218110247
qq 20171218110309

from fcn.tensorflow.

wxwhu avatar wxwhu commented on July 20, 2024 1

@chankeh
hello,I delete 'not' and it find the file like this .but does it mean working well?
7
8

from fcn.tensorflow.

jiao0805 avatar jiao0805 commented on July 20, 2024

Did you run on windows?

The output of your pickle file is
0
0

which means that when you read image lists , your system found nothing
Please check the os.path.splitext() function in your read_MITSceneParsingData.py file.
If you are windows it should be "\"instead of "/"

please reference to issue 9

from fcn.tensorflow.

eserercanakin avatar eserercanakin commented on July 20, 2024

from fcn.tensorflow.

shekkizh avatar shekkizh commented on July 20, 2024

@eserercanakin Did the solution posted above solve the problem? Please close issue if it did.

Thanks.

from fcn.tensorflow.

shekkizh avatar shekkizh commented on July 20, 2024

Closing due to inactivity.

from fcn.tensorflow.

chankeh avatar chankeh commented on July 20, 2024

@Patickk
i also used tf0.12rc ,but some problems you just raised doesn't occur.
please check whether your path is right.
and my path is like this,
FCN.tensorflow-master\Data_zoo\MIT_SceneParsing
FCN.tensorflow-master\Model_zoo
i think maybe it is the path error.

from fcn.tensorflow.

Patickk avatar Patickk commented on July 20, 2024

@chankeh
thanks bro,and I have sove the problem:
I deleted the data, run the code ,and it worked!.....lol, may be there is a bug on my old data
so ,i have a new problem:

training_records = result['training']

TypeError: 'NoneType' object is not subscriptable

i didn't find the answer to solve this ,and there is no questions about this, do you think it's also a bug?
best regards

from fcn.tensorflow.

chankeh avatar chankeh commented on July 20, 2024

@Patickk
did you download this data ? ----> MIT_SceneParsing
this is the trainning and test dataset , and you should put it in the folder, Data_zoo,which should locate in the root path,the same path with your python file.(Data_zoo' path is the same as python file )
and you should know that the difference between linux and wndows(if you are using linux,you should use '/' ,while if you are using windows ,you shoule use '\'(two '\',because it is transferred by the system here.))
the problems you just raised is still the path problem

from fcn.tensorflow.

songwaimai avatar songwaimai commented on July 20, 2024

hellohi
some questions i can't find out the reason. First I run the code with cpu, does it allowed? and i have replaced '/' with '\' , the dataset is under the right path. it still the same error:
qq 20170817110125

from fcn.tensorflow.

chankeh avatar chankeh commented on July 20, 2024

@wxwhu
it seems that your data'path is wrong.
structure like this,
tf

from fcn.tensorflow.

wxwhu avatar wxwhu commented on July 20, 2024

@chankeh
this is my path.I don't know where it goes wrong.
default
1
2

from fcn.tensorflow.

chankeh avatar chankeh commented on July 20, 2024

@wxwhu
path like this,
qq 20171219092625

from fcn.tensorflow.

chankeh avatar chankeh commented on July 20, 2024

@wxwhu
as the following,
qq 20171219093120

from fcn.tensorflow.

wxwhu avatar wxwhu commented on July 20, 2024

@chankeh thaks,but It works bad,but it gives the same error.
4
5
6

from fcn.tensorflow.

chankeh avatar chankeh commented on July 20, 2024

@wxwhu
yes,it means right

from fcn.tensorflow.

MarkYangjiayi avatar MarkYangjiayi commented on July 20, 2024

@Patickk Hello, i ran into the same problem you do about the TypeError: 'NoneType' object is not subscriptable.
Wonder if you ever fixed this problem,tks.

from fcn.tensorflow.

xcnie avatar xcnie commented on July 20, 2024

@chankeh
hello,I delete 'not' and it find the file like this .but does it mean working well?
7
8

your method is working. I think it is because we have run FCN.py. So there is a file "MITSceneParsing.pickle". If we delete it, we need not delete "not''

from fcn.tensorflow.

luo-haoyu avatar luo-haoyu commented on July 20, 2024

I had the same problem that 'ValueError: Cannot feed value of shape (0,).....'
Then I found the size of the file 'MITSceneParsing.pickle' is just 1KB,which means maybe nothing in it.
When I delete it and run the code again, it work without the ValueError !

So I suppose that when you change '/' into '' in windows, you should delete the MITSceneParsing.pickle generated before and run the code to regenerate it.

from fcn.tensorflow.

varungupta31 avatar varungupta31 commented on July 20, 2024

Hey, to anyone still subscribed to this thread, please help me out with my issue#128.

I'm getting a ValueError: Unknown mat file type, version 110, 116.
I have correctly structured my directory as suggested, and am on Ubuntu 20.04.

Any help is appreciated, thanks.

from fcn.tensorflow.

WANGZEQI123 avatar WANGZEQI123 commented on July 20, 2024

from fcn.tensorflow.

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.