Code Monkey home page Code Monkey logo

infinitygan's People

Contributors

hubert0527 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

infinitygan's Issues

Code and training issues

infinityGAN/train.py

Lines 365 to 366 in 86e4715

d_total_loss_val = losses["g_total_loss"].mean().item()
g_total_loss_val = losses["d_total_loss"].mean().item()

  1. Is this a mistake in L365-L366?
  2. NAN in my training.
    logs:
    WARNING:root:NaN or Inf found in input tensor.
    [*] EXP: InfinityGAN; d: nan; g: 2.42; r1: 0.01; ; mean path: 0.01:

    and i found diversity_z_loss = nan

How long does it take to train

Dear Authors:

Thank you for your great work.

I'm trying to train InfinityGAN with my own dataset which consistes of ~80,000 256 x256 images. I am using a batch size of 32 training on 4 x 3090 GPUs, and I have trained for about 150,000 iterations.

However, the FIDs are still high and I am not getting any visible results. I have attached some sampled results and training stats below, may I ask you if these look normal to you? Does these indicate I might have made some mistakes somewhere? Thank you so much for you help!

0a4a0c52b8dd6b86cbb72375d8b8fae 6f8200aa3bacaa3cd32999898a85ec0 202dc9ba9156dbf0acbf72267161bc8 d0fab649b583a36ea2425a0f0489b46 d97d2e2996329782437c3be0e5ec184 e35bb62f5dfd9fb2535aeee2485c916 fa1d500b20440b3ec8eed8bcb675fbd

Problem with training Flickr small dataset

Hello,

I am training to train the small dataset from the paper, but I am getting a mistake:

[*] Found lmdb root on local hard drive: /home/anya/Programs/infinityGAN/data/lmdb
Traceback (most recent call last):
  File "train.py", line 798, in <module>
    train_set = MultiResolutionDataset(
  File "/home/anya/Programs/infinityGAN/dataset.py", line 262, in __init__
    self.env = lmdb.open(
lmdb.Error: /home/anya/Programs/infinityGAN/data/lmdb/flickr-landscape-small/train: No such file or directory

I have downloaded the data from Google drive and saved them in /home/anya/Programs/infinityGAN/data/lmdb/flickr-landscape-small/train directory, as lock.mdb and data-001.mdb. Or is the configuration wrong?
Thank you for your answer!

Using infinityGan as an ultra high resolution image generator?

I'm looking for a high-resolution image synthesizer (4k) and wonder if infinityGan suits this task.
I want to train it on my own data and potentially use it as an super-resolution model by finding the latent code of low-resolution images.

How come ultra-high resolution image synthesizer is not listed as an application of infinityGan? especially when I failed to find methods that synthesize images in this high resolution.

benchmark

Hey, thanks for the open source code. Do you have benchmarks for various training setups, for instance, what is the iter/s for InfinityGAN.yaml (using patchsize of 101).

Problems with outpainting

When i try to do outpainting. CUDA_VISIBLE_DEVICES="0" python test.py --model-config="./configs/model/InfinityGAN.yaml" --test-config="./configs/test/inversion_256x256_L2R.yaml" CUDA_VISIBLE_DEVICES="0" python test.py --model-config="./configs/model/InfinityGAN.yaml" --test-config="./configs/test/outpaint_with_fused_gen_256x256.yaml" --inv-records="./logs/InfinityGAN/test/outpaint_with_fused_gen_256x256/stats/.pkl" --inv-placements=0.5,0.25 When I submit the second instruction, there is no pkl in the folder ./logs/InfinityGAN/test/outpaint_with_fused_gen_256x256/stats/. I don't know where is the pkl file. I find there is a pkl file ("./logs/Infi nityGAN/test/inversion_256x256_L2R/stats/000000.pkl") in another folder, Is this the expected file? I copy the file from /logs/Infi nityGAN/test/inversion_256x256_L2R/stats/ to "./logs/InfinityGAN/test/outpaint_with_fused_gen_256x256/stats/. But finally, the bug is as follows. File "/home/hanzhifan/infinityGAN/test_managers/testing_vars_wrapper.py", line 271, in replace_by_records assert inv_img_st_loc_x >= 0 and inv_img_st_loc_y >= 0, AssertionError: Top-left corner of intended image exceeds image boundary. Got (-25, -1). Could u help me solve this problem? where is the correct pkl file? if the pkl file is correct? how to solve the second question?

How we can test outpainting with an png image

Hi. I want to test outpainting with an .png image. I understood you used lmdb data. I want to use prepare_data.py to convert ans png image to lmdb format but I got error. How I can do that?
You mentioned that, we must first # Run inversion first and # Then outpaint
@hubert0527
parser.add_argument("--model-config", default="\infinityGAN-main\configs\model\InfinityGAN-UR.yaml", type=str)

parser.add_argument("--test-config", default="\infinityGAN-main\configs\test\inversion_256x256_L2R.yaml", type=str)

NameError: name 'config' is not defined on prepare_data.py

Howdy, when I enter the following command I am returned an error, listed below:

python prepare_data.py ./configs/dataset/flickr-landscape-small.yaml --train_only

Traceback (most recent call last):
File "prepare_data.py", line 200, in
cur_lmdb_root = config.data_params.lmdb_root
NameError: name 'config' is not defined

I'm not sure what the issue is here. Any sugestions?

Problem with outpainting

When i try to do outpainting.

  1. CUDA_VISIBLE_DEVICES="0" python test.py --model-config="./configs/model/InfinityGAN.yaml" --test-config="./configs/test/inversion_256x256_L2R.yaml"
  2. CUDA_VISIBLE_DEVICES="0" python test.py --model-config="./configs/model/InfinityGAN.yaml" --test-config="./configs/test/outpaint_with_fused_gen_256x256.yaml" --inv-records="./logs/InfinityGAN/test/outpaint_with_fused_gen_256x256/stats/.pkl" --inv-placements=0.5,0.25
    When I submit the second instruction, there is no pkl in the folder ./logs/InfinityGAN/test/outpaint_with_fused_gen_256x256/stats/.
    I don't know where is the pkl file. I find that there is a pkl file ("./logs/Infi nityGAN/test/inversion_256x256_L2R/stats/000000.pkl") in another folder, Is this the expected file?
    I copy the file from /logs/Infi nityGAN/test/inversion_256x256_L2R/stats/ to "./logs/InfinityGAN/test/outpaint_with_fused_gen_256x256/stats/.
    But finally, the bug is as follows. File"/home/hanzhifan/infinityGAN/test_managers/testing_vars_wrapper.py", line 271, in replace_by_records assert inv_img_st_loc_x >= 0 and inv_img_st_loc_y >= 0,
    AssertionError: Top-left corner of intended image exceeds image boundary. Got (-25, -1).

Could u help me solve this problem?
1.where is the correct pkl file?
2.if the pkl file is correct? how to solve the second question?

Google Drive bad experience when downloading the dataset

Dear Authors,

Thanks a lot for your great work! I was trying to reproduce your work but I struggled a lot to download the Flickr-lands-large dataset from Google Drive, which is more than 700GB. Sometimes the downloading was cut off due to network issues, while re-downloading is also not possible with Google Drive complains "too many users have downloaded this file". Basically I need to wait for 24 hours and repeat the process again. (so far failed 3-4 times)

I wonder if it's possible to upload the dataset to more user-friendly platforms, e.g. Dropbox? Other platforms are also fine as long as a successful download is achievable.

Many thanks in advance for your help!

Cyclic coordinate

When using the cyclic coordinate, some of the generated images are flipped horizontally. Is there a way to preserve the orientation specifically to the same as the training dataset?

Fused generation

When doing the fused generation with RGB image, I get a continuous image in one channel, but discontinuous in another channel. Is there a control on what channels are used in the training/testing?

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.