⏱ 13 min read  ·  ✅ Updated Dec 2026

As an Amazon Associate we earn from qualifying purchases.

The GeForce RTX 3060 is one of the most practical cards for running Stable Diffusion locally, and the reason is memory rather than raw speed. NVIDIA lists the RTX 3060 in two configurations, 12GB GDDR6 on a 192-bit interface and 8GB GDDR6 on a 128-bit interface, and this guide is about the 12GB version. That extra memory decides which models load comfortably, what resolution you can generate at, and whether extras such as a refiner or ControlNet fit alongside the main checkpoint. Check the memory figure on your card’s box or product page before you start, because the advice below assumes 12GB.

Two mature, free front ends cover almost every local workflow. AUTOMATIC1111’s Stable Diffusion WebUI, usually shortened to A1111, presents a browser-based interface with tabs for text-to-image, image-to-image and extras, and its documentation describes support for video cards with as little as 4GB of memory. ComfyUI instead builds each workflow as a graph of connected nodes, and its developers describe it as a modular engine with smart memory management that runs Stable Diffusion 1.5, SDXL and many newer model families. This guide walks through the preparation, both installation routes in the order their own documentation presents them, the settings that matter on a 12GB card, and the errors most likely to appear on a first run.

Quick Answer

Yes, a 12GB RTX 3060 runs Stable Diffusion locally. Install a current NVIDIA driver, then choose one front end. For the simplest route, follow the AUTOMATIC1111 documentation: install Python 3.10.6 with Add Python to PATH ticked, install Git, clone the stable-diffusion-webui repository, place a checkpoint in the models folder, and run webui-user.bat as a normal, non-administrator user. The interface opens at the local address 127.0.0.1:7860 shown in the console. Alternatively, install ComfyUI through its recommended Desktop app or the self-contained Windows Portable build, and put checkpoints in models/checkpoints. Start with a 1.5 checkpoint at 512 by 512 and a batch size of one, or an SDXL checkpoint at 1024 by 1024, and add memory-saving flags only if you hit an out-of-memory error.

Before You Install

Confirm which RTX 3060 you have

NVIDIA’s official specification lists 3,584 CUDA cores, an Ampere chip with third-generation Tensor Cores, and either 12GB or 8GB of GDDR6 depending on the variant. The 12GB card uses a 192-bit memory interface; the 8GB card uses a narrower 128-bit interface. For image generation, capacity matters more than the small clock differences between partner cards, because the model, its text encoders and the image all have to fit in video memory at once. With the 8GB variant, everything here still applies, but expect to use the memory-saving flags sooner, and treat SDXL with a refiner as a stretch rather than a default.

Update the graphics driver first

Both front ends run on PyTorch with CUDA acceleration, so the NVIDIA driver is the foundation everything else stands on. Install the current driver for your card from NVIDIA’s official driver download page before anything else, and restart if the installer asks. Many first-run failures that look like application bugs, including the WebUI reporting that CUDA is unavailable, trace back to a missing or outdated driver. Fixing it first means later error messages point at the real remaining problem.

Understand what the memory has to hold

A checkpoint is a single large file containing the model weights. When you generate, the front end loads the checkpoint, the text encoders that turn your prompt into numbers, and the VAE that converts the finished latent image into pixels. The AUTOMATIC1111 wiki is explicit that the VRAM required depends largely on the desired image resolution, which is why enlarging the canvas raises memory use far more than a prompt change will. On a 12GB card, a single 1.5 or SDXL checkpoint at its standard resolution fits with room to spare. Pressure arrives when you stack additions on top: the SDXL refiner alongside the base model, ControlNet units, a high-resolution fix pass, or a batch of several images at once.

Route One: AUTOMATIC1111 WebUI on Windows

The AUTOMATIC1111 project documents two Windows installation methods for NVIDIA cards. The first uses a release package and needs no manual Python setup. The second uses Python and Git directly and is the route most extension authors assume. Both end at the same interface.

Method A: the release package

  1. Download the sd.webui.zip release package linked from the project’s Install and Run on NVidia GPUs wiki page, and extract it where you want the WebUI to live.
  2. Double-click update.bat, let it finish updating the WebUI, then close the window.
  3. If you already have checkpoints downloaded, move them into the models/Stable-diffusion folder inside the package before launching, which the wiki notes skips the automatic download of the standard 1.5 model.
  4. Double-click run.bat to launch. The wiki warns that the first launch downloads a large amount of files, so let it complete.
  5. Wait for the console to display Running on local URL: http://127.0.0.1:7860, then open that address in your browser.

Method B: the automatic installation with Python and Git

  1. Install Python 3.10.6 from python.org, ticking the Add Python to PATH checkbox during setup. The project README is specific about this version, noting that newer versions of Python do not support Torch, the library the WebUI depends on.
  2. Install Git from git-scm.com using its standard installer.
  3. Open a command prompt in the folder where you want the installation, and clone the repository by running: git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
  4. Download a checkpoint file, in .safetensors or .ckpt format, from the model publisher’s official page, and place it in the models/Stable-diffusion folder inside the new stable-diffusion-webui folder.
  5. Open the stable-diffusion-webui folder in Windows Explorer and double-click webui-user.bat. The README stresses running it as a normal user, not as administrator.
  6. Leave the console window open. The first launch creates a self-contained virtual environment and installs the remaining requirements, which involves substantial downloads.
  7. When the console shows Running on local URL: http://127.0.0.1:7860, open that address in your browser. In the txt2img tab, type a prompt, leave the defaults in place for your first image, and click Generate.

To close the WebUI, close the console window or press Ctrl+C inside it. Later launches reuse the installed environment and are much quicker.

Route Two: ComfyUI

ComfyUI’s README names its Desktop application as the recommended way to install, describing it as the easiest way to get started on Windows and macOS. It also offers a Windows Portable build, a self-contained build you can unzip and run, and a manual installation for users who want control over their Python and Torch versions. All three run the same interface.

  1. For the Desktop route, download the Comfy Desktop installer from comfy.org, run it, and follow its setup prompts to create a local installation.
  2. For the Portable route, download the Windows Portable archive for NVIDIA GPUs from the project’s releases, extract it, and start it with the NVIDIA launch script included in the package.
  3. For a manual install, the README gives the sequence directly: clone the repository with git clone https://github.com/Comfy-Org/ComfyUI.git, move into the ComfyUI folder, install the requirements with pip install -r requirements.txt inside a Python environment that already has a working PyTorch, and start with python main.py.
  4. Whichever route you chose, place checkpoints in models/checkpoints and separate VAE files in models/vae, exactly as the README instructs. ComfyUI looks in those folders when building the model lists in its nodes.
  5. Launch ComfyUI and open the interface at the local address the console reports, port 8188 by default.
  6. The default workflow loads a checkpoint through a Load Checkpoint node, sends positive and negative prompts through CLIP text encoding nodes into a sampler, and decodes the result with a VAE Decode node into a Save Image node. Click Queue to run it. If a node reports a missing model, the checkpoint is not in models/checkpoints, or the node’s dropdown has not been pointed at it.

One difference is worth knowing. A1111 saves the settings used for each image inside the image file, so you can drag an image onto its PNG Info tab to recover them. ComfyUI instead saves the entire workflow, and dragging a generated image back onto its canvas restores the full node graph, seeds included, per the README.

Settings That Matter on a 12GB RTX 3060

Start at each model’s standard resolution

Resolution is the biggest lever on memory use. The Stable Diffusion 1.5 family was built around 512 by 512 generation, while Stability AI describes SDXL as working especially well with images between 768 and 1024 pixels, and its base checkpoint targets 1024 by 1024 output. Matching the model to its intended size is not just a memory tip; generating far from the size a model was designed for is a common cause of distorted faces and duplicated objects. Begin with 512 by 512 for 1.5-based checkpoints and 1024 by 1024 for SDXL, at a batch size of one, and raise the batch count or canvas only after a single image completes cleanly.

Use Highres Fix and upscalers instead of huge canvases

A1111 includes a Highres Fix option, described in the feature list as a convenience option to produce high-resolution pictures in one click without the usual distortions, plus an Extras tab with upscalers such as RealESRGAN and ESRGAN. The memory-friendly pattern on a 12GB card is to generate at the model’s standard size, then enlarge with Highres Fix at a moderate scale or send the finished image to an upscaler, rather than setting a very large canvas on the first pass. ComfyUI applies the same logic, with upscaling as a separate node stage after the sampler.

Know the launch flags before you need them

Launch options in A1111 are set by editing webui-user.bat and adding arguments after set COMMANDLINE_ARGS=, separated by spaces, as the NVIDIA wiki describes. Three documented options matter for this card:

  • –xformers enables the xFormers cross-attention optimisation, which the README lists as a major speed increase for select cards. It is the one performance flag worth trying here.
  • –medvram enables optimisations that sacrifice a little speed for lower VRAM use, in the project’s own words. The related –medvram-sdxl applies the same behaviour only while an SDXL checkpoint is loaded, suiting a card that only struggles with SDXL.
  • –lowvram goes further, sacrificing a lot of speed for very low VRAM use. On a 12GB card, treat it as a last resort for an oversized workflow, not a default.

In ComfyUI the equivalent controls are startup flags documented on the official startup flags reference. The defaults already include smart memory management, so change nothing at first. If a large workflow runs out of memory, –lowvram runs text encoders on the CPU, –novram gives minimal VRAM usage when –lowvram is not enough, and –reserve-vram sets aside a stated amount of memory in gigabytes for the operating system. Change one flag at a time and relaunch, so you know which change fixed the problem.

Treat the SDXL refiner and ControlNet as additions, not defaults

