image-segmentation-keras icon indicating copy to clipboard operation
image-segmentation-keras copied to clipboard

ImportError: attempted relative import with no known parent package

Open bc-bytes opened this issue 3 years ago • 1 comments

I'm attempting to train a unet model, and am getting this error:

Traceback (most recent call last):
  File "/home/kseg/keras_segmentation/train.py", line 4, in <module>
    from .data_utils.data_loader import image_segmentation_generator, \
ImportError: attempted relative import with no known parent package

I suspect this is linked to python version. I am using 3.9. Anyone have any pointers?

bc-bytes avatar Feb 11 '22 15:02 bc-bytes

Could you post the command/code to reproduce your error?

divamgupta avatar May 25 '22 22:05 divamgupta