Spaces:
Runtime error
Runtime error
update dependency
Browse files- app.py +6 -3
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -13,12 +13,15 @@ from diffusers import AutoencoderKL
|
|
| 13 |
from diffusers import StableDiffusionPipeline
|
| 14 |
from diffusers.loaders import LoraLoaderMixin
|
| 15 |
|
| 16 |
-
from stablegarment.models import AppearanceEncoderModel,ControlNetModel
|
| 17 |
-
from stablegarment.piplines import StableGarmentPipeline,StableGarmentControlNetPipeline
|
| 18 |
-
|
| 19 |
import os
|
| 20 |
from os.path import join as opj
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 23 |
torch_dtype = torch.float16 if "cuda"==device else torch.float32
|
| 24 |
height = 512
|
|
|
|
| 13 |
from diffusers import StableDiffusionPipeline
|
| 14 |
from diffusers.loaders import LoraLoaderMixin
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
import os
|
| 17 |
from os.path import join as opj
|
| 18 |
|
| 19 |
+
token = os.getenv("ACCESS_TOKEN")
|
| 20 |
+
os.system(f"python -m pip install git+https://{token}@github.com/logn-2024/StableGarment.git")
|
| 21 |
+
|
| 22 |
+
from stablegarment.models import AppearanceEncoderModel,ControlNetModel
|
| 23 |
+
from stablegarment.piplines import StableGarmentPipeline,StableGarmentControlNetPipeline
|
| 24 |
+
|
| 25 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 26 |
torch_dtype = torch.float16 if "cuda"==device else torch.float32
|
| 27 |
height = 512
|
requirements.txt
CHANGED
|
@@ -5,4 +5,4 @@ diffusers
|
|
| 5 |
spaces
|
| 6 |
Pillow
|
| 7 |
numpy
|
| 8 |
-
git+https://[email protected]/logn-2024/StableGarment.git
|
|
|
|
| 5 |
spaces
|
| 6 |
Pillow
|
| 7 |
numpy
|
| 8 |
+
# git+https://[email protected]/logn-2024/StableGarment.git
|