Stability AI’s SDXL model card describes an ensemble design: the base model generates the image, and an optional refiner model, stabilityai/stable-diffusion-xl-refiner-1.0, can process the result through the final denoising steps, while the base model also works fully on its own. Loading the refiner means a second large model shares the same 12GB. Run the base model alone until your prompts and settings are dialled in, then enable the refiner, or a ControlNet unit, one addition at a time. If an out-of-memory error appears exactly when you add one, that addition is the cause, and –medvram-sdxl in A1111 or a smaller canvas is the documented direction to move in.

Keep half precision on unless images come out black

Both tools run models in half precision by default, which roughly halves the memory the weights occupy compared with full precision. Leave it that way. The A1111 NVIDIA wiki documents the exception: if results come out as black or green images, adding –precision full and –no-half is the suggested fix, and if a model and VAE combination produces a NaNsException error with a black image, –no-half-vae may help. Enabling those flags permanently on a 12GB card wastes the headroom you bought the card for.

Common First-Run Errors and Fixes

Torch not installed, or CUDA unavailable at launch

The WebUI stops early when PyTorch cannot see the GPU. The usual causes are an outdated or missing NVIDIA driver, and a Python version other than the documented 3.10.6, which the README warns does not support Torch in newer releases. Reinstall the driver, confirm the Python version shown in the console matches, delete the venv folder inside stable-diffusion-webui, and launch webui-user.bat again so the environment rebuilds cleanly.

The console opens and closes, or Python is not recognised

This almost always means Python was installed without the Add Python to PATH option the README calls for, so Windows cannot find it. Reinstall Python 3.10.6 with that box ticked. Also confirm you are running webui-user.bat as a normal user rather than as administrator, as the documentation instructs.

CUDA out of memory during generation

The A1111 wiki states that without enough VRAM the WebUI may refuse to launch or fail to generate with an out-of-memory error, and that the requirement depends largely on resolution. Work down this list: close other programs using the GPU, return the canvas to the model’s standard size, set batch size and batch count to one, disable the refiner or ControlNet you just added, and only then add –medvram or –medvram-sdxl to webui-user.bat and relaunch. In ComfyUI, step through –lowvram and –novram the same way.

Black or green images

Per the A1111 NVIDIA wiki, add –precision full and –no-half to COMMANDLINE_ARGS when output is black or green. If the console instead reports a NaNsException from the VAE, try –no-half-vae, which the same page suggests for that combination. Change one thing, relaunch, and regenerate the same prompt and seed to confirm the fix.

No model appears in the checkpoint dropdown

The checkpoint file is in the wrong folder, or the interface has not refreshed. In A1111, checkpoints belong in models/Stable-diffusion; in ComfyUI, in models/checkpoints, with separate VAE files in models/vae. Confirm the download finished and produced a complete .safetensors or .ckpt file, move it to the correct folder, then use the refresh control beside the checkpoint list or restart the application.

Common Mistakes

  • Installing the newest Python release instead of the documented Python 3.10.6, then troubleshooting the resulting Torch failure as a GPU problem.
  • Buying or assuming the 8GB RTX 3060 while following 12GB advice; NVIDIA sells both under the same name, and the memory figure decides which settings apply.
  • Setting a very large canvas or a big batch as the first generation, hitting an out-of-memory error, and concluding the card cannot run Stable Diffusion at all.
  • Adding –lowvram permanently on a 12GB card, which the project documentation describes as sacrificing a lot of speed, when no memory problem required it.
  • Loading the SDXL refiner, ControlNet and a high-resolution pass all at once on the first SDXL run, leaving no way to tell which addition caused a failure.

Frequently Asked Questions

Can the RTX 3060 run SDXL, or only Stable Diffusion 1.5?

It runs both. Stability AI publishes SDXL as a base model that works on its own at 1024 by 1024, with an optional refiner for the final steps. A 12GB card holds the SDXL base checkpoint comfortably at that size. Adding the refiner or ControlNet raises memory use, so enable one addition at a time and use the documented SDXL memory flag if an out-of-memory error appears.

Should I choose AUTOMATIC1111 or ComfyUI?

Choose AUTOMATIC1111 for a form-based interface with tabs, saved generation parameters in each image, and the largest body of beginner documentation. Choose ComfyUI for node-based workflows you can save, share and rebuild exactly, with fine control over each stage. Both are free and run the same checkpoints, and many people keep AUTOMATIC1111 for quick work and ComfyUI for complex pipelines.

Do I need to install CUDA separately?

No separate CUDA toolkit installation is part of the documented steps. The AUTOMATIC1111 instructions ask for Python 3.10.6 and Git, after which the launcher installs its own requirements, including a CUDA-enabled PyTorch build. ComfyUI’s Desktop and Portable builds are likewise self-contained. What you do need is a current NVIDIA driver, since the driver lets those bundled components talk to the card.

Why is my first launch so slow, and is something broken?

Probably not. The AUTOMATIC1111 wiki notes that the first launch downloads a large amount of files while it builds the virtual environment and installs requirements, and ComfyUI installs behave similarly. Leave the console open and let it finish. Later launches reuse that environment and reach the interface much faster. A launch is only stuck if the console stops printing new lines and the local address never appears.

Explore Our Guides & Free Tools