Upload cogagent_infer.py with huggingface_hub
Browse files- cogagent_infer.py +1 -1
cogagent_infer.py
CHANGED
|
@@ -8,7 +8,7 @@ from typing import List
|
|
| 8 |
import json
|
| 9 |
from tqdm import tqdm
|
| 10 |
|
| 11 |
-
class
|
| 12 |
def draw_boxes_on_image(image: Image.Image, boxes: List[List[float]], save_path: str):
|
| 13 |
"""
|
| 14 |
Draws red bounding boxes on the given image and saves it.
|
|
|
|
| 8 |
import json
|
| 9 |
from tqdm import tqdm
|
| 10 |
|
| 11 |
+
#class
|
| 12 |
def draw_boxes_on_image(image: Image.Image, boxes: List[List[float]], save_path: str):
|
| 13 |
"""
|
| 14 |
Draws red bounding boxes on the given image and saves it.
|