We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to know how to generate mask pkl file? Can you upload an example code file? And how to generate flist.txt? Thanks!
By the way, you pre-trained model file seems to be broken.
The text was updated successfully, but these errors were encountered:
@dengyueyun666 can you please tell how to create mask.pkl from mask.png and what is numpy.array in it??
Sorry, something went wrong.
This code will work.
@staticmethod def read_val_mask(path): """ Read masks from val mask data """ ## non-mask : 0 / mask : 1 256x256x1 if path.endswith("pkl"): mask = pkl.load(open(path, 'rb')) else: mask = Image.open(path) mask = np.array(mask) mask[mask != 0] = 1 mask = np.expand_dims(mask, axis=2) return mask
The pkl is just the numpy.array of the images.
No branches or pull requests
I want to know how to generate mask pkl file? Can you upload an example code file?
And how to generate flist.txt?
Thanks!
By the way, you pre-trained model file seems to be broken.
The text was updated successfully, but these errors were encountered: