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
my image: result: I use the code like this:
d = dcrf.DenseCRF2D(640, 368, 4) prediction1 = prediction1.reshape((4, -1)) d.setUnaryEnergy(prediction1.astype(np.float32)) d.addPairwiseGaussian(sxy=3, compat=3) cv2.imwrite('test.jpg', (image[i]/.016 + 128).astype(np.uint8)) d.addPairwiseBilateral(sxy=(80, 80), srgb=(13, 13, 13), rgbim=(image[i]/.016+128).astype(np.uint8),compat=10) prediction1 = d.inference(5) prediction1 = np.argmax(prediction1, axis=0) prediction1 = np.reshape(prediction1, (368, 640)) predictio = np.stack((y_type1,y_type2,y_type3), axis=2) cv2.imwrite('mask.jpg', (prediction1*255).astype(np.uint8))
The text was updated successfully, but these errors were encountered:
Did you ever figure it out?
Sorry, something went wrong.
No branches or pull requests
my image:
result:
I use the code like this:
The text was updated successfully, but these errors were encountered: