Upload 2 files
Browse files- florence2_sd3_tagger8.py +1 -1
florence2_sd3_tagger8.py
CHANGED
@@ -46,7 +46,7 @@ def fl_run_example(image, fl_model, fl_processor):
|
|
46 |
if image.mode != "RGB":
|
47 |
image = image.convert("RGB")
|
48 |
|
49 |
-
inputs = fl_processor(text=prompt, images=image, return_tensors="pt")
|
50 |
generated_ids = fl_model.generate(
|
51 |
input_ids=inputs["input_ids"],
|
52 |
pixel_values=inputs["pixel_values"],
|
|
|
46 |
if image.mode != "RGB":
|
47 |
image = image.convert("RGB")
|
48 |
|
49 |
+
inputs = fl_processor(text=prompt, images=image, return_tensors="pt")
|
50 |
generated_ids = fl_model.generate(
|
51 |
input_ids=inputs["input_ids"],
|
52 |
pixel_values=inputs["pixel_values"],
|