jakeret / tf_unet

Generic U-Net Tensorflow implementation for image segmentation
GNU General Public License v3.0
1.9k stars 748 forks source link

how i can use method "evaluate", to get a accuracy and precision of the neural network ? #289

Open Gabriellsl opened 4 years ago

Gabriellsl commented 4 years ago

I need to compare parameters and the dataset used...

picEmily commented 4 years ago

prediction = net.predict(path, data)

unet.error_rate(prediction, util.crop_to_shape(label, prediction.shape))

img = util.combine_img_prediction(data, label, prediction) util.save_image(img, "prediction.jpg")

https://tf-unet.readthedocs.io/en/latest/usage.html