-
Notifications
You must be signed in to change notification settings - Fork 182
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
KeyError: "The name 'net/images:0' refers to a Tensor which does not exist. The operation, 'net/images', does not exist in the graph." #22
Comments
I get the same error. |
i got the same error too |
1 similar comment
i got the same error too |
in my case, I was able to run with changing input&output node name. Try to change "net/%s:0" => "%s:0" 83 & 85 lines in 'tools/generate_detections.py' |
I was using python 3.8 but some of the libs are not suitable with that. I installed python 3.7 , install requirements-gpu.txt then everything worked without problem. |
this solved my error |
this solved my error too! |
This solve my error running object_tracking.py on a MacBook Pro |
worked for me. thank you |
changing this "net/%s:0" to "%s:0" got solved.................. #yolov4 |
Worked like a charm |
I tried it, but it doesn't work for me, by the way I'm using colab, what should I do? |
encoder = gdet.create_box_encoder(model_filename, batch_size=1) KeyError: "The name 'net/images:0' refers to a Tensor which does not exist. The operation, 'net/images', does not exist in the graph." I am having this error in the given line. I have also changed the code in line 84 & 86 with "%s:0". But showing same result again. |
encoder = gdet.create_box_encoder(model_filename, batch_size=1) KeyError: "The name 'net/images:0' refers to a Tensor which does not exist. The operation, 'net/images', does not exist in the graph." I am having this error in the given line. I have also changed the code in line 84 & 86 with "%s:0". But showing same result again. |
encoder = gdet.create_box_encoder(model_filename, batch_size=1) KeyError: "The name 'net/images:0' refers to a Tensor which does not exist. The operation, 'net/images', does not exist in the graph." I am having this error in the given line. I have also changed the code in line 84 & 86 with "%s:0". But showing same result again. |
If you are running on google colab, try restarting your runtime after making the above changes. It worked for me |
@namwoo-konkuk Your solution solves my problems, the output is able to run now. However, there is no detection or bounding box at my output video. I have manually printed out the boxs, scores and classes, but these parameters only return values on the first frame while other remaining frames just remains an empty list. Does anyone here encounter such issue? |
Same problem for me. May I know how did you resolve? |
@BakingBrains I have resolved it by downgrading the python to 3.7 and install libraries that are older version |
change generate_detections.py file in this part with below code , also import .:
|
import tensorflow.compat.v1 as tf |
i got the same error |
This solved my problem. Thank you! |
After I've done it I am having a new issue:
|
@Teezq Can you share the other library versions |
vim: expandtab:ts=4:sw=4import os def _run_in_batches(f, data_dict, out, batch_size):
def extract_image_patch(image, bbox, patch_shape):
class ImageEncoder(object):
def create_box_encoder(model_filename, input_name="images",
def generate_detections(encoder, mot_dir, output_dir, detection_dir=None):
def parse_args(): def main(): if name == "main": |
Replace generate_detections.py with above code |
getting this error
The text was updated successfully, but these errors were encountered: