Giter Club home page Giter Club logo

Comments (3)

utkuozbulak avatar utkuozbulak commented on August 28, 2024

Hello,

That example uses an image generated from a random uniform distribution between 0 and 255.
This line:
self.created_image = np.uint8(np.random.uniform(0, 255, (224, 224, 3)))

Running the code directly produces following images for me (AlexNet - flamingo):
Iter 0:
iteration_1

Iter 100:
iteration_100

Iter 200:
iteration_199

I used VGG19 to generate the snake and the spider. I think I also incorporated a Gaussian blur for that (unrelated to the generation technique, just a way to improve the quality of image).

Perhaps I should include the code for VGG19, incorporating with blurring as well. Though, technically, it is just passing VGG19 as the model instead of AlexNet and blurring the generated image every n iteration.

Would it be helpful ?

Edit: Also don't forget the random nature of the process, two generated images are very unlikely to be the same. (Although they should be similar to a degree)

from pytorch-cnn-visualizations.

Kelvin945 avatar Kelvin945 commented on August 28, 2024

Thanks, I get the similar result using gaussian blur.

from pytorch-cnn-visualizations.

utkuozbulak avatar utkuozbulak commented on August 28, 2024

No problem, I will update the documentation as well so that its clear for everyone.

from pytorch-cnn-visualizations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.