Skip to content

Commit

Permalink
remove redundant code (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcakyon authored Dec 20, 2022
1 parent 5edbc9e commit 21ed5ad
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions yolov5/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 21ed5ad

Please sign in to comment.