multimodalart HF staff commited on
Commit
b545fd4
·
verified ·
1 Parent(s): bd9c628

ZeroGPU debugging

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -16,7 +16,6 @@ from RAG_pipeline_flux import RAG_FluxPipeline
16
  MAX_SEED = 999999
17
 
18
  pipe = RAG_FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
19
- pipe = pipe.to("cuda")
20
 
21
  global run_nums
22
 
@@ -53,7 +52,7 @@ def rag_gen(
53
  guidance_scale,
54
  seed,
55
  randomize_seed):
56
-
57
  points, image = box_prompt_image['points'], box_prompt_image['image']
58
  print("points", points)
59
  box_inputs = get_box_inputs(points)
 
16
  MAX_SEED = 999999
17
 
18
  pipe = RAG_FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
 
19
 
20
  global run_nums
21
 
 
52
  guidance_scale,
53
  seed,
54
  randomize_seed):
55
+ pipe = pipe.to("cuda")
56
  points, image = box_prompt_image['points'], box_prompt_image['image']
57
  print("points", points)
58
  box_inputs = get_box_inputs(points)