hms-dbmi / CHIEF

Clinical Histopathology Imaging Evaluation Foundation Model
GNU Affero General Public License v3.0
129 stars 17 forks source link

lack model_weight when use docker #27

Open Bennyggcc opened 2 weeks ago

Bennyggcc commented 2 weeks ago

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?

Dadatata-JZ commented 2 weeks ago

@Bennyggcc Benny,

you can also find all weights from our G-cloud disk. https://drive.google.com/drive/u/1/folders/1uRv9A1HuTW5m_pJoyMzdN31bE1i-tDaV