utkuozbulak / pytorch-cnn-visualizations

Pytorch implementation of convolutional neural network visualization techniques
MIT License
7.81k stars 1.49k forks source link

Question #95

Closed omzoughi closed 3 years ago

omzoughi commented 3 years ago

Hello,

I am reading your code: generate_class_specific_samples.py, line: output = self.model(self.processed_image).

My question is technical. Here, the class instantiation self is of type class 'torchvision.models.alexnet.AlexNet'. By which property you redefined the class attribute model ? Is there any python property which tolerate the redefinition of the constructor?

Thank you for your answer.

utkuozbulak commented 3 years ago

Hello, check what comes from misc_functions.py.