Skip to content

Am I using MAGE properly? #47

@itayreznik

Description

@itayreznik

Hi,
I have an optimization algorithm that allows generating images that are controversial (that look like 2 classes to a human). I do that with MAGE. I cloned rcg to my working directory and I also use 2 robust classifiers trained adversarially on Imagenet.
I do that by "training" the MAGE input vector's entries - optimizing the input vectors in each iteration. The loss function for this optimization contains one classifier's output probability for dog and the other classifier's output probability for cat (lets say). I want to maximize both of these probabilities.
I use MAGE purely for generating the image in each iteration of the algorithm. It works well, the images are generated and I save them in the target directory.
The thing is, I wonder if maybe I am not using it exactly like I should. Because the images generated in each iteration do not converge to images with high probabilities for the 2 classes. But I did achieve this objective when I was using a regular self conditioned gan, and not MAGE.

This is the relevant code. More specifically, lines 75,82,99.

Image

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions