Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Setup uv
Expand Down
6 changes: 3 additions & 3 deletions yolo11n/predict.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license

from typing import Optional
from __future__ import annotations

from cog import BaseModel, BasePredictor, Input, Path
from ultralytics import YOLO
Expand All @@ -9,8 +9,8 @@
class Output(BaseModel):
"""Output model for predictions."""

image: Optional[Path] = None
json_str: Optional[str] = None
image: Path | None = None
json_str: str | None = None


class Predictor(BasePredictor):
Expand Down
6 changes: 3 additions & 3 deletions yoloe11s/predict.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license

from typing import Optional
from __future__ import annotations

from cog import BaseModel, BasePredictor, Input, Path
from ultralytics import YOLOE
Expand All @@ -9,8 +9,8 @@
class Output(BaseModel):
"""Output model for predictions."""

image: Optional[Path] = None
json_str: Optional[str] = None
image: Path | None = None
json_str: str | None = None


class Predictor(BasePredictor):
Expand Down
6 changes: 3 additions & 3 deletions yolov8s-worldv2/predict.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license

from typing import Optional
from __future__ import annotations

from cog import BaseModel, BasePredictor, Input, Path
from ultralytics import YOLOWorld
Expand All @@ -9,8 +9,8 @@
class Output(BaseModel):
"""Output model for predictions."""

image: Optional[Path] = None
json_str: Optional[str] = None
image: Path | None = None
json_str: str | None = None


class Predictor(BasePredictor):
Expand Down
Loading