erwold commited on
Commit
461d656
·
1 Parent(s): 7ffc337
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -270,8 +270,8 @@ def generate_images(input_image, prompt="", guidance_scale=3.5,
270
 
271
  # 将 Transformer 和 VAE 移回 CPU
272
  logger.info("Moving models back to CPU...")
273
- transformer.cpu()
274
- vae.cpu()
275
  torch.cuda.empty_cache()
276
 
277
  return output_images
 
270
 
271
  # 将 Transformer 和 VAE 移回 CPU
272
  logger.info("Moving models back to CPU...")
273
+ #transformer.cpu()
274
+ #vae.cpu()
275
  torch.cuda.empty_cache()
276
 
277
  return output_images