Erros in base-line docker re-implementation ¶
By: NiTo on Nov. 25, 2024, 8:21 a.m.
Hi Dear organizers, I am re-implementing the base line docker file. I have faced 4 errors that I could find solutions for 3 of them but the fourth error still persists. The log file below Shows the errors.
Error 1: docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./inference.sh": permission denied: unknown.
Solution: Added below code to line 51 of the Docker file
RUN chmod +x inference.sh
Error 2: Traceback (most recent call last): File "/opt/app/process.py", line 161, in main(params) File "/opt/app/process.py", line 62, in main post_process_main( File "/opt/app/src/post_process.py", line 82, in post_process_main with open(json_filename, "w") as fp: ^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: '/output/melanoma-3-class-nuclei-segmentation.json'
Solution
uncomment line 81 post_process.py
Error 3: Traceback (most recent call last): File "/opt/app/output_rename.py", line 83, in recover_filename(pred_folder, output_folder, rename_dict) File "/opt/app/output_rename.py", line 57, in recover_filename with tifffile.TiffWriter(new_file_path) as tif: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/tifffile/tifffile.py", line 1775, in init self.fh = FileHandle(file, mode=mode, size=0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.11/site-packages/tifffile/tifffile.py", line 14727, in __init_ self.open() File "/home/user/.local/lib/python3.11/site-packages/tifffile/tifffile.py", line 14746, in open self._fh = open(self._file, self._mode, encoding=None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: '/output/images/melanoma-tissue-mask-segmentation/44795516-254e-4111-8ffc-fdc152f25f1a.tif'
Solution:
Added /opt/app to line 13 output_rename.py output_folder = '/opt/app/output/images/melanoma-tissue-mask-segmentation'
Error4 : =+= Expected output for tissue not found!
Checked using os.listdir and tissue file exists in the folder.
Solution: ??