Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,10 @@ from diffusers import StableDiffusionPipeline, DDIMScheduler
|
|
7 |
import torch
|
8 |
|
9 |
MODEL_NAME = "runwayml/stable-diffusion-v1-5"
|
10 |
-
OUTPUT_DIR = "/
|
11 |
|
12 |
def fine_tune(instance_prompt, image1, image2):
|
13 |
-
instance_data_dir = "/
|
14 |
if os.path.exists(instance_data_dir):
|
15 |
shutil.rmtree(instance_data_dir)
|
16 |
os.makedirs(instance_data_dir, exist_ok=True)
|
|
|
7 |
import torch
|
8 |
|
9 |
MODEL_NAME = "runwayml/stable-diffusion-v1-5"
|
10 |
+
OUTPUT_DIR = "/home/user/app/stable_diffusion_weights/custom_model"
|
11 |
|
12 |
def fine_tune(instance_prompt, image1, image2):
|
13 |
+
instance_data_dir = "/home/user/app/instance_images"
|
14 |
if os.path.exists(instance_data_dir):
|
15 |
shutil.rmtree(instance_data_dir)
|
16 |
os.makedirs(instance_data_dir, exist_ok=True)
|