Giter VIP home page Giter VIP logo

Comments (2)

dnlcrl avatar dnlcrl commented on September 26, 2024

For what concerns the train with ADNI data you can check the official repo https://github.com/baumgach/vagan-code/ and write a pr, as it hasn't been implemented yet.

About the images instead, I don't understand what are you asking for, (you also missed to post the original image), but that's how image are saved:

# print and save
if gen_iterations % 50 == 0:
torch.set_grad_enabled(False)
anomaly_map = net_g(fixed_model_input)
inp = np.vstack(np.hsplit(np.hstack(fixed_model_input[:, 0]), 4))
img = np.vstack(np.hsplit(np.hstack(anomaly_map.data[:, 0]), 4))
path = '{:}/fake_samples_{:05d}.png'.format(opt.experiment, gen_iterations)
plt.imsave(path, -img, cmap='gray')
path = '{:}/sum_samples_{:05d}.png'.format(opt.experiment, gen_iterations)
plt.imsave(path, inp + img, cmap='gray')
torch.set_grad_enabled(True)

As you said, the sum samples are the fake images (anomaly map, or G(x)) + orig image (real samples, x), the discriminator distinguishes that sum from original, non-anomalous images (noise without white sqaures). One of the trouble you can get is that the fake image that get saved is the inverted map plt.imsave(path, -img, cmap='gray') so what you see white is in reality black. But I can assure you there is not such thing as images added w/o certain areas.

Finally, I suggest you to pull/reclone the repo and re-run the code, these are the images I get after 600 epochs:

real_samples
fake_samples_00600
sum_samples_00600

Thank you, I'm closing the issue, feel free to reopen it and/or add comments.

from visual-feature-attribution-using-wasserstein-gans-pytorch.

KangSH9776 avatar KangSH9776 commented on September 26, 2024

my fake image
43441620-faa20bee-948a-11e8-90da-e444b463860f

I have trained fake image to generate non-rectangular part, is it wrong?

What distinguishes good training standards?

thank you very much!

from visual-feature-attribution-using-wasserstein-gans-pytorch.

Related Issues (4)

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.