Update src/pipeline.py
Browse files- src/pipeline.py +1 -1
src/pipeline.py
CHANGED
|
@@ -83,7 +83,7 @@ def infer(request: TextToImageRequest, pipeline: Pipeline) -> Image:
|
|
| 83 |
if sample:
|
| 84 |
clear()
|
| 85 |
sample = None
|
| 86 |
-
torch.cuda.reset_peak_memory_stats()
|
| 87 |
generator = Generator("cuda").manual_seed(request.seed)
|
| 88 |
image=pipeline(request.prompt,generator=generator, guidance_scale=0.0, num_inference_steps=4, max_sequence_length=256, height=request.height, width=request.width, output_type="pil").images[0]
|
| 89 |
return(image)
|
|
|
|
| 83 |
if sample:
|
| 84 |
clear()
|
| 85 |
sample = None
|
| 86 |
+
# torch.cuda.reset_peak_memory_stats()
|
| 87 |
generator = Generator("cuda").manual_seed(request.seed)
|
| 88 |
image=pipeline(request.prompt,generator=generator, guidance_scale=0.0, num_inference_steps=4, max_sequence_length=256, height=request.height, width=request.width, output_type="pil").images[0]
|
| 89 |
return(image)
|