Code Monkey home page Code Monkey logo

Comments (8)

SaulZhang avatar SaulZhang commented on May 22, 2024 1

Okay, thank you for the suggestion. I will give it a try.

from arldm.

xichenpan avatar xichenpan commented on May 22, 2024

@SaulZhang Hi, thanks for your inquiry! For the first question, since the stable diffusion PTM is for 512*512, so I guess the performance will drop, I recommend you to try fp16 training with 512 * 512 resolution. For the second quesiton, the answer is yes! you can also increase the batch size. We use single GPU to avoid sample a same case for multiple times, thereby affect FID score. (for normal experiment, you may feel free to use multiple GPU and large batch size)

from arldm.

SaulZhang avatar SaulZhang commented on May 22, 2024

Thanks for your reply. I have tried setting precision=16 in Trainer and also setting freeze_clip/freeze_blip/freeze_resnet=True. Unfortunately, these changes only allow a single A100 40G GPU to handle a maximum resolution of about 470x470. If I don't freeze the weights of stable diffusion, could it reduce the impact of image resolution?

from arldm.

xichenpan avatar xichenpan commented on May 22, 2024

@SaulZhang Hi, I guess it may work, or you can also try to enable gradient checkpointing to save vram. It seems to be already implemented by Diffusers.

from arldm.

SaulZhang avatar SaulZhang commented on May 22, 2024

@Flash-321 Hello,
I have set the image size to 256x256 and performed story continuation experiments on three datasets. Although the generated images look satisfactory, I'm confused as to why the calculated FID Score exceeds 400. This appears to be quite unreasonable, and it's consistent across all three datasets. Additionally, I have attached some of the stories that were generated on three datasets. Could you help me understand why the FID Score is so high?
out
out1
out2

from arldm.

xichenpan avatar xichenpan commented on May 22, 2024

@SaulZhang Hi, do you calculate the FID score across the whole dataset, or only a subset?

from arldm.

SaulZhang avatar SaulZhang commented on May 22, 2024

I calculate the FID score across the whole testing set, and don't modify the code of sample.

from arldm.

SaulZhang avatar SaulZhang commented on May 22, 2024

After thorough debugging, I've identified that the main issue lies within this particular line of code.
original_images = [Image.fromarray(im, 'RGB') for im in original_images]
And the correct code should be as follows:
original_images = [Image.fromarray(im.transpose(1,2,0), 'RGB') for im in original_images]

from arldm.

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.