Traceback (most recent call last):
File "D:/Python/Practice/file_path_test01.py", line 10, in <module>
open(path1, 'wb')
FileNotFoundError: [Errno 2] No such file or directory: './output/experiment_UNet_ResFourLayerConvBlock_ResTwoLayerConvBlock_None_fold-1_coarse_size-160_channel-8_depth-4_loss-dice_metric-dice_time-2021-11-20_16-14-52\\logs\\train\\events.out.tfevents.1637396155.DESKTOP-AHH47H9123456789012345678901234567890'
原因1:需要创建的文件上级文件夹不存在,open函数会在文件不存在时重新创建,但是无法创建不存在的文件夹。
原因2:文件名+文件的绝对路径 的字符长度超出了操作系统的限制。Windows系统有限制