Spaces:
Paused
Paused
Update modules/masking_module.py
Browse files
modules/masking_module.py
CHANGED
@@ -77,7 +77,7 @@ def florence2(image,task_prompt, text_input=None):
|
|
77 |
else:
|
78 |
prompt = task_prompt + text_input
|
79 |
|
80 |
-
input_florence = processor(text=prompt, images=image, return_tensors="pt").to(
|
81 |
print(input_florence)
|
82 |
generated_ids = model.generate(
|
83 |
input_ids=input_florence["input_ids"],
|
|
|
77 |
else:
|
78 |
prompt = task_prompt + text_input
|
79 |
|
80 |
+
input_florence = processor(text=prompt, images=image, return_tensors="pt").to("cuda")
|
81 |
print(input_florence)
|
82 |
generated_ids = model.generate(
|
83 |
input_ids=input_florence["input_ids"],
|