Commit
•
19008f8
1
Parent(s):
f797ad8
Update region_control.py
Browse files- region_control.py +2 -1
region_control.py
CHANGED
@@ -53,7 +53,8 @@ class MultiDiffusion(nn.Module):
|
|
53 |
elif self.sd_version == '1.5':
|
54 |
model_key = "runwayml/stable-diffusion-v1-5"
|
55 |
else:
|
56 |
-
|
|
|
57 |
|
58 |
# Create model
|
59 |
self.vae = AutoencoderKL.from_pretrained(model_key, subfolder="vae").to(self.device)
|
|
|
53 |
elif self.sd_version == '1.5':
|
54 |
model_key = "runwayml/stable-diffusion-v1-5"
|
55 |
else:
|
56 |
+
model_key = self.sd_version #For custom models or fine-tunes, allow people to use arbitrary versions
|
57 |
+
#raise ValueError(f'Stable-diffusion version {self.sd_version} not supported.')
|
58 |
|
59 |
# Create model
|
60 |
self.vae = AutoencoderKL.from_pretrained(model_key, subfolder="vae").to(self.device)
|