Skip to content

Commit 8aa4c6c

Browse files
committed
docs(Models): add code to list checkpoints (#65, #69)
1 parent cc30008 commit 8aa4c6c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/Models/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Models
22
## Checkpoints
3+
Any checkpoint format supported by ComfyUI will work, including `.ckpt`, `.pt`, `.bin`, `.pth` and `.safetensors`.
4+
5+
List all checkpoints:
6+
```python
7+
from comfy_script.runtime import load
8+
load()
9+
from comfy_script.runtime.nodes import Checkpoints
10+
11+
print(list(Checkpoints))
12+
# [<Checkpoints.Anything_V3_0: 'Anything-V3.0.ckpt'>, <Checkpoints.Realistic_Vision_V5_1_fp16_no_ema: 'Realistic_Vision_V5.1_fp16-no-ema.safetensors'>, ..., <Checkpoints.wd_illusion_fp16: 'wd-illusion-fp16.safetensors'>]
13+
```
14+
315
### [CivitAI](https://github.com/Chaoses-Ib/civitai_comfy_nodes)
416
```python
517
def CivitAICheckpointLoader(

0 commit comments

Comments
 (0)