Skip to content
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

Variable FeatureExtractor/darknet_19/base/Conv2D_1/weights does not exist, or was not created with tf.get_variables(). Did you mean to set reuse= tf.AUTO_REUSE in VarScope? #3

Open
thanhtu19392 opened this issue Jun 18, 2018 · 3 comments

Comments

@thanhtu19392
Copy link

I had a problem Variable FeatureExtractor/darknet_19/base/Conv2D_1/weights does not exist, or was not created with tf.get_variables(). Did you mean to set reuse= tf.AUTO_REUSE in VarScope? when running. It turns out to end at this line:

https://github.com/GustavZ/yolo_for_tf_od_api/blob/cd312586678724802d9c3e78c7cdc2b5a027a049/darknet.py#L79

@rky0930
Copy link
Collaborator

rky0930 commented Jun 18, 2018

No need to change the line. I work well in my environment.
Did you change any config ? or What ckpt are you using ?

@thanhtu19392
Copy link
Author

thanhtu19392 commented Jun 18, 2018

@rky0930 : Thanks for you reply. i haven't changed anything in config file except num_classes. Whatever i tried, i still failed at the same error. I used YOLOv2 coco checkpoint on your repo. Even if i comment out the line of checkpoint, i encountered the same prob

@rky0930
Copy link
Collaborator

rky0930 commented Jun 19, 2018

@thanhtu19392 Could you try again with yolo_v2 in my repo ? That's the full version of the yolo_v2. That use the same source code in this repo but Object detecion api code is included. Please try again and let me know the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants