tools / get_model_ids.py
patrickvonplaten's picture
upload all files
699a234
raw
history blame
246 Bytes
#!/usr/bin/env python3
from huggingface_hub import HfApi
api = HfApi()
out = api.list_models(filter="diffusers")
model_ids = [x.modelId for x in out]
with open("./model_ids.txt", "w") as f:
for _id in model_ids:
f.write(_id + "\n")