| tifffile.tifffile.TiffFileError: not a TIFF file b'\xd0\xcf\x11\xe0' ¶
By: sanmedbio.huajia on Aug. 30, 2022, 11:47 a.m.
I use the predict.py to predict, but the error occur. I use the compute_metric.py to compute the prediction and label which can get the normal metric. Has anyone else encountered this problem?
tif.imwrite(join(output_path, img_name.split('.')[0]+'_label.tiff'), test_pred_mask, compression='zlib') t1 = time.time() print(f'Prediction finished: {img_name}; img size = {pre_img_data.shape}; costing: {t1-t0:.2f}s')