Spaces:
Runtime error
Runtime error
RohitGandikota
commited on
Commit
β’
39c1245
1
Parent(s):
9ab9acf
fixing inference
Browse files- app.py +11 -2
- requirements.txt +1 -0
app.py
CHANGED
@@ -9,18 +9,27 @@ from trainscripts.textsliders.lora import LoRANetwork, DEFAULT_TARGET_REPLACE, U
|
|
9 |
from trainscripts.textsliders.demotrain import train_xl
|
10 |
|
11 |
os.environ['CURL_CA_BUNDLE'] = ''
|
12 |
-
|
|
|
|
|
13 |
'Chubby': 'models/chubby.pt',
|
14 |
'Muscular': 'models/muscular.pt',
|
|
|
|
|
|
|
|
|
15 |
'Wavy Eyebrows': 'models/eyebrows.pt',
|
16 |
'Small Eyes': 'models/eyesize.pt',
|
|
|
17 |
'Long Hair' : 'models/longhair.pt',
|
18 |
'Curly Hair' : 'models/curlyhair.pt',
|
19 |
-
|
20 |
'Pixar Style' : 'models/pixar_style.pt',
|
21 |
'Sculpture Style': 'models/sculpture_style.pt',
|
|
|
22 |
'Repair Images': 'models/repair_slider.pt',
|
23 |
'Fix Hands': 'models/fix_hands.pt',
|
|
|
24 |
}
|
25 |
|
26 |
ORIGINAL_SPACE_ID = 'baulab/ConceptSliders'
|
|
|
9 |
from trainscripts.textsliders.demotrain import train_xl
|
10 |
|
11 |
os.environ['CURL_CA_BUNDLE'] = ''
|
12 |
+
|
13 |
+
model_map = {
|
14 |
+
'Age' : 'models/age.pt',
|
15 |
'Chubby': 'models/chubby.pt',
|
16 |
'Muscular': 'models/muscular.pt',
|
17 |
+
'Surprised Look': 'models/suprised_look.pt',
|
18 |
+
'Smiling' : 'models/smiling.pt',
|
19 |
+
'Professional': 'models/professional.pt',
|
20 |
+
|
21 |
'Wavy Eyebrows': 'models/eyebrows.pt',
|
22 |
'Small Eyes': 'models/eyesize.pt',
|
23 |
+
|
24 |
'Long Hair' : 'models/longhair.pt',
|
25 |
'Curly Hair' : 'models/curlyhair.pt',
|
26 |
+
|
27 |
'Pixar Style' : 'models/pixar_style.pt',
|
28 |
'Sculpture Style': 'models/sculpture_style.pt',
|
29 |
+
|
30 |
'Repair Images': 'models/repair_slider.pt',
|
31 |
'Fix Hands': 'models/fix_hands.pt',
|
32 |
+
|
33 |
}
|
34 |
|
35 |
ORIGINAL_SPACE_ID = 'baulab/ConceptSliders'
|
requirements.txt
CHANGED
@@ -21,4 +21,5 @@ tqdm==4.64.1
|
|
21 |
transformers==4.27.4
|
22 |
wandb==0.12.21
|
23 |
accelerate==0.16.0
|
|
|
24 |
gradio
|
|
|
21 |
transformers==4.27.4
|
22 |
wandb==0.12.21
|
23 |
accelerate==0.16.0
|
24 |
+
xformers==0.0.21
|
25 |
gradio
|