Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -208,7 +208,6 @@ os.environ["SAFETENSORS_FAST_GPU"] = "1"
|
|
208 |
|
209 |
upscaler = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1").to(torch.device("cuda:0"))
|
210 |
|
211 |
-
@njit(fastmath = True)
|
212 |
def scheduler_swap_callback(pipeline, step_index, timestep, callback_kwargs):
|
213 |
# adjust the batch_size of prompt_embeds according to guidance_scale
|
214 |
if step_index == int(pipeline.num_timesteps * 0.1):
|
@@ -324,6 +323,7 @@ MAX_SEED = np.iinfo(np.int64).max
|
|
324 |
|
325 |
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' "
|
326 |
|
|
|
327 |
def upload_to_ftp(filename):
|
328 |
try:
|
329 |
transport = paramiko.Transport((FTP_HOST, 22))
|
|
|
208 |
|
209 |
upscaler = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1").to(torch.device("cuda:0"))
|
210 |
|
|
|
211 |
def scheduler_swap_callback(pipeline, step_index, timestep, callback_kwargs):
|
212 |
# adjust the batch_size of prompt_embeds according to guidance_scale
|
213 |
if step_index == int(pipeline.num_timesteps * 0.1):
|
|
|
323 |
|
324 |
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' "
|
325 |
|
326 |
+
@njit(fastmath = True)
|
327 |
def upload_to_ftp(filename):
|
328 |
try:
|
329 |
transport = paramiko.Transport((FTP_HOST, 22))
|