Flux-Logo-Design / upload_model_to_hub.py
insideman's picture
Create upload_model_to_hub.py
8b4c378 verified
raw
history blame
563 Bytes
from huggingface_hub import login
from diffusers import FluxPipeline
# Hugging Face'e giriş yapın
login("your_token_here")
# Mevcut modelinizi yükleyin ve değişikliklerinizi yapın
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-Logo-Design", weight_name="FLUX-dev-lora-Logo-Design.safetensors")
pipe.fuse_lora(lora_scale=0.8)
# Modeli Hugging Face'e yükleyin
pipe.push_to_hub("insideman/Flux-Logo-Design", private=True) # private=True gizli repo için