Maria
commited on
Commit
·
ef99825
1
Parent(s):
4386cf4
hw6
Browse files
infer.py
CHANGED
|
@@ -34,7 +34,7 @@ else:
|
|
| 34 |
torch_dtype = torch.float32
|
| 35 |
|
| 36 |
default_model = 'CompVis/stable-diffusion-v1-4'
|
| 37 |
-
LoRA_path = '
|
| 38 |
|
| 39 |
CONTROLNET_MODE = {
|
| 40 |
"Canny Edge Detection" : "lllyasviel/control_v11p_sd15_canny",
|
|
@@ -118,7 +118,7 @@ def get_pipe(
|
|
| 118 |
|
| 119 |
|
| 120 |
if model_id == 'Maria_Lashina_LoRA':
|
| 121 |
-
adapter_name = '
|
| 122 |
unet_sub_dir = os.path.join(LoRA_path, "unet")
|
| 123 |
text_encoder_sub_dir = os.path.join(LoRA_path, "text_encoder")
|
| 124 |
|
|
|
|
| 34 |
torch_dtype = torch.float32
|
| 35 |
|
| 36 |
default_model = 'CompVis/stable-diffusion-v1-4'
|
| 37 |
+
LoRA_path = 'new_model'
|
| 38 |
|
| 39 |
CONTROLNET_MODE = {
|
| 40 |
"Canny Edge Detection" : "lllyasviel/control_v11p_sd15_canny",
|
|
|
|
| 118 |
|
| 119 |
|
| 120 |
if model_id == 'Maria_Lashina_LoRA':
|
| 121 |
+
adapter_name = 'cartoonish mouse'
|
| 122 |
unet_sub_dir = os.path.join(LoRA_path, "unet")
|
| 123 |
text_encoder_sub_dir = os.path.join(LoRA_path, "text_encoder")
|
| 124 |
|