-
Notifications
You must be signed in to change notification settings - Fork 654
Conversation
@zanarmstrong - If you'd like to try playing around with more models, you can grab the definitions from here! :) |
thanks @colah! |
I attempted to port all the slim models, but ran into issues. In the end, I was able to import eight and ran into significant issues with five:
I opened an issue (tensorflow/models#4938) to track this. However, the models I failed to import actually originate with caffe, so we should be able to just grab them when I get the caffe workflow fully running. There were also a number of models my present scripts couldn't automate. I'll take a shot at them another day. |
As this nears completion, please take a quick look at what's making the tests fail—you can click on "Details" next to the failing travis build, and then on a Python version and it will take you to the error messages. Atm it looks like there may be a missing |
This comment has been minimized.
This comment has been minimized.
Every model now has a layer list, like so: layers = [
{'type': 'conv', 'name': 'conv2d0', 'size': 64},
{'type': 'conv', 'name': 'conv2d1', 'size': 64},
{'type': 'conv', 'name': 'conv2d2', 'size': 192},
{'type': 'conv', 'name': 'mixed3a', 'size': 256},
{'type': 'conv', 'name': 'mixed3b', 'size': 480},
{'type': 'conv', 'name': 'mixed4a', 'size': 508},
{'type': 'conv', 'name': 'mixed4b', 'size': 512},
{'type': 'conv', 'name': 'mixed4c', 'size': 512},
{'type': 'conv', 'name': 'mixed4d', 'size': 528},
{'type': 'conv', 'name': 'mixed4e', 'size': 832},
{'type': 'conv', 'name': 'mixed5a', 'size': 832},
{'type': 'conv', 'name': 'mixed5b', 'size': 1024},
{'type': 'conv', 'name': 'head0_bottleneck', 'size': 128},
{'type': 'dense', 'name': 'nn0', 'size': 1024},
{'type': 'dense', 'name': 'softmax0', 'size': 1008},
{'type': 'conv', 'name': 'head1_bottleneck', 'size': 128},
{'type': 'dense', 'name': 'nn1', 'size': 1024},
{'type': 'dense', 'name': 'softmax1', 'size': 1008},
{'type': 'dense', 'name': 'softmax2', 'size': 1008},
] I generated this code using a script I checked in as |
…h model's declared shapes, and adds integration tests that load each model's graph.
(An additional enhancement could be to record the output/softmax/probabilities node, too.) |
Absolutely! At the moment, I include softmax layers in the layer list, but don't flag them as special. One thing for us to consider is that the logits (ie. softmax pre-activation) are often more interesting for visualization than the softmax output. May be worth adding them to the layer list as well... |
tensorflow/models#4938 was mostly my error! Now worked around. :) |
Great progress! Tests are currently only failing because some of the models don't yet have a |
OK -- The present version isn't perfect (see issues mentioned at top), but I suspect it's better to merge things at this point to not diverge too far from master. |
TF Slim Models
Couldn't create list of layers for some models.
Caffe Models
Issues
At the moment, I'm inferring all of these from the convention of the framework the model was trained in, but this may not be reliable.