multimodalart HF staff commited on
Commit
7ea8e17
1 Parent(s): 2d7c038

zerogpu debug #3

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