Skip to content

Commit

Permalink
tools
Browse files Browse the repository at this point in the history
  • Loading branch information
iscyy committed Aug 16, 2022
1 parent 77bf2c0 commit 4283fc6
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 161 deletions.
94 changes: 0 additions & 94 deletions CONTRIBUTING.md

This file was deleted.

64 changes: 0 additions & 64 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion models/Models/research.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def warmup(self, imgsz=(1, 3, 640, 640)):
@staticmethod
def model_type(p='path/to/model.pt'):
# Return model type from model path, i.e. path='path/to/model.onnx' -> type=onnx
from export import export_formats
from tools.export import export_formats
suffixes = list(export_formats().Suffix) + ['.xml'] # export suffixes
check_suffix(p, suffixes) # checks
p = Path(p).name # eliminate trailing separators
Expand Down
2 changes: 1 addition & 1 deletion models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def warmup(self, imgsz=(1, 3, 640, 640), half=False):
@staticmethod
def model_type(p='path/to/model.pt'):
# Return model type from model path, i.e. path='path/to/model.onnx' -> type=onnx
from export import export_formats
from tools.export import export_formats
suffixes = list(export_formats().Suffix) + ['.xml'] # export suffixes
check_suffix(p, suffixes) # checks
p = Path(p).name # eliminate trailing separators
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion utils/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
sys.path.append(str(ROOT)) # add ROOT to PATH
# ROOT = ROOT.relative_to(Path.cwd()) # relative

import export
import tools.export as export
import val
from utils import notebook_init
from utils.general import LOGGER, print_args
Expand Down

0 comments on commit 4283fc6

Please sign in to comment.