Commit
·
e7c1d62
1
Parent(s):
07c7a33
Update convert.py
Browse files- convert.py +5 -4
convert.py
CHANGED
|
@@ -28,10 +28,11 @@ def convert_single(model_id: str, filename: str, model_type: str, sample_size: i
|
|
| 28 |
|
| 29 |
if model_type == "v1":
|
| 30 |
config_url = "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/configs/stable-diffusion/v1-inference.yaml"
|
| 31 |
-
elif model_type ==
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
|
|
|
| 35 |
|
| 36 |
config_file = BytesIO(requests.get(config_url).content)
|
| 37 |
|
|
|
|
| 28 |
|
| 29 |
if model_type == "v1":
|
| 30 |
config_url = "https://raw.githubusercontent.com/CompVis/stable-diffusion/main/configs/stable-diffusion/v1-inference.yaml"
|
| 31 |
+
elif model_type == "v2":
|
| 32 |
+
if sample_size == 512:
|
| 33 |
+
config_url = "https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference.yaml"
|
| 34 |
+
else:
|
| 35 |
+
config_url = "https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml"
|
| 36 |
|
| 37 |
config_file = BytesIO(requests.get(config_url).content)
|
| 38 |
|