pascal1129/kaggle_airbus_ship_detection

error with the data type

Closed this issue · 2 comments

when I do "python 1_ships_to_coco.py",I had an error with the data type like this:
Traceback (most recent call last):
File "1_ships_to_coco.py", line 149, in
main()
File "1_ships_to_coco.py", line 124, in main
binary_mask = rle_decode(rle_masks[index])
File "1_ships_to_coco.py", line 52, in rle_decode
s = mask_rle.split()
AttributeError: 'float' object has no attribute 'split'
I have tried many solutions,but I can not solve it.please help me.Thank you.

It means that tensor 'mask_rle' is not a string list, which can be caused by many problems. My suggestion is that you can print the tensor information , such as shape, dtype and so on. It is quite useful in mots of time.