ml-finetuning/stable-diffusion/upload_to_huggingface.py

9 lines
191 B
Python

from huggingface_hub import HfApi
api = HfApi()
api.upload_folder(
folder_path="/home/float/dreambooth/checkpoint-1000",
repo_id="float-trip/marsey-db-sd2",
repo_type="model",
)