Skip to content

Commit

Permalink
fix: revert unwanted changes in cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dronakurl committed Feb 9, 2025
1 parent c1013f7 commit 406ec72
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,14 @@ jobs:
prune-cache: false
# For python 3.8 and 3.9, it does no suffice to install opencv-python-headless
# https://itsmycode.com/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directory/
- uses: awalsh128/cache-apt-pkgs-action@latest
- name: Cache apt packages
uses: actions/cache@v4
if: ${{ env.ACT }}
with:
packages: libgl1
version: 1.0
# - name: Cache apt packages
# uses: actions/cache@v4
# with:
# path: /var/cache/apt
# key: apt-cache
# - name: Install libgl
# run: apt-get update && apt-get install -y libgl1
path: /var/cache/apt
key: apt-cache
- name: Install libgl
run: apt-get update && apt-get install -y libgl1
- name: Test with python ${{ matrix.python-version }}
run: uv run pytest
- name: Test SAHI CLI
Expand Down
16 changes: 8 additions & 8 deletions sahi/cli.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import fire

from . import __version__ as sahi_version
from .predict import predict, predict_fiftyone
from .scripts.coco2fiftyone import main as coco2fiftyone
from .scripts.coco2yolov5 import main as coco2yolov5
from .scripts.coco_error_analysis import analyse
from .scripts.coco_evaluation import evaluate
from .scripts.slice_coco import slice
from .utils.import_utils import print_environment_info
from sahi import __version__ as sahi_version
from sahi.predict import predict, predict_fiftyone
from sahi.scripts.coco2fiftyone import main as coco2fiftyone
from sahi.scripts.coco2yolov5 import main as coco2yolov5
from sahi.scripts.coco_error_analysis import analyse
from sahi.scripts.coco_evaluation import evaluate
from sahi.scripts.slice_coco import slice
from sahi.utils.import_utils import print_environment_info

coco_app = {
"evaluate": evaluate,
Expand Down

0 comments on commit 406ec72

Please sign in to comment.