Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import yaml
|
| 3 |
import numpy as np
|
|
@@ -8,7 +13,7 @@ import dlclibrary
|
|
| 8 |
import dlclive
|
| 9 |
import transformers
|
| 10 |
|
| 11 |
-
from PIL import Image
|
| 12 |
import requests
|
| 13 |
|
| 14 |
from viz_utils import save_results_as_json, draw_keypoints_on_image, draw_bbox_w_text, save_results_only_dlc
|
|
|
|
| 1 |
+
# Adapted from https://huggingface.co/spaces/hlydecker/MegaDetector_v5
|
| 2 |
+
# Adapted from https://huggingface.co/spaces/sofmi/MegaDetector_DLClive/blob/main/app.py
|
| 3 |
+
# Adapted from https://huggingface.co/spaces/Neslihan/megadetector_dlcmodels/blob/main/app.py
|
| 4 |
+
# Adapted from https://huggingface.co/spaces/DeepLabCut/MegaDetector_DeepLabCut
|
| 5 |
+
|
| 6 |
import os
|
| 7 |
import yaml
|
| 8 |
import numpy as np
|
|
|
|
| 13 |
import dlclive
|
| 14 |
import transformers
|
| 15 |
|
| 16 |
+
from PIL import Image, ImageColor, ImageFont, ImageDraw
|
| 17 |
import requests
|
| 18 |
|
| 19 |
from viz_utils import save_results_as_json, draw_keypoints_on_image, draw_bbox_w_text, save_results_only_dlc
|