Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
-
|
2 |
-
hf_hub_download(repo_id="stabilityai/stable-diffusion-2-1-base", filename="v2-1_512-ema-pruned.ckpt")
|
3 |
|
4 |
# Copyright 2022 Lunar Ring. All rights reserved.
|
5 |
# Written by Johannes Stelzer, email [email protected] twitter @j_stelzer
|
@@ -15,8 +14,10 @@ hf_hub_download(repo_id="stabilityai/stable-diffusion-2-1-base", filename="v2-1_
|
|
15 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16 |
# See the License for the specific language governing permissions and
|
17 |
# limitations under the License.
|
18 |
-
|
|
|
19 |
import os, sys
|
|
|
20 |
import torch
|
21 |
torch.backends.cudnn.benchmark = False
|
22 |
import numpy as np
|
|
|
1 |
+
|
|
|
2 |
|
3 |
# Copyright 2022 Lunar Ring. All rights reserved.
|
4 |
# Written by Johannes Stelzer, email [email protected] twitter @j_stelzer
|
|
|
14 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15 |
# See the License for the specific language governing permissions and
|
16 |
# limitations under the License.
|
17 |
+
from huggingface_hub import hf_hub_download
|
18 |
+
hf_hub_download(repo_id="stabilityai/stable-diffusion-2-1-base", filename="v2-1_512-ema-pruned.ckpt")
|
19 |
import os, sys
|
20 |
+
sys.path.append("latentblending")
|
21 |
import torch
|
22 |
torch.backends.cudnn.benchmark = False
|
23 |
import numpy as np
|