Open amiltonwong opened 7 years ago
I got the same error. Does anyone know how to solve it?
@amiltonwong @xilaili
Thank you for your issue.
I guess there might be two reasons for that:
1) You didn't change the global variables according to your setup here:
sys.path.append("tf-image-segmentation/")
sys.path.append("/home/dpakhom1/workspace/my_models/slim/")
fcn_16s_checkpoint_path = '/home/dpakhom1/tf_projects/segmentation/model_fcn8s_final.ckpt'
os.environ["CUDA_VISIBLE_DEVICES"] = '1'
2) Or you try to run the same cell twice. Restart the notebook or restart the kernel of the current notebook.
Let me know if it helps
Hi @warmspringwinds, I also followed the instructions on the repository and got an error.
Is this global variable setup correct? I cloned tf-image-segmentation and models/slim into my workspace, then:
sys.path.append("/Users/username/Desktop/FCN Segmentation/tf-image-segmentation/") sys.path.append("/Users/username/Desktop/FCN Segmentation/models/slim")
fcn_16s_checkpoint_path = '/Users/username/Desktop/FCN Segmentation/FCN Checkpoints/model_fcn8s_final.ckpt'
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
I am getting this error: name 'adapt_network_for_any_size_input' is not defined
Global variables are not pointing correctly the files fcn_8s.py, inference.py and pascal_voc.py.
Hope you can review this problem I'm having. Thank you.
AttributeError Traceback (most recent call last)
Hi,@warmspringwinds. I get this error:"logits and labels must be same size: logits_size=[168960,2] labels_size=[187500,2]".
Hope you can review this problem I'm having. Thank you!!!!!
@sharib-ms yes it a version problem:
Analogously to tf.pack and tf.unpack, we're renamed TensorArray.pack and TensorArray.unpack to TensorArray.stack and TensorArray.unstack. However, TensorArray.pack and TensorArray.unpack cannot be detected lexically since they are indirectly related to the tf namespace e.g. foo = tf.TensorArray(); foo.unpack()
All information is found: https://www.tensorflow.org/install/migration
You can change it to tf.stack and it should work.
maybe you ran the code once , try to restart the kernel,it would clear the weights you have set before
Hi, @warmspringwinds ,
I followed the steps from README.md. And start to run the first cell from fully_convolutional_networks.ipynb . However I got the following ValueError, could you suggest me how to fix this error? (my environment: TF 0.12.1, python 2.7.13)