After running cammand 'docker pull chiefcontainer/chief:v1.11, docker run --rm -it --entrypoint /bin/bash chiefcontainer/chief:v1.11'
Use docker to run code, it gives the error as follow:
root@e88d30af6313:/# git clone https://github.com/hms-dbmi/CHIEF.git
root@e88d30af6313:/# cd CHIEF
root@e88d30af6313:/CHIEF# python3 Get_CHIEF_patch_feature.py
Traceback (most recent call last):
File "Get_CHIEF_patch_feature.py", line 20, in
td = torch.load(r'./model_weight/CHIEF_CTransPath.pth')
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 579, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './model_weight/CHIEF_CTransPath.pth'
It still needs to download model weight if using docker?
After running cammand 'docker pull chiefcontainer/chief:v1.11, docker run --rm -it --entrypoint /bin/bash chiefcontainer/chief:v1.11'
Use docker to run code, it gives the error as follow: root@e88d30af6313:/# git clone https://github.com/hms-dbmi/CHIEF.git root@e88d30af6313:/# cd CHIEF root@e88d30af6313:/CHIEF# python3 Get_CHIEF_patch_feature.py
Traceback (most recent call last): File "Get_CHIEF_patch_feature.py", line 20, in
td = torch.load(r'./model_weight/CHIEF_CTransPath.pth')
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 579, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 211, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './model_weight/CHIEF_CTransPath.pth'
It still needs to download model weight if using docker?