Coder Social home page Coder Social logo

Comments (4)

leejet avatar leejet commented on May 21, 2024 3

Shouldn't they be multiples of 8?

504x520 is a valid dimension in other SD pipelines.

The sd diffusion process run in the latent space of 1/8 of the width and height. In addition, unet will downsample the middle layer to 1/8 during the operation, so in fact the middle layer size will be 1/64 of width and height, which is why sd.cpp requires width and height to be multiples of 64.

If "sd" were to scale the latent space to a multiple of 8 before U-Net computation and then restore it to its original size afterward, it would indeed allow input widths and heights to be multiples of 8. However, I have not implemented it yet.

from stable-diffusion.cpp.

leejet avatar leejet commented on May 21, 2024 2

The height and width should be multiples of 64. I have updated the prompt for the command line parameters

from stable-diffusion.cpp.

FNsi avatar FNsi commented on May 21, 2024

The height and width should be multiples of 64. I have updated the prompt for the command line parameters

Nice workπŸ™

from stable-diffusion.cpp.

dmikey avatar dmikey commented on May 21, 2024

Shouldn't they be multiples of 8?

504x520 is a valid dimension in other SD pipelines.

from stable-diffusion.cpp.

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.