yolo_for_tf_od_api icon indicating copy to clipboard operation
yolo_for_tf_od_api copied to clipboard

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?

Open thanhtu19392 opened this issue 6 years ago • 3 comments

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

thanhtu19392 avatar Jun 18 '18 13:06 thanhtu19392

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

rky0930 avatar Jun 18 '18 14:06 rky0930

@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

thanhtu19392 avatar Jun 18 '18 15:06 thanhtu19392

@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.

rky0930 avatar Jun 19 '18 15:06 rky0930