kohpangwei / influence-release

MIT License
776 stars 175 forks source link

Computing influence on a CNN #12

Closed Eoli-an closed 5 years ago

Eoli-an commented 5 years ago

Hello,

I want to find the most influential training images for a CNN I created. Is there a way to accomplish this without reproducing my layer structure in your code and then retraining?

I was thinking about just copying the weights in the calculation process of the influence, but could not work out how to do this.

I would be very grateful if someone could get me a hint. Thanks in advance!

Kunlun-Zhu commented 5 years ago

Have you done it? Could you share how you do it?

Eoli-an commented 5 years ago

Sure. You will have to change the ig4_rbf_vs_inception.ipynb to include a CNN. They already included a CNN (all_CNN_c.py) which you can just use. In order to use your own CNN you have to change the inference function in all_CNN_c. The structure is just a basic tensorflow graph, you can look up the structure in your online tutorial of choice.

You may also have a look at my fork of the project in which I changed the code in order to fit my CNN.