AutoPipelineForImage2Image test
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
import numpy as np
|
| 4 |
import random
|
| 5 |
import os
|
| 6 |
-
from diffusers import
|
| 7 |
import torch
|
| 8 |
from huggingface_hub import snapshot_download
|
| 9 |
|
|
@@ -12,7 +12,7 @@ SPACE_PASSWORD = 'KR_4dmin'
|
|
| 12 |
|
| 13 |
snapshot_download(repo_id="Roomie/xavyy", cache_dir='./')
|
| 14 |
|
| 15 |
-
pipeline =
|
| 16 |
'black-forest-labs/FLUX.1-schnell', torch_dtype=torch.bfloat16).to('cuda')
|
| 17 |
pipeline.load_lora_weights('Roomie/xavyy', weight_name='xavyy.safetensors')
|
| 18 |
|
|
|
|
| 3 |
import numpy as np
|
| 4 |
import random
|
| 5 |
import os
|
| 6 |
+
from diffusers import AutoPipelineForImage2Image
|
| 7 |
import torch
|
| 8 |
from huggingface_hub import snapshot_download
|
| 9 |
|
|
|
|
| 12 |
|
| 13 |
snapshot_download(repo_id="Roomie/xavyy", cache_dir='./')
|
| 14 |
|
| 15 |
+
pipeline = AutoPipelineForImage2Image.from_pretrained(
|
| 16 |
'black-forest-labs/FLUX.1-schnell', torch_dtype=torch.bfloat16).to('cuda')
|
| 17 |
pipeline.load_lora_weights('Roomie/xavyy', weight_name='xavyy.safetensors')
|
| 18 |
|