You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey Marc!
I'm having some trouble with the convert.py function, specifically, "tuple(config.input_dim[1:])" gives me an empty list as an output.
To reproduce the error, I used ipdb and set a breakpoint ->
config = caffe.NetParameter()
prototext = preprocessPrototxt(prototext, debug)
text_format.Merge(prototext, config)
if len(config.layers) != 0:
raise Exception("Prototxt files V1 are not supported.")
layers = config.layers[:] # prototext V1
elif len(config.layer) != 0:
layers = config.layer[:] # prototext V2
else:
raise Exception('could not load any layers from prototext')
import ipdb; ipdb.set_trace() # breakpoint 49be92bd //
print("CREATING MODEL")
model = create_model(layers,
0 if phase == 'train' else 1,
tuple(config.input_dim[1:]),
debug)
ipdb> config.input_dim[0:]
[]
`
I tried it with both debug.prototxt and train_val_for_keras.prototxt , and faced the same issue, any suggestions on how to fix it? I'm temporarily passing a fixed value of [None, 3, 500, 500] to the create model function.
The text was updated successfully, but these errors were encountered:
Hey Marc!
I'm having some trouble with the convert.py function, specifically, "tuple(config.input_dim[1:])" gives me an empty list as an output.
To reproduce the error, I used ipdb and set a breakpoint ->
def caffe_to_keras(prototext, caffemodel, phase='train', debug=False)
ipdb> config.input_dim[0:]
[]
`
I tried it with both debug.prototxt and train_val_for_keras.prototxt , and faced the same issue, any suggestions on how to fix it? I'm temporarily passing a fixed value of [None, 3, 500, 500] to the create model function.
The text was updated successfully, but these errors were encountered: