when i restore the rgb_imagenet model, the layer name maybe wrong, I change into
for variable in tf.global_variables():
rgb_variable_map['RGB/'+variable.name.replace(':0', '')] = variable
then the name is right;
but I meet a new question:
InvalidArgumentError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:
Assign requires shapes of both tensors to match. lhs shape= [1,1,1,1,16] rhs shape= [16]
[[node save/Assign_75 (defined at /data1/wlx/project/I3D-Feature-Extractor-master/feature_extractor_frm.py:41) ]]
when i restore the rgb_imagenet model, the layer name maybe wrong, I change into
for variable in tf.global_variables(): rgb_variable_map['RGB/'+variable.name.replace(':0', '')] = variable
then the name is right;
but I meet a new question:
InvalidArgumentError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:
Assign requires shapes of both tensors to match. lhs shape= [1,1,1,1,16] rhs shape= [16] [[node save/Assign_75 (defined at /data1/wlx/project/I3D-Feature-Extractor-master/feature_extractor_frm.py:41) ]]
how can i solve this problem? thanks