-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to get ./Downstream/Tumor_origin/src/feature/tcga/TCGA-LN-A8I1-01Z-00-DX1.F2C4FBC3-1FFA-45E9-9483-C3F1B2B7EF2D.pt #41
Comments
btw there is no feature/tcga folder under Downstream/Tumor_origin/src/ |
@27yw thanks. It is just intended to show how to load a feature file. It is really nothing technical. You could refer to ctranspath repo to catch up with some prior. |
HI thanks for your answering |
@Dadatata-JZ Hi for survial, inference.ipynb, may I ask if the feature file is tile-level features (Get_CHIEF_patch_feature.py) or WSI level features (Get_CHIEF_WSI_level_feature.py)? |
@ivicts You would need both to obtain the tile-level and then slide-level features. |
@27yw Yes, you can. |
@Dadatata-JZ Thanks, I just want to run the inference.ipynb, for the survival problem for my custom data. For this problem, what are the input features? Is it:
Which one should I do? I just want to run the survival analysis for my custom data. |
@Dadatata-JZ are there any updates on this? |
4. Also, if you are not familiar with survival analysis using deep learning/CPath, some previous works may be inspiring. for instance, Feel free to shoot me an email and loop me into your real applications if prompt responses are expected. working on responding grant calls and other manuscripts. I don't get on GITHUB as often as before. |
Hi! very wonderful work.
Here comes some question
how to get ./Downstream/Tumor_origin/src/feature/tcga/TCGA-LN-A8I1-01Z-00-DX1.F2C4FBC3-1FFA-45E9-9483-C3F1B2B7EF2D.pt
when I try to run this code
python3 Get_CHIEF_WSI_level_feature_batch.py
and I got this error
Original Traceback (most recent call last): File "/data_train/code/biz/yw/miniconda3/envs/chief2/lib/python3.9/site-packages/torch/utils/data/_utils/worker.py", line 351, in _worker_loop data = fetcher.fetch(index) # type: ignore[possibly-undefined] File "/data_train/code/biz/yw/miniconda3/envs/chief2/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 54, in fetch data = self.dataset[possibly_batched_index] File "/data_train/code/biz/yw/CHIEF/datasets/BagDataset.py", line 25, in __getitem__ features = torch.load(full_path, map_location=torch.device('cpu')) File "/data_train/code/biz/yw/miniconda3/envs/chief2/lib/python3.9/site-packages/torch/serialization.py", line 1319, in load with _open_file_like(f, "rb") as opened_file: File "/data_train/code/biz/yw/miniconda3/envs/chief2/lib/python3.9/site-packages/torch/serialization.py", line 659, in _open_file_like return _open_file(name_or_buffer, mode) File "/data_train/code/biz/yw/miniconda3/envs/chief2/lib/python3.9/site-packages/torch/serialization.py", line 640, in __init__ super().__init__(open(name, mode)) FileNotFoundError: [Errno 2] No such file or directory: './Downstream/Tumor_origin/src/feature/tcga/TCGA-B6-A0WV-01Z-00-DX1.A8B9E114-A8CF-4389-B47C-2E1B842F7FF9.pt'
how to fix it?
The text was updated successfully, but these errors were encountered: