Spaces:
Build error
Build error
Van commited on
Commit Β·
63a9261
1
Parent(s): bb6c5f9
repo
Browse filesThis view is limited to 50 files because it contains too many changes. Β See raw diff
- app.py +1 -2
- yolov9/benchmarks.py β benchmarks.py +0 -0
- {yolov9/classify β classify}/predict.py +0 -0
- {yolov9/classify β classify}/train.py +0 -0
- {yolov9/classify β classify}/val.py +0 -0
- {yolov9/data β data}/coco.yaml +0 -0
- {yolov9/data β data}/hyps/hyp.scratch-high.yaml +0 -0
- yolov9/detect.py β detect.py +0 -0
- yolov9/export.py β export.py +0 -0
- {yolov9/figure β figure}/performance.png +0 -0
- yolov9/hubconf.py β hubconf.py +0 -0
- {yolov9/models β models}/__init__.py +0 -0
- {yolov9/models β models}/common.py +2 -2
- {yolov9/models β models}/detect/gelan-c.yaml +0 -0
- {yolov9/models β models}/detect/gelan-e.yaml +0 -0
- {yolov9/models β models}/detect/gelan.yaml +0 -0
- {yolov9/models β models}/detect/yolov7-af.yaml +0 -0
- {yolov9/models β models}/detect/yolov9-c.yaml +0 -0
- {yolov9/models β models}/detect/yolov9-e.yaml +0 -0
- {yolov9/models β models}/detect/yolov9.yaml +0 -0
- {yolov9/models β models}/experimental.py +0 -0
- {yolov9/models β models}/hub/anchors.yaml +0 -0
- {yolov9/models β models}/hub/yolov3-spp.yaml +0 -0
- {yolov9/models β models}/hub/yolov3-tiny.yaml +0 -0
- {yolov9/models β models}/hub/yolov3.yaml +0 -0
- {yolov9/models β models}/panoptic/yolov7-af-pan.yaml +0 -0
- {yolov9/models β models}/segment/yolov7-af-seg.yaml +0 -0
- {yolov9/models β models}/tf.py +0 -0
- {yolov9/models β models}/yolo.py +0 -0
- {yolov9/panoptic β panoptic}/predict.py +0 -0
- {yolov9/panoptic β panoptic}/train.py +0 -0
- {yolov9/panoptic β panoptic}/val.py +0 -0
- {yolov9/scripts β scripts}/get_coco.sh +0 -0
- {yolov9/segment β segment}/predict.py +0 -0
- {yolov9/segment β segment}/train.py +0 -0
- {yolov9/segment β segment}/val.py +0 -0
- yolov9/train.py β train.py +0 -0
- yolov9/train_dual.py β train_dual.py +0 -0
- yolov9/train_triple.py β train_triple.py +0 -0
- {yolov9/utils β utils}/__init__.py +0 -0
- {yolov9/utils β utils}/activations.py +0 -0
- {yolov9/utils β utils}/augmentations.py +0 -0
- {yolov9/utils β utils}/autoanchor.py +0 -0
- {yolov9/utils β utils}/autobatch.py +0 -0
- {yolov9/utils β utils}/callbacks.py +0 -0
- {yolov9/utils β utils}/dataloaders.py +0 -0
- {yolov9/utils β utils}/downloads.py +0 -0
- {yolov9/utils β utils}/general.py +0 -0
- {yolov9/utils β utils}/lion.py +0 -0
- {yolov9/utils β utils}/loggers/__init__.py +0 -0
app.py
CHANGED
|
@@ -8,8 +8,7 @@ from pytorch_grad_cam import GradCAM
|
|
| 8 |
from pytorch_grad_cam.utils.image import show_cam_on_image
|
| 9 |
import gradio as gr
|
| 10 |
from huggingface_hub import hf_hub_download
|
| 11 |
-
import
|
| 12 |
-
from yolov9.models.yolo import Model
|
| 13 |
|
| 14 |
model = Model('best.pt')
|
| 15 |
|
|
|
|
| 8 |
from pytorch_grad_cam.utils.image import show_cam_on_image
|
| 9 |
import gradio as gr
|
| 10 |
from huggingface_hub import hf_hub_download
|
| 11 |
+
from yolo import Model
|
|
|
|
| 12 |
|
| 13 |
model = Model('best.pt')
|
| 14 |
|
yolov9/benchmarks.py β benchmarks.py
RENAMED
|
File without changes
|
{yolov9/classify β classify}/predict.py
RENAMED
|
File without changes
|
{yolov9/classify β classify}/train.py
RENAMED
|
File without changes
|
{yolov9/classify β classify}/val.py
RENAMED
|
File without changes
|
{yolov9/data β data}/coco.yaml
RENAMED
|
File without changes
|
{yolov9/data β data}/hyps/hyp.scratch-high.yaml
RENAMED
|
File without changes
|
yolov9/detect.py β detect.py
RENAMED
|
File without changes
|
yolov9/export.py β export.py
RENAMED
|
File without changes
|
{yolov9/figure β figure}/performance.png
RENAMED
|
File without changes
|
yolov9/hubconf.py β hubconf.py
RENAMED
|
File without changes
|
{yolov9/models β models}/__init__.py
RENAMED
|
File without changes
|
{yolov9/models β models}/common.py
RENAMED
|
@@ -22,7 +22,7 @@ from IPython.display import display
|
|
| 22 |
from PIL import Image
|
| 23 |
from torch.cuda import amp
|
| 24 |
|
| 25 |
-
|
| 26 |
from utils.dataloaders import exif_transpose, letterbox
|
| 27 |
from utils.general import (LOGGER, ROOT, Profile, check_requirements, check_suffix, check_version, colorstr,
|
| 28 |
increment_path, is_notebook, make_divisible, non_max_suppression, scale_boxes,
|
|
@@ -1123,7 +1123,7 @@ class Detections:
|
|
| 1123 |
LOGGER.info(f'Saved results to {save_dir}\n')
|
| 1124 |
return crops
|
| 1125 |
|
| 1126 |
-
|
| 1127 |
def show(self, labels=True):
|
| 1128 |
self._run(show=True, labels=labels) # show results
|
| 1129 |
|
|
|
|
| 22 |
from PIL import Image
|
| 23 |
from torch.cuda import amp
|
| 24 |
|
| 25 |
+
from utils import TryExcept
|
| 26 |
from utils.dataloaders import exif_transpose, letterbox
|
| 27 |
from utils.general import (LOGGER, ROOT, Profile, check_requirements, check_suffix, check_version, colorstr,
|
| 28 |
increment_path, is_notebook, make_divisible, non_max_suppression, scale_boxes,
|
|
|
|
| 1123 |
LOGGER.info(f'Saved results to {save_dir}\n')
|
| 1124 |
return crops
|
| 1125 |
|
| 1126 |
+
@TryExcept('Showing images is not supported in this environment')
|
| 1127 |
def show(self, labels=True):
|
| 1128 |
self._run(show=True, labels=labels) # show results
|
| 1129 |
|
{yolov9/models β models}/detect/gelan-c.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/detect/gelan-e.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/detect/gelan.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/detect/yolov7-af.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/detect/yolov9-c.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/detect/yolov9-e.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/detect/yolov9.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/experimental.py
RENAMED
|
File without changes
|
{yolov9/models β models}/hub/anchors.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/hub/yolov3-spp.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/hub/yolov3-tiny.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/hub/yolov3.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/panoptic/yolov7-af-pan.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/segment/yolov7-af-seg.yaml
RENAMED
|
File without changes
|
{yolov9/models β models}/tf.py
RENAMED
|
File without changes
|
{yolov9/models β models}/yolo.py
RENAMED
|
File without changes
|
{yolov9/panoptic β panoptic}/predict.py
RENAMED
|
File without changes
|
{yolov9/panoptic β panoptic}/train.py
RENAMED
|
File without changes
|
{yolov9/panoptic β panoptic}/val.py
RENAMED
|
File without changes
|
{yolov9/scripts β scripts}/get_coco.sh
RENAMED
|
File without changes
|
{yolov9/segment β segment}/predict.py
RENAMED
|
File without changes
|
{yolov9/segment β segment}/train.py
RENAMED
|
File without changes
|
{yolov9/segment β segment}/val.py
RENAMED
|
File without changes
|
yolov9/train.py β train.py
RENAMED
|
File without changes
|
yolov9/train_dual.py β train_dual.py
RENAMED
|
File without changes
|
yolov9/train_triple.py β train_triple.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/__init__.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/activations.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/augmentations.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/autoanchor.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/autobatch.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/callbacks.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/dataloaders.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/downloads.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/general.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/lion.py
RENAMED
|
File without changes
|
{yolov9/utils β utils}/loggers/__init__.py
RENAMED
|
File without changes
|