Ear-segmentation-ai icon indicating copy to clipboard operation
Ear-segmentation-ai copied to clipboard

[BUG] 🐞 Probably a folder path issue in image mode?

Open wengchenyang1 opened this issue 1 year ago • 0 comments

Describe the bug Hello, There seems to be a tiny issue with the image mode. According to the sample code, I need to give the image file name while using the image mode:

python -m earsegmentationai.main picture-capture --folderpath "/path/filename.png" --device "cpu"

and this is safeguarded in the following code https://github.com/umitkacar/Ear-segmentation-ai/blob/7a48dec8fdce2ba60ed5407e7b6fa984b656fae8/earsegmentationai/main.py#L62-L68

However, in ear_segmentation_image the passed path is supposed to be a folder path that contains the picture(s) https://github.com/umitkacar/Ear-segmentation-ai/blob/7a48dec8fdce2ba60ed5407e7b6fa984b656fae8/earsegmentationai/image_mode.py#L45-L49 then I guess data_samples will be empty all the time if file path is given?

To Reproduce

  1. Run the example code of the image mode, provided in the README.MD
  2. Image cannot be found

wengchenyang1 avatar Feb 25 '24 10:02 wengchenyang1