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
No description provided.
The text was updated successfully, but these errors were encountered:
file data.py modify the saveResult function I use cv2, because i am not familiar with io.image for output.
import cv2
def saveResult(save_path,npyfile,flag_multi_class = False,num_class = 2): for i,item in enumerate(npyfile): img = labelVisualize(num_class,COLOR_DICT,item) if flag_multi_class else item[:,:,0] print(img) ## ex. [[0.16509348 0.08227982 ... 0.07113015] img = (img > 0.5).astype(np.uint8) # .reshape(256, 256) print(img) ## ex. [[ 0 0 0 0 ... 1 1 1 ]] img = (img * 255) print(img) ## ex. [[0 0 00 ... 255 255 255]] # img = labelVisualize(num_class,COLOR_DICT,item) if flag_multi_class else item[:,:,0] # io.imsave(os.path.join(save_path,"%d_predict.png"%i),img) cv2.imwrite(os.path.join(save_path,"%d_predict.png"%i), img)
Sorry, something went wrong.
thx. thx. thx. thx.!!!!
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: