Tried on Grocery Dataset

#1
by Andyrasika - opened

Dataset: https://www.kaggle.com/datasets/dpamgautam/grocery-dataset/data

It does not work, i am getting error:


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[5], line 2
      1 # Wave your wand (or keyboard) to get started!
----> 2 from ultralyticsplus import YOLO, render_result
      3 import cv2
      5 # Cast a spell to summon the model

File /opt/conda/lib/python3.10/site-packages/ultralyticsplus/__init__.py:2
      1 from .hf_utils import download_from_hub, push_to_hfhub
----> 2 from .ultralytics_utils import YOLO, postprocess_classify_output, render_result
      4 __version__ = "0.0.28"

File /opt/conda/lib/python3.10/site-packages/ultralyticsplus/ultralytics_utils.py:7
      5 import numpy as np
      6 from PIL import Image
----> 7 from sahi.prediction import ObjectPrediction, PredictionScore
      8 from sahi.utils.cv import (
      9     get_bool_mask_from_coco_segmentation,
     10     read_image_as_pil,
     11     visualize_object_predictions,
     12 )
     13 from ultralytics import YOLO as YOLOBase

File /opt/conda/lib/python3.10/site-packages/sahi/__init__.py:3
      1 __version__ = "0.11.15"
----> 3 from sahi.annotation import BoundingBox, Category, Mask
      4 from sahi.auto_model import AutoDetectionModel
      5 from sahi.models.base import DetectionModel

File /opt/conda/lib/python3.10/site-packages/sahi/annotation.py:9
      5 from typing import Dict, List, Optional
      7 import numpy as np
----> 9 from sahi.utils.coco import CocoAnnotation, CocoPrediction
     10 from sahi.utils.cv import (
     11     get_bbox_from_bool_mask,
     12     get_bool_mask_from_coco_segmentation,
     13     get_coco_segmentation_from_bool_mask,
     14 )
     15 from sahi.utils.shapely import ShapelyAnnotation

File /opt/conda/lib/python3.10/site-packages/sahi/utils/coco.py:17
     14 from typing import Dict, List, Optional, Set, Union
     16 import numpy as np
---> 17 from shapely import MultiPolygon
     18 from shapely.validation import make_valid
     19 from tqdm import tqdm

ImportError: cannot import name 'MultiPolygon' from 'shapely' (/opt/conda/lib/python3.10/site-packages/shapely/__init__.py)

Sign up or log in to comment