/home/wagnchogn/anaconda3/envs/pytorch/bin/python /home/wagnchogn/Downloads/pycharm-professional-2021.2/pycharm-2021.2/plugins/python/helpers/pydev/pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 45019 --file /media/wagnchogn/data/lishuxin/_2_2403_sam/pre_code/pre_Gleason/5_black_mask.py
Connected to pydev debugger (build 212.4746.96)
0%| | 0/9419 [01:09<?, ?it/s]
Traceback (most recent call last):
File "/home/wagnchogn/Downloads/pycharm-professional-2021.2/pycharm-2021.2/plugins/python/helpers/pydev/pydevd.py", line 1483, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/home/wagnchogn/Downloads/pycharm-professional-2021.2/pycharm-2021.2/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/media/wagnchogn/data/lishuxin/_2_2403_sam/pre_code/pre_Gleason/5_black_mask.py", line 13, in <module>
mask_array.save(os.path.join(save_path, mask_file))
AttributeError: 'numpy.ndarray' object has no attribute 'save'
python-BaseException
ki - data
于 2024-03-25 21:44:08 首次发布