From 21ed5ad04cce5cc6d1bd992599f439af6244cbb4 Mon Sep 17 00:00:00 2001 From: fatih <34196005+fcakyon@users.noreply.github.com> Date: Tue, 20 Dec 2022 17:41:10 +0300 Subject: [PATCH] remove redundant code (#183) --- yolov5/helpers.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/yolov5/helpers.py b/yolov5/helpers.py index 5438744..8c3c85c 100644 --- a/yolov5/helpers.py +++ b/yolov5/helpers.py @@ -328,12 +328,3 @@ def upload_to_s3(opt, data, save_dir): if result: LOGGER.info(f"{colorstr('aws:')} Dataset has been successfully uploaded to {s3_folder}") - -if __name__ == "__main__": - model_path = "C:/Users/FCA/dev/yolov5-pip/runs/train/exp/weights/best.pt" - device = "cuda:0" - model = load_model(model_path=model_path, device=device) - - from PIL import Image - imgs = [Image.open(x) for x in Path("yolov5/data/images").glob("*.jpg")] - results = model(imgs)