惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
D
DataBreaches.Net
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
Y
Y Combinator Blog
博客园 - 【当耐特】
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
P
Proofpoint News Feed
量子位
C
Check Point Blog
F
Fortinet All Blogs
罗磊的独立博客
Last Week in AI
Last Week in AI
GbyAI
GbyAI
L
LangChain Blog
博客园 - 司徒正美

Runpod Blog.

New Runpod datacenter now live: AP-IN-1 Track GPU spend across your team with Cost Centers The GPU supply supercycle is here. Here’s what AI builders need to know. Community Spotlight: One-click AI image and video generation on Runpod with SwarmUI | Runpod Blog Community Spotlight: LoRA Pilot Data Prep to Inference Introducing the Runpod Assistant: Manage Your Cloud GPU Resources with Natural Language OpenAI's Parameter Golf: Train the Best Language Model That Fits in 16MB on Runpod LLM inference optimization: techniques that actually reduce latency and cost Pruna P-Video and Vidu Q3 public endpoints now available on Runpod Runpod brand spelling guide Quickstart - Runpod Documentation The AI market looks nothing like the narrative Training StyleGAN3 with Vision-Aided GAN on Runpod KoboldAI – The Other Roleplay Front End, And Why You May Want to Use It How to Connect Cursor to LLM Pods on Runpod for Seamless AI Dev Community Spotlight: How AnonAI Scaled Its Private Chatbot Platform with Runpod Prompt Scheduling with Disco Diffusion on Runpod Runpod's Latest Innovation: Dockerless CLI for Streamlined AI Development Run Your Own AI from Your iPhone Using Runpod Introducing Flash: Run GPU workloads on Runpod Serverless: No Docker required Use Claude Code with your own model on Runpod: No Anthropic account required Avoid Errors by Selecting the Proper Resources for Your Pod What hackers built on Runpod at TreeHacks 2026 Easily Back Up and Restore Your Pod with Cloud Sync + Backblaze B2 The Complete Guide to GPU Requirements for LLM Fine-Tuning AI Guides, Tutorials & GPU Infrastructure Insights | Runpod Your first Claude Code project within Runpod: a complete setup guide 10 billion Serverless requests and counting Building for resilience: Runpod’s response to the AWS us-east-1 outage How to Connect Google Colab to Runpod
Why Altering the Resolution in Stable Diffusion Gives Str...
Brendan McKeag · 2023-04-01 · via Runpod Blog.

Stable Diffusion was originally designed to create images that are exactly 512 by 512. It does let you create images that are up to 2048 by 2048 (GPU resources permitting). However, when you try, you are very likely to get results that appear to be fighting against your prompt. Why is this?

The reason is that in any images that are larger than 512x512 pixels, it will create independent "cells" composed of 512x512 and overlay them until the entire image space is accounted for. It will apply the prompt to each individual cell within the image, and then converge the cells together. This process is pretty opaque to the user, and might throw a wrench into your plans unless you account for it.

Take an image generated by a prompt "instagram, detailed faces, three women standing in a field." Pretty standard prompt, and at 512x512 it shouldn't give you too much trouble:

AI-generated selfie of three smiling women in a field of yellow wildflowers

However, even mildly altering the dimensions (in this case, 768x896) I'll get more people than what I asked for, and they'll be standing in odd places in relationship to each other.

AI-generated image of people in a yellow field with two figures floating in the sky, a resolution artifact

The reason is that in each individual "cell", the image will make sense in the context of that particular cell. However, when all of these cells are stitched together, it is high unlikely that the cells will make sense in relation to each other. The people in each row look fine next to each other, but when the rows are  placed next to each other, there is no sense of perspective and it makes the people in the back row look massive in comparison. Stable Diffusion has no concept of accounting for this sense of perspective, which is why you get the results that you get. If a person's limb extends past the line of the cell that they're in, it may just not render the limb at all. Obviously, this is an unpleasant, unnatural look.

However, depending on what you're generating, this may not matter. Creating a field without human subjects will look fine at nonstandard resolutions. You're probably not going to see patches of grass in the sky, for example.

AI-generated image of an empty green grass field under an overcast sky

The reason why it's able to handle this instead is because something like a field is not a discrete object in the sense that a human being is. You can parcel out a field in uncountably many ways, so when Stable Diffusion needs to create cells to stitch the image together for the final result, it's impossible to tell where it did it. However, any segmentation of, say, a person beyond their naturally occurring boundaries is going to give you results like:

Stable Diffusion resolution artifacts example

(Okay, that's just Back to the Future, but you'll run into the exact same problem in SD!)

AI-generated image of four figures standing in a field of tall dry grass

If you need to generate images that are larger than 512x512 where the subject being potentially bisected is a concern, then tick the "Hi-res fix" checkbox. This will, for a pretty hefty resource draw, allow you to create images that aren't subject to this limitation. However, if you need to create non-standard image sizes, it's going to be the best way rather than rolling the dice on the canvas size alone.

Stable Diffusion web UI settings with Hires. fix enabled, resizing from 512x832 to 768x1248

Have any further questions about Stable Diffusion best practices? Join the Runpod Discord and talk to us!

Author profile: Brendan McKeag