Giter Site home page Giter Site logo

how to lower fid? about diffusion-gan HOT 2 OPEN

octadion avatar octadion commented on July 20, 2024
how to lower fid?

from diffusion-gan.

Comments (2)

wangyp33 avatar wangyp33 commented on July 20, 2024

@octadion@Zhendong-Wang

I got the same question when training with the command

python train.py --outdir=training-runs --data="cifar10.zip" --gpus=1 --batch 16 --batch-gpu=16 --cfg fastgan --kimg 50000 --target 0.45 --d_pos first --noise_sd 0.5

then I get the network named "best_model.pkl" in the outdir "training-runs", so I sample and evalution using the network, the metric command as follows:

python calc_metrics.py --metrics=fid50k_full --data=cifar10.zip --mirror=1 --network=best_model.pkl

But the fid is too high, can you tell me why if you know the reason :

{"results": {"fid50k_full": 13.780802051702606}, "metric": "fid50k_full", "total_time": 205.13619828224182, "total_time_str": "3m 25s", "num_gpus": 1, "snapshot_pkl": "best_model.pkl", "timestamp": 1685179674.1273081}

from diffusion-gan.

Zhendong-Wang avatar Zhendong-Wang commented on July 20, 2024

Hi there,

I rerun my code and it seems reproducing the good results. I guess you use the Diffusion-ProejctedGAN code. I did the follows:

conda env create -f environment.yaml
conda activate pg
python train.py --outdir=training-runs --data="~/cifar10.zip" --gpus=4 --batch 64 --batch-gpu=16 --cfg fastgan --kimg 50000 --target 0.45 --d_pos first --noise_sd 0.5

I show the trainining outputs that I have here. It converges fast.
Screenshot 2023-05-27 at 11 40 59

from diffusion-gan.

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.