net.blobs is an OrderedDict, so its keys are strings. However, layer is an object of type caffe.Layer and does not appear to be a valid key for an orderedDict. When I run the code as it's written, I get a KeyError, and the code crashes.
I feel like one fix could be to change the first block in this post to something like
I think this might be a bug, but this code obviously ran for you, so I'm trying to sort this out.
In max_tracker.py, on line 97, we have:
I'm concerned with the line:
net.blobs
is an OrderedDict, so its keys are strings. However,layer
is an object of typecaffe.Layer
and does not appear to be a valid key for an orderedDict. When I run the code as it's written, I get a KeyError, and the code crashes.I feel like one fix could be to change the first block in this post to something like
i.e., change
self.layers
tonet._layer_names
Am I missing something?