Spaces:
Sleeping
Sleeping
Update utils/basic_functions.py
Browse files- utils/basic_functions.py +2 -1
utils/basic_functions.py
CHANGED
|
@@ -116,7 +116,8 @@ def huggingface_detect_id_box(model_name,url):
|
|
| 116 |
"""
|
| 117 |
|
| 118 |
output = model.generate(**inputs,max_new_tokens=200,do_sample=False)
|
| 119 |
-
|
|
|
|
| 120 |
|
| 121 |
|
| 122 |
draw = ImageDraw.Draw(image)
|
|
|
|
| 116 |
"""
|
| 117 |
|
| 118 |
output = model.generate(**inputs,max_new_tokens=200,do_sample=False)
|
| 119 |
+
bbox = processor.decode(output[0][2:],skip_special_tokens=True))
|
| 120 |
+
print(bbox)
|
| 121 |
|
| 122 |
|
| 123 |
draw = ImageDraw.Draw(image)
|