Skip to content

Commit

Permalink
Fixed yolo error
Browse files Browse the repository at this point in the history
  • Loading branch information
BarzaH committed Sep 12, 2024
1 parent abf50b0 commit b246526
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
12 changes: 6 additions & 6 deletions innofw/utils/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ def map_model_to_framework(model):

if isinstance(model, xgboost.XGBModel):
return Frameworks.xgboost
elif isinstance(model, torch.nn.Module):
return Frameworks.torch
elif isinstance(model, YOLO):
return Frameworks.ultralytics
elif isinstance(model, BaseMmdetModel):
return Frameworks.mmdetection
elif isinstance(model, sklearn.base.BaseEstimator):
return Frameworks.sklearn
elif isinstance(model, BaseIntegrationModel):
return model.framework
elif isinstance(model, torch.nn.Module):
return Frameworks.torch
elif isinstance(model, catboost.CatBoost):
return Frameworks.catboost
elif isinstance(model, YOLO):
return Frameworks.ultralytics
elif isinstance(model, BaseMmdetModel):
return Frameworks.mmdetection
else:
raise NotImplementedError(f"Framework is not supported. {model}")

Expand Down
10 changes: 2 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ version = "1.0.0"
description = ""
authors = ["Kazybek Askarbek <[email protected]>"]

[[tool.poetry.source]]
name = "openmmlab"
url = "https://download.openmmlab.com/mmcv/dist/cu113/torch1.12/index.html"
priority = "supplemental"

[[tool.poetry.source]]
name = "cudatorch"
url = "https://download.pytorch.org/whl/cu113"
Expand Down Expand Up @@ -46,7 +41,7 @@ transformers = "^4.21.2"
datasets = "^2.4.0"
onvif-zeep = "^0.2.12"
fire = "^0.4.0"
yolov5 = "^7.0.7"
yolov5 = "7.0.7"
streamlit-pydantic = "^0.5.0"
selfies = "^2.1.1"
setuptools = "^65.4.1"
Expand All @@ -55,7 +50,7 @@ lovely-tensors = "^0.1.14"
lovely-numpy = "^0.2.8"
wandb = "^0.13.9"
aeronet = "^0.0.18"
ultralytics = "^8.0.124"
ultralytics = "8.0.124"
clearml = "^1.13.0"
dash-bootstrap-components = "^1.4.1"
dash-core-components = "^2.0.0"
Expand All @@ -71,7 +66,6 @@ open3d = "^0.18.0"
mmengine = "^0.10.4"
numba = "^0.58.0"
mmdet3d = "^1.4.0"
mmcv = {version = "2.1.0", source = "openmmlab"}
mmdet = {git = "https://github.com/BarzaH/mmdetection"}

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit b246526

Please sign in to comment.