-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Solved] Problems with TensorFlow 1.0 and Windows #9
Comments
Hi Can this project be successfully run on windows ? |
Hi Jiao0805, Absolutely, I've trained this neural network on a Windows 8 and a Windows 10 Machine, using both TensorFlow CPU and GPU versions. I'd recommend you use Anaconda to manage your Python environments and use PIP to install the version you're after. Here's a sample output from my application, which detects lanes on a road. For reference, I used the KITTI data set (see http://www.cvlibs.net/datasets/kitti/). For my Windows 8 machine, I had to run TensorFlow on my CPU, as my GPU doesn't have enough memory (you'll need > 4 GB for this repo' to run). Last, but not least, give it at least 30, 000 training steps to get reasonable outputs; 10, 000, as a minimum, should start to give tentative results. Best regards, Frazer |
Hi FKNoble, Traceback (most recent call last): It seems that there is something wrong with my cost function. |
I had something similar and what I think it means is that the cross entropy function needs the input parameters to be explicitly labeled, i.e. labels=labels, logits=logits, etc. Here's the function that I have, which works: loss = tf.reduce_mean((tf.nn.sparse_softmax_cross_entropy_with_logits( Let me know if it fixes your problem. Best regards, Frazer |
Hi FKNoble, Please have a look on this:
I found them in the declaration of tf.nn.sparse_softmax_cross_entropy_with_logits()
And as for the os.path.splittext()
And I finally run into a error as follows:
Setting up Saver...
Is that mean that I do not have enough memory? Looking for your reply! Best regards, |
Thanks @FKNoble for helping out. @jiao0805 Your last error does seem like an issue with insufficient gpu memory. try reducing batch size or image size. Also it would be helpful if you post different issues in a separate thread - it will be useful for people in the future to make note of. Thanks. |
@FKNoble thanks for your sharing, but after i modified my code as you said, when i try to training the network, i still got loss:Nan results, my running environment is windows 7 + TITAN X + python3.5 + tensorflow 1.01, training set is ADEChallengeData2016 with num_of_classes = 151 |
I used the version 0.12rc, but it occured like this: Traceback (most recent call last): how can i fixed this problem? |
Sorry to bother you. |
I think you can try with batchsize=1 and learning rate=1e-5 max_iteration>=100000, then you will get an acceptable model, at least i did this. |
Hi FKNoble I researched less information about it in Web. I don't know weather codes' locations are wrong or not. |
please tell me the classes is 151 or 1000?.i read the .mat in codes found the classes are 1000 but in the fcn.py the classes are 151. |
I ran and finished FCN.py in CPU Tensorflow based on ubuntu,maybe the reason why my code, copied from https://github.com/shekkizh/FCN.tensorflow/tree/tf.0.11_compatible, can't run successfully is that it is only for ubuntu not windows. I am not sure. |
Hey @zhshining I am using Windows 8.1 to run the FCN.py and even I am getting the same error you got. Are you sure it works only on Ubuntu? How do I fix this? Thanks. |
Hey, @chankeh I got the same error that you got, How to fix this? Please help. @shekkizh |
@siddharthamantrala you should put the dataset in a right path. |
@chankeh when i ran the code the first time, it was downloading the code very slowly(unstable internet connection) so i downloaded the net from the browser and put it in the Model_zoo file and i did the same with the Data set and put it in the Data_zoo file. |
hello FKNoble |
@siddharthamantrala And i think, if you follow this way,you will run it well. |
Hey, @chankeh Thanks for the help, the issue got resolved, now am getting another error, I ran the code in Python 3.6.4 CPU Tensorflow in Windows 10 and this is the error am getting: Setting up Saver... This is the same error @zhshining got and @zhshining got it resolved by running it on ubuntu. You seem to be running it on Windows, could you @chankeh please help me on how to resolve this on Windows? Thank You |
@siddharthamantrala hi , before running the code , you should know that there are so many change in api between tf 0.12 and tf 1.0 . If you want to use 1.0 , you must change some interface in the current code. |
Hey @chankeh thans for the suggestion, I tried downgrading the tensorflow version to tf.012 and am still getting the same error. Any idea what may be the cause? Setting up Saver... Thank You |
hi @siddharthamantrala ,you should not use the py36,but use the version of py35. |
@siddharthamantrala sorry, I am busy in preparing my test, so i wouldn't visit my Guihub. I ran it in the Ubuntu successfully, but i don't know why. Now , i plan to try another program. |
hi,@chankeh,I use the version of py35 +tf1.6.0 and get the same problem |
hello FKNoble |
The following error occurred when I was training. Does anyone know how to solve it ? Caused by op u'inference/deconv2/biases_1', defined at: InvalidArgumentError (see above for traceback): Nan in summary histogram for: inference/deconv2/biases_1 |
@chankeh the errors are as follows: |
run FCN.py, this network is only a training version ,I want to know how to directly enter an image for semantic segmentation by this network,can you help me?Thank you very much. |
hi,@lucifer2859. |
I meet this problem, too: ValueError: Cannot feed value of shape (0,) for Tensor 'input_image:0', which has shape '(?, 224, 224, 3)' and my suggustion is : look this py because using '/' we can not get the correct filename 'ADE_train_00000001' finnally , i ran it in |
Hello, I've got the same issue as you. Although I do it according to your instruction, it cannot be solved. Any idea what may be cause? |
Hi! |
Hello,I've got a new problem |
Hi ! |
That is because the data cannot be loaded. Make sure you change / to \\ if you are running it on windows |
|
|
Hi there,
First, I wanted to say thanks for sharing! I'm working through the code to help with my own segmentation project and having something to work from is a big help.
Second, I came across a few issues (minor really) that I've figured out and wanted to share:
Like I said, pretty minor stuff, but I wanted to post in case anyone else had any issues.
Best regards,
Frazer
P.S. If you get an out of memory error, it's likely because you're trying to work with 20,000 images, which might be a bit too much. I deleted some of the training images and it worked.
The text was updated successfully, but these errors were encountered: