Coder Social home page Coder Social logo

Comments (10)

woctezuma avatar woctezuma commented on August 22, 2024 5

I can see most of the input images are identical to the output

Just chiming in. I trained the model with less than ~200 images (256x256 resolution) recently and I faced the same issue. Interpolation was not good (very twitchy), as one can expect when the generator only knows how to copy the training data.

The training data was very diverse, which made the task even harder.

Is there a way to generate smaller gif files? 430mb is a bit difficult to work with.

%pip install moviepy
import glob

run_name = 'default'
input_path = 'results/{}/'.format(run_name)
gif_files = glob.glob(input_path + '*.gif')
import moviepy.editor as mp

input_name = sorted(gif_files)[-1]
output_name = input_name.replace('.gif', '.mp4')

clip = mp.VideoFileClip(input_name)
clip.write_videofile(output_name)

from lightweight-gan.

lucidrains avatar lucidrains commented on August 22, 2024 3

@Xeddius if you are training high resolution images, you can try decreasing the number of tiles with --num_image_tiles setting

from lightweight-gan.

lucidrains avatar lucidrains commented on August 22, 2024 3

@woctezuma yea, with that few images, the network is just learning the individual modes

from lightweight-gan.

lucidrains avatar lucidrains commented on August 22, 2024 1

@Xeddius yea, 90 is way too small, you will need at least 1000 to see some good interpolation

from lightweight-gan.

lucidrains avatar lucidrains commented on August 22, 2024

@Xeddius how many images are you training on? can you show some examples?

from lightweight-gan.

lucidrains avatar lucidrains commented on August 22, 2024

@Xeddius you can pass in a --generate-interpolation to see the "in-between" images

from lightweight-gan.

Xeddius avatar Xeddius commented on August 22, 2024

I ended up clearing the project, I was using roughly 90 images, I'm going to try with more data and then use --generate-interpolation once it reaches a reasonable amount of iterations. Is there a way to generate smaller gif files? 430mb is a bit difficult to work with.

from lightweight-gan.

molo32 avatar molo32 commented on August 22, 2024

I have the same problem, I have around 200 img, I trained in a resolution of 64, and around 70000 iter I stop the training and do an interpolation, but the interpolation is just a sudden change between the real images of the dataset.
How do I solve this without increasing the data?

from lightweight-gan.

Torment123 avatar Torment123 commented on August 22, 2024

Hi, I saw from the fastgan paper that in the fewshot learning datasets (100 ~ 300 images), their model is able to generate good interpolations (see Fig6 of the paper), does this mean that there is some differences between your implementation and theirs, and that their model maybe a better choice for few-shot datasets?

from lightweight-gan.

fabiooshiro avatar fabiooshiro commented on August 22, 2024

for low data setting:
--aug-prob 0.7

from lightweight-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.