Code Monkey home page Code Monkey logo

Comments (3)

ioangatop avatar ioangatop commented on May 30, 2024

Hi!

First of all, thank you for your interest for our work!

FID, unlike likelihood (in this kind of generative models we stick mostly to bpd), can be a very ambiguous score, a little twist to the data, number of comparing data and the inception model itself can alter the final score. In out case, our score came from the process that it is described in the paper; 50k generated images and 50k real images from the train set, saved with the torchvision's save_image function (this also matters). We verified the scores with the inception weights of tensorflow's and pytorch's (copied from tf) version.

from srvae.

ZENGXH avatar ZENGXH commented on May 30, 2024

Thanks for the explanation!

I try save_image by adding the following lines

for i in range(n_samples): 
    save_image(x[i], save_path%i)

at

x = generator(n_samples)
.

Then generate 50k images (in png) and evaluate with the tensorflows version here https://github.com/bioinf-jku/TTUR with their released precalculated statistics of cifar10's training set. And it gives FID: 58.67528283730496. The pytorch version gives 58.38 with the same input. But the FID score on training set in the paper (table1, row1, score in the brackets) is 37.25.

Do you idea of which step I am doing wrong? Or it would be really appreciated if you could share the snippets you used to generate the images to help me debug with the code!

from srvae.

ioangatop avatar ioangatop commented on May 30, 2024

In our version, we also saved the CIFAR images with torch to a folder and did folder comparison.
I don't believe that you have any bug on your code

from srvae.

Related Issues (9)

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.