Views
No views yet
pipeline.py — JiTPipelinescheduler/scheduler_config.json — FlowMatchHeunDiscreteScheduler config (default shift=4.0)transformer/jit_transformer_2d.py — JiTTransformer2DModel__call__ with positional interpolation.jit_diffusers package; only PyPI diffusers plus local custom code in the variant directory.| Checkpoint | Path | Resolution | Recommended CFG |
|---|---|---|---|
| JiT-B/16 | ./JiT-B-16 | 256×256 | 3.0 |
| JiT-L/16 | ./JiT-L-16 | 256×256 | 2.4 |
| JiT-H/16 | ./JiT-H-16 | 256×256 | 2.2 |
| JiT-B/32 | ./JiT-B-32 | 512×512 | 3.0 |
| JiT-L/32 | ./JiT-L-32 | 512×512 | 2.5 |
| JiT-H/32 | ./JiT-H-32 | 512×512 | 2.3 |
id2label map directly in its own model_index.json (DiT-style).pipe.id2label — inspect id → English label correspondencepipe.labels — reverse map (English synonym → id), sorted for browsingpipe.get_label_ids("golden retriever")pipe(class_labels="golden retriever", ...) — string labels resolved automaticallysrc/labels/id2label_cn.json for reference.python demo_inference.pydemo.png using JiT-H-32 with the settings below.1from pathlib import Path
2from diffusers import DiffusionPipeline, FlowMatchHeunDiscreteScheduler
3import torch
4
5model_dir = Path("./JiT-H-32")
6pipe = DiffusionPipeline.from_pretrained(
7 str(model_dir),
8 custom_pipeline=str(model_dir / "pipeline.py"),
9 trust_remote_code=True,
10)
11pipe.scheduler = FlowMatchHeunDiscreteScheduler.from_config(pipe.scheduler.config, shift=4.0)
12pipe.to("cuda")
13
14# Numeric or human-readable labels
15print(pipe.id2label[207])
16print(pipe.get_label_ids("golden retriever"))
17
18generator = torch.Generator(device="cuda").manual_seed(42)
19image = pipe(
20 class_labels="golden retriever",
21 num_inference_steps=50,
22 guidance_scale=2.3,
23 generator=generator,
24).images[0]
25image.save("demo.png")height and width default to the checkpoint's native resolution when omitted../JiT-H-32), not the repo root.