Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run question #19

Open
deegy666 opened this issue Mar 21, 2024 · 1 comment
Open

run question #19

deegy666 opened this issue Mar 21, 2024 · 1 comment

Comments

@deegy666
Copy link

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!

@Vincent-ZHQ
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants