-
Notifications
You must be signed in to change notification settings - Fork 265
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
ValueError: Output tensors to a Model must be the output of a TensorFlow Layer
(thus holding past layer metadata). Found: Tensor("mrcnn_class_logits_5/transpose_1:0", shape=(4, ?, 3), dtype=float32)
#18
Comments
hi |
hi at |
Provide your full code. Do you prepare the dataset with labelme? Does the number of classes you pass into the code match the classes available in the dataset? |
Hi runfile('C:/Users/dell/Desktop/Custom Semantic Segmentation/demo.py', wdir='C:/Users/dell/Desktop/Custom Semantic Segmentation') File "", line 1, in File "C:\Users\dell\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile File "C:\Users\dell\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile File "C:/Users/dell/Desktop/Custom Semantic Segmentation/demo.py", line 15, in File "C:\Users\dell\Anaconda3\lib\site-packages\pixellib\custom_train.py", line 50, in load_pretrained_model File "C:\Users\dell\Anaconda3\lib\site-packages\pixellib\mask_rcnn.py", line 1822, in init File "C:\Users\dell\Anaconda3\lib\site-packages\pixellib\mask_rcnn.py", line 2017, in build File "C:\Users\dell\Anaconda3\lib\site-packages\tensorflow\python\keras\engine\training.py", line 121, in init File "C:\Users\dell\Anaconda3\lib\site-packages\tensorflow\python\keras\engine\network.py", line 81, in init File "C:\Users\dell\Anaconda3\lib\site-packages\tensorflow\python\training\checkpointable\base.py", line 442, in _method_wrapper File "C:\Users\dell\Anaconda3\lib\site-packages\tensorflow\python\keras\engine\network.py", line 177, in _init_graph_network File "C:\Users\dell\Anaconda3\lib\site-packages\tensorflow\python\keras\engine\network.py", line 1673, in _validate_graph_inputs_and_outputs ValueError: Output tensors to a Model must be the output of a TensorFlow |
when i tried on my custom dataset and chenged load_dataset function Nature with custom dataset, i am getting this error runfile('C:/Users/dell/Desktop/Custom Semantic Segmentation/chest.py', wdir='C:/Users/dell/Desktop/Custom Semantic Segmentation') File "", line 1, in File "C:\Users\dell\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile File "C:\Users\dell\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in execfile File "C:/Users/dell/Desktop/Custom Semantic Segmentation/chest.py", line 12, in File "C:\Users\dell\Anaconda3\lib\site-packages\pixellib\custom_train.py", line 88, in visualize_sample File "C:\Users\dell\Anaconda3\lib\site-packages\pixellib\utils.py", line 362, in load_image File "C:\Users\dell\Anaconda3\lib\site-packages\skimage\io_io.py", line 61, in imread File "C:\Users\dell\Anaconda3\lib\site-packages\skimage\io\manage_plugins.py", line 210, in call_plugin File "C:\Users\dell\Anaconda3\lib\site-packages\imageio\core\functions.py", line 221, in imread File "C:\Users\dell\Anaconda3\lib\site-packages\imageio\core\functions.py", line 143, in get_reader File "C:\Users\dell\Anaconda3\lib\site-packages\imageio\core\format.py", line 174, in get_reader File "C:\Users\dell\Anaconda3\lib\site-packages\imageio\core\format.py", line 224, in init File "C:\Users\dell\Anaconda3\lib\site-packages\imageio\plugins\simpleitk.py", line 84, in _open File "C:\Users\dell\AppData\Roaming\Python\Python37\site-packages\SimpleITK\SimpleITK.py", line 8876, in ReadImage RuntimeError: Exception thrown in SimpleITK ReadImage: D:\a\1\sitk\Code\IO\src\sitkImageReaderBase.cxx:107: Codes are common and same as: vis_img = instance_custom_training() train_maskrcnn.modelConfig(network_backbone = "resnet101", num_classes= 7, batch_size = 4) |
This is not an issue with PixelLib. Ensure that you have installed tensorflow properly. It appears like you are using anaconda3, ensure that you installed a compatible tensorflow version. |
This is also not an issue with PixelLib. Check these similar issues on Runtime Error on SimpleITK ReadImage, they may be helpful. |
No description provided.
The text was updated successfully, but these errors were encountered: