root
commited on
Commit
·
ef07006
1
Parent(s):
96c092e
revertr
Browse files- handler.py +2 -2
handler.py
CHANGED
|
@@ -48,9 +48,9 @@ class EndpointHandler():
|
|
| 48 |
vae = AutoencoderKL.from_pretrained(config_path).to(device, dtype=self.weight_dtype)
|
| 49 |
|
| 50 |
pretrained_base_model_path_unet = os.path.join(base_dir, 'pretrained_weights', 'stable-diffusion-v1-5', 'unet')
|
| 51 |
-
|
| 52 |
reference_unet = UNet2DConditionModel.from_pretrained(
|
| 53 |
-
|
| 54 |
local_files_only=True
|
| 55 |
).to(device, dtype=self.weight_dtype)
|
| 56 |
|
|
|
|
| 48 |
vae = AutoencoderKL.from_pretrained(config_path).to(device, dtype=self.weight_dtype)
|
| 49 |
|
| 50 |
pretrained_base_model_path_unet = os.path.join(base_dir, 'pretrained_weights', 'stable-diffusion-v1-5', 'unet')
|
| 51 |
+
print("model path is " + pretrained_base_model_path_unet)
|
| 52 |
reference_unet = UNet2DConditionModel.from_pretrained(
|
| 53 |
+
pretrained_base_model_path_unet,
|
| 54 |
local_files_only=True
|
| 55 |
).to(device, dtype=self.weight_dtype)
|
| 56 |
|