#speed

4 messages · Page 1 of 1 (latest)

vagrant kindleBOT
#

Hi @wind pasture. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

I'm sorry, but without the actual content of your invoke.yaml file, it's difficult to provide specific recommendations. However, based on the knowledge sources provided, here are some general tips to speed up image generation in Invoke AI:

  1. Adjust VRAM Cache Size: In your invoke.yaml file, you can adjust the VRAM cache size. A common solution is to reduce the size of your VRAM cache to 0.25. This ensures your system has enough memory to generate images. If you have more VRAM (like 16GB), you could try bumping it up to 8, but be careful not to set it too high as it could slow down the generation speed. Source (https://discord.com/channels/1020123559063990373/1181763961360756776)

  2. Use GPU for Generation: Ensure that your generations are happening on your GPU (if you have one). When you start the server, you'll see a log that looks like this: INFO --> GPU device = cuda. If it says CUDA, you're good to go (if you have an NVIDIA GPU). Source (https://discord.com/channels/1020123559063990373/1181763961360756776)

  3. Batch Generation Speedup: You can speed up the generation process by using a technique called batch generation speedup. Instead of creating a batch of 100 images at -s100, you can produce the same 100 images at -s10 to -s30 using a K-sampler, choose your favorite ones, and then run -s100 on those images to polish some details. This technique is 3-8x as quick. Source (https://invoke-ai.github.io/InvokeAI/help/SAMPLER_CONVERGENCE#batch-generation-speedup)

#
  1. Learning Rate Adjustment: If you're training a model, you can adjust the learning rate. Higher values speed up training but risk overtraining, and lower values will take more steps to train a good model. The default of 0.0005 is conservative; you may wish to increase it to 0.005 to speed up training. Source (https://invoke-ai.github.io/InvokeAI/features/TRAINING#learning-rate)

Remember to make one change at a time to understand its impact. If you need more specific advice, please provide the content of your invoke.yaml file.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@wind pasture kapa.ai is still learning and improving, please let us know how it did by reacting below