Skip to content

Commit

Permalink
v3.0.72
Browse files Browse the repository at this point in the history
  • Loading branch information
elishatofunmi committed Aug 16, 2023
1 parent 8a30580 commit 33d3622
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = rectvision
version = 3.0.71
version = 3.0.72
author = Rectlabs
author_email = rectanglenet@gmail.com
description = Rectvision package
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
long_description = "\n" + fh.read()

VERSION = '3.0.71'
VERSION = '3.0.72'
DESCRIPTION = 'A low-code tool to help create your own AI'
LONG_DESCRIPTION = 'A package that allows to build your own computer visions and NLP systems'

Expand Down
6 changes: 3 additions & 3 deletions src/rectvision/models/yolov5.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@ def get_map(self):
print(process.stderr)


def inference(self, images, out_dir, img_size = 416, confidence= 0.3, iou_thres = 0.3):
def inference(self, image, out_dir, img_size = 416, confidence= 0.3, iou_thres = 0.3):
self.outdir =out_dir + '/' + otp()
self.detect_model = os.path.join(self.project_dir, "yolov5/detect.py")
self.model_weights = os.path.join(self.project_dir, "yolov5/runs/train", self.project_name, "weights/best.pt")
print('Inference in progress...')
process = subprocess.run(["python", self.detect_model,
"--source", images,
"--img", img_size,
"--source", image,
"--img", str(img_size),
"--weights", self.model_weights,
"--conf", str(confidence),
"--iou-thres", str(iou_thres),
Expand Down

0 comments on commit 33d3622

Please sign in to comment.