CA-MSER icon indicating copy to clipboard operation
CA-MSER copied to clipboard

run question

Open deegy666 opened this issue 2 years ago • 2 comments

Hello,When I run these lines of codes for i, seg in enumerate(data): seg = np.clip(seg, 0.0, 1.0) seg_rgb = (cm(seg)[:,:,:3]*255.0).astype(np.uint8)

        img = Image.fromarray(seg_rgb, mode='RGB')

        data_tensor.append(alexnet_preprocess(img))
   
    return data_tensor

Dataset normalized with minmax scaler Range before normalization: [-80.0, 3.8146973e-06] Range after normalization: [0.0, 1.0] 已杀死

The above error occurs

Best wish to you!

deegy666 avatar Mar 21 '24 12:03 deegy666

I cannot reproduce your error now. It seems that the image processing is not correct in your code. If you did not change the code, it may be due to the version change of the related library.

Vincent-ZHQ avatar Apr 11 '24 10:04 Vincent-ZHQ

Hello,When I run these lines of codes for i, seg in enumerate(data): seg = np.clip(seg, 0.0, 1.0) seg_rgb = (cm(seg)[:,:,:3]*255.0).astype(np.uint8)

        img = Image.fromarray(seg_rgb, mode='RGB')

        data_tensor.append(alexnet_preprocess(img))
   
    return data_tensor

Dataset normalized with minmax scaler

Range before normalization: [-80.0, 3.8146973e-06] Range after normalization: [0.0, 1.0] 已杀死 The above error occurs

Best wish to you!

Hello, I have the same question just like yours. May I ask if you have solved this question? How? I am looking forward to reveiving your reply. Thank you!

LionHeart-zx avatar Jan 13 '25 13:01 LionHeart-zx