lzyhha commited on
Commit
6ec434e
·
verified ·
1 Parent(s): f0ab9f6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -103,7 +103,7 @@ high contrast, photorealistic, intimate, elegant, visually balanced, serene atmo
103
 
104
  # Load the VisualClozePipeline
105
  pipe = VisualClozePipeline.from_pretrained("VisualCloze/VisualClozePipeline-512", resolution=512, torch_dtype=torch.bfloat16)
106
- pipe.enable_model_cpu_offload() # Save some VRAM by offloading the model to CPU
107
 
108
  # Run the pipeline
109
  image_result = pipe(
@@ -156,7 +156,7 @@ content_prompt = None
156
 
157
  # Load the VisualClozePipeline
158
  pipe = VisualClozePipeline.from_pretrained("VisualCloze/VisualClozePipeline-512", resolution=512, torch_dtype=torch.bfloat16)
159
- pipe.enable_model_cpu_offload() # Save some VRAM by offloading the model to CPU
160
 
161
  # Run the pipeline
162
  image_result = pipe(
 
103
 
104
  # Load the VisualClozePipeline
105
  pipe = VisualClozePipeline.from_pretrained("VisualCloze/VisualClozePipeline-512", resolution=512, torch_dtype=torch.bfloat16)
106
+ pipe.to("cuda")
107
 
108
  # Run the pipeline
109
  image_result = pipe(
 
156
 
157
  # Load the VisualClozePipeline
158
  pipe = VisualClozePipeline.from_pretrained("VisualCloze/VisualClozePipeline-512", resolution=512, torch_dtype=torch.bfloat16)
159
+ pipe.to("cuda")
160
 
161
  # Run the pipeline
162
  image_result = pipe(