Skip to content

Commit

Permalink
Merge branch 'main' into feature/model_config_file
Browse files Browse the repository at this point in the history
  • Loading branch information
phinik committed Dec 18, 2023
2 parents bfdab2e + bdecd3c commit 3b876d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "YOEO"
version = "1.4.1"
version = "1.4.3"
description = "A hybrid CNN for object detection and semantic segmentation"
authors = ["Florian Vahl <[email protected]>", "Jan Gutsche <[email protected]>"]

Expand Down
4 changes: 2 additions & 2 deletions yoeo/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ def detect_image(model,
DEFAULT_TRANSFORMS,
Resize(img_size)])((
image,
np.empty((1, 5)),
np.empty((img_size, img_size), dtype=np.uint8)))[0].unsqueeze(0)
np.zeros((1, 5)),
np.zeros((img_size, img_size), dtype=np.uint8)))[0].unsqueeze(0)

if torch.cuda.is_available():
input_img = input_img.to("cuda")
Expand Down
4 changes: 1 addition & 3 deletions yoeo/scripts/convertONNXModelToTVM.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def make_parser():
type=int,
help="Input image size")
parser.add_argument(
"-t",
"--trials",
default=20000,
type=int,
Expand Down Expand Up @@ -56,7 +55,6 @@ def make_parser():
type=str,
help="Path to the tuning records that are created for this optimization")
parser.add_argument(
"-t",
"--target",
default="vulkan -from_device=0",
type=str,
Expand Down Expand Up @@ -89,7 +87,7 @@ def run():
# Build an TVM Compiler model
tvmc_model = TVMCModel(mod, params)


# Tune the model (depending on the hardware and parameters this takes days)
if not args.no_tuning:
tvmc.tune(
Expand Down

0 comments on commit 3b876d5

Please sign in to comment.