Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def load_and_prepare_model():
|
|
114 |
|
115 |
pipe = load_and_prepare_model()
|
116 |
|
117 |
-
MAX_SEED = np.iinfo(np.
|
118 |
|
119 |
neg_prompt_2 = " 'non-photorealistic':1.5, 'unrealistic skin','unattractive face':1.3, 'low quality':1.1, ('dull color scheme', 'dull colors', 'digital noise':1.2),'amateurish', 'poorly drawn face':1.3, 'poorly drawn', 'distorted face', 'low resolution', 'simplistic' "
|
120 |
|
@@ -146,7 +146,7 @@ def save_image(img):
|
|
146 |
return unique_name
|
147 |
|
148 |
def uploadNote(prompt,num_inference_steps,guidance_scale,timestamp):
|
149 |
-
filename= f'
|
150 |
with open(filename, "w") as f:
|
151 |
f.write(f"Realvis 5.0 (Tester B) \n")
|
152 |
f.write(f"Date/time: {timestamp} \n")
|
@@ -156,8 +156,7 @@ def uploadNote(prompt,num_inference_steps,guidance_scale,timestamp):
|
|
156 |
f.write(f"SPACE SETUP: \n")
|
157 |
f.write(f"Use Model Dtype: no \n")
|
158 |
f.write(f"Model Scheduler: Euler_a all_custom before cuda \n")
|
159 |
-
f.write(f"
|
160 |
-
f.write(f"To cuda then to bfloat \n")
|
161 |
upload_to_ftp(filename)
|
162 |
|
163 |
@spaces.GPU(duration=30)
|
|
|
114 |
|
115 |
pipe = load_and_prepare_model()
|
116 |
|
117 |
+
MAX_SEED = np.iinfo(np.int32).max
|
118 |
|
119 |
neg_prompt_2 = " 'non-photorealistic':1.5, 'unrealistic skin','unattractive face':1.3, 'low quality':1.1, ('dull color scheme', 'dull colors', 'digital noise':1.2),'amateurish', 'poorly drawn face':1.3, 'poorly drawn', 'distorted face', 'low resolution', 'simplistic' "
|
120 |
|
|
|
146 |
return unique_name
|
147 |
|
148 |
def uploadNote(prompt,num_inference_steps,guidance_scale,timestamp):
|
149 |
+
filename= f'txt/tst_B_{timestamp}.txt'
|
150 |
with open(filename, "w") as f:
|
151 |
f.write(f"Realvis 5.0 (Tester B) \n")
|
152 |
f.write(f"Date/time: {timestamp} \n")
|
|
|
156 |
f.write(f"SPACE SETUP: \n")
|
157 |
f.write(f"Use Model Dtype: no \n")
|
158 |
f.write(f"Model Scheduler: Euler_a all_custom before cuda \n")
|
159 |
+
f.write(f"To cuda and bfloat \n")
|
|
|
160 |
upload_to_ftp(filename)
|
161 |
|
162 |
@spaces.GPU(duration=30)
|