Skip to content
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

Problem running split in CONCH/CLAM environment #248

Open
suminwei opened this issue May 9, 2024 · 0 comments
Open

Problem running split in CONCH/CLAM environment #248

suminwei opened this issue May 9, 2024 · 0 comments

Comments

@suminwei
Copy link

suminwei commented May 9, 2024

Hi,
I'm running into the following error when trying to run create_splits_seq.py in a conda environment with CONCH and CLAM installed:

python create_splits_seq.py --task task_2_tumor_subtyping --seed 1 --label_frac 1 --k 10

/home/liw165/.local/lib/python3.10/site-packages/torch/cuda/__init__.py:118: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 11020). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:108.) return torch._C._cuda_getDeviceCount() > 0 Traceback (most recent call last): File "/n/data1/dfci/medicine/beltran/lab/lwei/Software/CLAM_install/CLAM/create_splits_seq_MLN_CONCH.py", line 35, in <module> dataset = Generic_WSI_Classification_Dataset(csv_path = '/n/data1/dfci/medicine/beltran/lab/lwei/ML/analysis/CLAM/MLN/training_391_CONCH/dataset_csv/tumour_subtyping_clean.csv', File "/n/data1/dfci/medicine/beltran/lab/lwei/Software/CLAM_install/CLAM/datasets/dataset_generic.py", line 76, in __init__ self.patient_data_prep(patient_voting) File "/n/data1/dfci/medicine/beltran/lab/lwei/Software/CLAM_install/CLAM/datasets/dataset_generic.py", line 104, in patient_data_prep label = stats.mode(label)[0] File "/home/liw165/.local/lib/python3.10/site-packages/scipy/stats/_axis_nan_policy.py", line 531, in axis_nan_policy_wrapper res = hypotest_fun_out(*samples, **kwds) File "/home/liw165/.local/lib/python3.10/site-packages/scipy/stats/_stats_py.py", line 522, in mode raise TypeError(message) TypeError: Argument ais not recognized as numeric. Support for input that cannot be coerced to a numeric array was deprecated in SciPy 1.9.0 and removed in SciPy 1.11.0. Please considernp.unique.

@suminwei suminwei changed the title Problem using CONCH with CLAM Problem running split in CONCH/CLAM environment May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant