openmedlab / MedLSAM

MedLSAM: Localize and Segment Anything Model for 3D Medical Images
Apache License 2.0
498 stars 19 forks source link

Using own dataset #13

Open s1054020 opened 10 months ago

s1054020 commented 10 months ago

I was trying to use my dataset,but the code will get wrong at data_process_func line95(getting the zero point),i always get the value-error(zero-size array to reduction operation maximum which has no identity).I'am wondering does your dataset do preprocessing or some label i didn't notice.Is there any alternative solution?thanks.

LWHYC commented 9 months ago

I was trying to use my dataset,but the code will get wrong at data_process_func line95(getting the zero point),i always get the value-error(zero-size array to reduction operation maximum which has no identity).I'am wondering does your dataset do preprocessing or some label i didn't notice.Is there any alternative solution?thanks.

hi, did you specify the fg_class in your configuration file? It should be the same value as your interested class in the label file.