Class-conditional sample (ImageNet class
207
, golden retriever), EDM2-XXL at 512×512, 32 steps, guidance 1.0, seed 42.
Model Paths
Use paths relative to this root README:
Model
NVlabs preset
FID
Local path
EDM2-XS
edm2-img512-xs-fid
3.53
./edm2-img512-xs-fid
EDM2-S
edm2-img512-s-fid
2.56
./edm2-img512-s-fid
EDM2-M
edm2-img512-m-fid
2.25
./edm2-img512-m-fid
EDM2-L
edm2-img512-l-fid
2.06
./edm2-img512-l-fid
EDM2-L (DINO)
edm2-img512-l-dino
—
./edm2-img512-l-dino
EDM2-XL
edm2-img512-xl-fid
1.96
./edm2-img512-xl-fid
EDM2-XXL
edm2-img512-xxl-fid
1.91
./edm2-img512-xxl-fid
Inference Demo (Diffusers)
1) Load a local subfolder checkpoint
from pathlib import Path
import torch
from diffusers import DiffusionPipeline
model_dir = Path("./edm2-img512-xxl-fid") # change to any path in the table above
pipe = DiffusionPipeline.from_pretrained(
str(model_dir),
local_files_only=True,
trust_remote_code=True,
torch_dtype=torch.bfloat16,
).to("cuda")
generator = torch.Generator(device="cuda").manual_seed(42)
image = pipe(
class_labels=207, # golden retriever (ImageNet id); omit for random class
num_inference_steps=32,
guidance_scale=1.0, # >1.0 requires a gnet/ checkpoint
generator=generator,
).images[0]
image.save("demo.png")
Official inference defaults (
generate_images.py
):
num_steps=32
,
sigma_min=0.002
,
sigma_max=80
,
rho=7
,
guidance=1.0
(no gnet),
S_churn=0
. Heun sampling runs in
float32 internally even when UNet/VAE weights are loaded in bf16/fp16.
Guided presets require a converted
gnet/
folder and
guidance_scale
matching the
NVlabs preset.
EDM2-diffusers huggingface.co is an AI model on huggingface.co that provides EDM2-diffusers's model effect (), which can be used instantly with this BiliSakura EDM2-diffusers model. huggingface.co supports a free trial of the EDM2-diffusers model, and also provides paid use of the EDM2-diffusers. Support call EDM2-diffusers model through api, including Node.js, Python, http.
EDM2-diffusers huggingface.co is an online trial and call api platform, which integrates EDM2-diffusers's modeling effects, including api services, and provides a free online trial of EDM2-diffusers, you can try EDM2-diffusers online for free by clicking the link below.
BiliSakura EDM2-diffusers online free url in huggingface.co:
EDM2-diffusers is an open source model from GitHub that offers a free installation service, and any user can find EDM2-diffusers on GitHub to install. At the same time, huggingface.co provides the effect of EDM2-diffusers install, users can directly use EDM2-diffusers installed effect in huggingface.co for debugging and trial. It also supports api for free installation.