Yes, you could get the pixel locations via:
class0_loc = (preds==0).nonzero()
class1_loc = (preds==1).nonzero()

You can also plot the prediction directly e.g. using matplotlib via:
plt.imshow(preds[0])