Closed mehdidc closed 4 years ago
@mehdidc Thanks so much for the PR! Sample results look good! I'm a little occupied with a paper submission at the moment, but I will definitely take a look at this over the weekend.
@mehdidc sorry for the late reply!
Re. the issue on smaller images: for Lucid, I believe because Tensorflow 1.x allows you to just retrieve a specific layer via sess.run, so there is no issue as long as the layer you want is computed. But in our case, we run the entire model, so torch raises an error when you hit the later layers. I think I'm okay with raising an exception for now, so your modification is probably alright!
Two small changes:
$ coverage run --source . --omit setup.py -m pytest
$ coverage report -m
Should be good once those are done, I'll take care of adding it to the main README.
Thanks again for the help!!!
Hi @greentfrapp thanks for the remarks, I added some tests + updated notebook quotes + other minor modifications
Thanks @mehdidc for the help! I think this looks good to merge and I'll add the title card for the notebook soon!
Closes #3
Issue #3, reproducing activation grids (https://github.com/tensorflow/lucid/blob/master/notebooks/building-blocks/ActivationGrid.ipynb)
It's possible to try it here: https://colab.research.google.com/drive/1pEe-KmXeDJcWQYLOHwcMubS69wVVCHLe#scrollTo=xidm-QrXvL2X
Here are the results so far with inceptionv1 and layer mixed4d:
Some remarks and a question: