Official PyTorch implementation for paper Context Matters: Graph-based Self-supervised Representation Learning for Medical Images

Overview

Context Matters: Graph-based Self-supervised Representation Learning for Medical Images

Official PyTorch implementation for paper Context Matters: Graph-based Self-supervised Representation Learning for Medical Images, accepted by AAAI 2021.

Li Sun*, Ke Yu* and Kayhan Batmanghelich

Absrtact

Supervised learning method requires a large volume of annotated datasets. Collecting such datasets is time-consuming and expensive. Until now, very few annotated COVID-19 imaging datasets are available. Although self-supervised learning enables us to bootstrap the training by exploiting unlabeled data, the generic self-supervised methods for natural images do not sufficiently incorporate the context. For medical images, a desirable method should be sensitive enough to detect deviation from normal-appearing tissue of each anatomical region; here, anatomy is the context. We introduce a novel approach with two levels of self-supervised representation learning objectives: one on the regional anatomical level and another on the patient-level. We use graph neural networks to incorporate the relationship between different anatomical regions. The structure of the graph is informed by anatomical correspondences between each patient and an anatomical atlas. In addition, the graph representation has the advantage of handling any arbitrarily sized image in full resolution. Experiments on large-scale Computer Tomography (CT) datasets of lung images show that our approach compares favorably to baseline methods that do not account for the context. We use the learnt embedding to quantify the clinical progression of COVID-19 and show that our method generalizes well to COVID-19 patients from different hospitals. Qualitative results suggest that our model can identify clinically relevant regions in the images.

Bibtex

@misc{sun2020context,
      title={Context Matters: Graph-based Self-supervised Representation Learning for Medical Images}, 
      author={Li Sun and Ke Yu and Kayhan Batmanghelich},
      year={2020},
      eprint={2012.06457},
      archivePrefix={arXiv},
      primaryClass={eess.IV}
}

Requirements

Preprocess Data

Please follow the instructions in ./preprocess/README.md

Training

sh train.sh

The hyperparameter setting can be found in train.sh

Evaluation

python test.py
You might also like...
An image base contains 490 images for learning (400 cars and 90 boats), and another 21 images for testingAn image base contains 490 images for learning (400 cars and 90 boats), and another 21 images for testing
An image base contains 490 images for learning (400 cars and 90 boats), and another 21 images for testingAn image base contains 490 images for learning (400 cars and 90 boats), and another 21 images for testing

SVM Données Une base d’images contient 490 images pour l’apprentissage (400 voitures et 90 bateaux), et encore 21 images pour fait des tests. Prétrait

The Self-Supervised Learner can be used to train a classifier with fewer labeled examples needed using self-supervised learning.
The Self-Supervised Learner can be used to train a classifier with fewer labeled examples needed using self-supervised learning.

Published by SpaceML • About SpaceML • Quick Colab Example Self-Supervised Learner The Self-Supervised Learner can be used to train a classifier with

Implementation of the paper
Implementation of the paper "Language-agnostic representation learning of source code from structure and context".

Code Transformer This is an official PyTorch implementation of the CodeTransformer model proposed in: D. Zügner, T. Kirschstein, M. Catasta, J. Leskov

Official PyTorch code of DeepPanoContext: Panoramic 3D Scene Understanding with Holistic Scene Context Graph and Relation-based Optimization (ICCV 2021 Oral).
Official PyTorch code of DeepPanoContext: Panoramic 3D Scene Understanding with Holistic Scene Context Graph and Relation-based Optimization (ICCV 2021 Oral).

DeepPanoContext (DPC) [Project Page (with interactive results)][Paper] DeepPanoContext: Panoramic 3D Scene Understanding with Holistic Scene Context G

The Pytorch code of
The Pytorch code of "Joint Distribution Matters: Deep Brownian Distance Covariance for Few-Shot Classification", CVPR 2022 (Oral).

DeepBDC for few-shot learning        Introduction In this repo, we provide the implementation of the following paper: "Joint Distribution Matters: Dee

Apply Graph Self-Supervised Learning methods to graph-level task(TUDataset, MolculeNet Datset)

Graphlevel-SSL Overview Apply Graph Self-Supervised Learning methods to graph-level task(TUDataset, MolculeNet Dataset). It is unified framework to co

This is a Pytorch implementation of the paper: Self-Supervised Graph Transformer on Large-Scale Molecular Data.

This is a Pytorch implementation of the paper: Self-Supervised Graph Transformer on Large-Scale Molecular Data.

Negative Sample Matters: A Renaissance of Metric Learning for Temporal Grounding
Negative Sample Matters: A Renaissance of Metric Learning for Temporal Grounding

2D-TAN (Optimized) Introduction This is an optimized re-implementation repository for AAAI'2020 paper: Learning 2D Temporal Localization Networks for

[CVPR2021] The source code for our paper 《Removing the Background by Adding the Background: Towards Background Robust Self-supervised Video Representation Learning》.
[CVPR2021] The source code for our paper 《Removing the Background by Adding the Background: Towards Background Robust Self-supervised Video Representation Learning》.

TBE The source code for our paper "Removing the Background by Adding the Background: Towards Background Robust Self-supervised Video Representation Le

Comments
  • NameError: name 'input_csv' is not defined

    NameError: name 'input_csv' is not defined

    Any hints for the following error reporting?

    (r-reticulate) (base) zhangzhhengsMBP:Context_Aware_SSL zhangzhongheng$ python /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py  --atlas_image ./misc/atlas_lung_mask.nii.gz --atlas_patch_loc /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/patch_data_32_6_reg/COPD_Atlas_INSP_BSpline_Iso1mm_patch_loc.npy --lowerThreshold -1024 --upperThreshold 240  --input_csv /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/dataset.csv  --output_dir ./results/processed_patch   --patch_size 32  --step_size 26
    Process Process-1:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Process Process-2:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Process Process-5:
    Process Process-4:
    Process Process-7:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Traceback (most recent call last):
    Process Process-3:
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    Process Process-15:
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
    NameError: name 'input_csv' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Process Process-13:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Process Process-16:
    Process Process-11:
    Process Process-14:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Process Process-12:
    Process Process-10:
    Process Process-8:
    Process Process-6:
    Process Process-9:
    Traceback (most recent call last):
    Traceback (most recent call last):
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
    Traceback (most recent call last):
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Traceback (most recent call last):
    Traceback (most recent call last):
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
    Traceback (most recent call last):
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    NameError: name 'input_csv' is not defined
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    (r-reticulate) (base) zhangzhhengsMBP:Context_Aware_SSL zhangzhongheng$ python /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py  --atlas_image /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/COPD_Atlas_INSP_BSpline_Iso1mm.nii.gz  --atlas_patch_loc /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/patch_data_32_6_reg/COPD_Atlas_INSP_BSpline_Iso1mm_patch_loc.npy --lowerThreshold -1024 --upperThreshold 240  --input_csv /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/dataset.csv  --output_dir ./results/processed_patch   --patch_size 32  --step_size 26
    Process Process-4:
    Process Process-2:
    Process Process-3:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Process Process-6:
    Process Process-9:
    Traceback (most recent call last):
    Process Process-13:
    Process Process-8:
    Process Process-1:
    Process Process-10:
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    Process Process-11:
    Process Process-14:
    Process Process-12:
    Process Process-15:
    Process Process-5:
    NameError: name 'input_csv' is not defined
    Process Process-7:
    Process Process-16:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    Traceback (most recent call last):
    Traceback (most recent call last):
    NameError: name 'input_csv' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/ContenTraceback (most recent call last):
    Traceback (most recent call last):
    Traceback (most recent call last):
    Traceback (most recent call last):
    Traceback (most recent call last):
    Traceback (most recent call last):
    Traceback (most recent call last):
    ts/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Traceback (most recent call last):
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/NameError: name 'input_csv' is not defined
    Traceback (most recent call last):
    python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
    NameError: name 'input_csv' is not defined
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
    NameError: name 'input_csv' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
    NameError: name 'input_csv' is not defined
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    NameError: name 'input_csv' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
    (r-reticulate) (base) zhangzhhengsMBP:Context_Aware_SSL zhangzhongheng$ python /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py  --atlas_image /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/COPD_Atlas_INSP_BSpline_Iso1mm.nii.gz  --atlas_patch_loc /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/patch_data_32_6_reg/COPD_Atlas_INSP_BSpline_Iso1mm_patch_loc.npy --lowerThreshold -1024 --upperThreshold 240  --input_csv /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/dataset.csv  --output_dir ./results/processed_patch   --patch_size 32  --step_size 26
    Traceback (most recent call last):
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 245, in <module>
        main(sys.argv[1:])
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 225, in main
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    (r-reticulate) (base) zhangzhhengsMBP:Context_Aware_SSL zhangzhongheng$ python /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py  --atlas_image /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/COPD_Atlas_INSP_BSpline_Iso1mm.nii.gz  --atlas_patch_loc /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/patch_data_32_6_reg/COPD_Atlas_INSP_BSpline_Iso1mm_patch_loc.npy --lowerThreshold -1024 --upperThreshold 240  --input_csv /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/dataset.csv  --output_dir ./results/processed_patch   --patch_size 32  --step_size 26
    Traceback (most recent call last):
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 245, in <module>
        main(sys.argv[1:])
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 225, in main
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    (r-reticulate) (base) zhangzhhengsMBP:Context_Aware_SSL zhangzhongheng$ python /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py  --atlas_image /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/COPD_Atlas_INSP_BSpline_Iso1mm.nii.gz  --atlas_patch_loc /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/patch_data_32_6_reg/COPD_Atlas_INSP_BSpline_Iso1mm_patch_loc.npy --lowerThreshold -1024 --upperThreshold 240  --input_csv /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/dataset.csv  --output_dir ./results/processed_patch   --patch_size 32  --step_size 26
    Process Process-1:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
    NameError: name 'input_csv_path' is not defined
    Process Process-6:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
    NameError: name 'input_csv_path' is not defined
    Process Process-11:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/pytProcess Process-2:
    hon3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Process Process-7:
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
    NameError: name 'input_csv_path' is not defined
    Process Process-4:
    Process Process-15:
    Process Process-3:
    Process Process-5:
    Process Process-8:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
    NameError: name 'input_csv_path' is not defined
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Process Process-9:
    Traceback (most recent call last):
    Traceback (most recent call last):
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
    NameError: name 'input_csv_path' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
    NameError: name 'input_csv_path' is not defined
    NameError: name 'input_csv_path' is not defined
    Process Process-14:
    Process Process-12:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.pyProcess Process-16:
    Traceback (most recent call last):
    Process Process-13:
    Traceback (most recent call last):
    Traceback (most recent call last):
    Process Process-10:
    ", line 132, in run
        df = pd.read_csv(input_csv_path)
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Traceback (most recent call last):
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
    NameError: name 'input_csv_path' is not defined
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
    NameError: name 'input_csv_path' is not defined
    NameError: name 'input_csv_path' is not defined
    NameError: name 'input_csv_path' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Traceback (most recent call last):
    Traceback (most recent call last):
    Traceback (most recent call last):
    NameError: name 'input_csv_path' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
    NameError: name 'input_csv_path' is not defined
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv_path)
    NameError: name 'input_csv_path' is not defined
    NameError: name 'input_csv_path' is not defined
    NameError: name 'input_csv_path' is not defined
    (r-reticulate) (base) zhangzhhengsMBP:Context_Aware_SSL zhangzhongheng$ python /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py  --atlas_image /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/COPD_Atlas_INSP_BSpline_Iso1mm.nii.gz  --atlas_patch_loc /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/patch_data_32_6_reg/COPD_Atlas_INSP_BSpline_Iso1mm_patch_loc.npy --lowerThreshold -1024 --upperThreshold 240  --input_csv /Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/dataset.csv  --output_dir ./results/processed_patch   --patch_size 32  --step_size 26
    Process Process-1:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Process Process-5:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Process Process-4:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multProcess Process-10:
    iprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Process Process-8:
    Process Process-3:
    Process Process-6:
    Process Process-7:
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    Process Process-13:
    Process Process-2:
    Process Process-12:
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    Traceback (most recent call last):
    NameError: name 'input_csv' is not defined
    Traceback (most recent call last):
    Traceback (most recent call last):
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Devel  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
    oper/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Traceback (most recent call last):
    Traceback (most recent call last):
    Traceback (most recent call last):
    Process Process-11:
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
    Process Process-15:
    Process Process-9:
    Traceback (most recent call last):
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    NameError: name 'input_csv' is not defined
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
    Process Process-14:
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
    Process Process-16:
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/NameError: name 'input_csv' is not defined
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    Traceback (most recent call last):
    NameError: name 'input_csv' is not defined
    Traceback (most recent call last):
    Traceback (most recent call last):
    NameError: name 'input_csv' is not defined
    Traceback (most recent call last):
    Traceback (most recent call last):
    NameError: name 'input_csv' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
    self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
    NameError: name 'input_csv' is not defined
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
        self.run()
      File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 108, in run
        self._target(*self._args, **self._kwargs)
      File "/Users/zhangzhongheng/Documents/2022/ARDS_CT_radiomics/Context_Aware_SSL/src/preprocess/4_patchify_images.py", line 132, in run
        df = pd.read_csv(input_csv)
    NameError: name 'input_csv' is not defined
    
    opened by zh-zhang1984 0
  • torch_geometric installation

    torch_geometric installation

    Great work! Trying to reproduce your results, and having some difficulty installing torch_geometric with torch1.4 and cuda10.1 Could you share your environment yml file or setup.py with the package versions? Thanks :)

    opened by aleshem 1
Owner
null
A PyTorch implementation of "Multi-Scale Contrastive Siamese Networks for Self-Supervised Graph Representation Learning", IJCAI-21

MERIT A PyTorch implementation of our IJCAI-21 paper Multi-Scale Contrastive Siamese Networks for Self-Supervised Graph Representation Learning. Depen

Graph Analysis & Deep Learning Laboratory, GRAND 32 Jan 2, 2023
Official implementation of the method ContIG, for self-supervised learning from medical imaging with genomics

ContIG: Self-supervised Multimodal Contrastive Learning for Medical Imaging with Genetics This is the code implementation of the paper "ContIG: Self-s

Digital Health & Machine Learning 22 Dec 13, 2022
The official implementation of the paper, "SubTab: Subsetting Features of Tabular Data for Self-Supervised Representation Learning"

SubTab: Author: Talip Ucar ([email protected]) The official implementation of the paper, SubTab: Subsetting Features of Tabular Data for Self-Supervis

AstraZeneca 98 Dec 29, 2022
Build a medical knowledge graph based on Unified Language Medical System (UMLS)

UMLS-Graph Build a medical knowledge graph based on Unified Language Medical System (UMLS) Requisite Install MySQL Server 5.6 and import UMLS data int

Donghua Chen 6 Dec 25, 2022
Implementation of Self-supervised Graph-level Representation Learning with Local and Global Structure (ICML 2021).

Self-supervised Graph-level Representation Learning with Local and Global Structure Introduction This project is an implementation of ``Self-supervise

MilaGraph 50 Dec 9, 2022
Self-supervised learning on Graph Representation Learning (node-level task)

graph_SSL Self-supervised learning on Graph Representation Learning (node-level task) How to run the code To run GRACE, sh run_GRACE.sh To run GCA, sh

Namkyeong Lee 3 Dec 31, 2021
Normalization Matters in Weakly Supervised Object Localization (ICCV 2021)

Normalization Matters in Weakly Supervised Object Localization (ICCV 2021) 99% of the code in this repository originates from this link. ICCV 2021 pap

Jeesoo Kim 10 Feb 1, 2022
Official implementation of "Motif-based Graph Self-Supervised Learning forMolecular Property Prediction"

Motif-based Graph Self-Supervised Learning for Molecular Property Prediction Official Pytorch implementation of NeurIPS'21 paper "Motif-based Graph Se

zaixi 71 Dec 20, 2022
The Medical Detection Toolkit contains 2D + 3D implementations of prevalent object detectors such as Mask R-CNN, Retina Net, Retina U-Net, as well as a training and inference framework focused on dealing with medical images.

The Medical Detection Toolkit contains 2D + 3D implementations of prevalent object detectors such as Mask R-CNN, Retina Net, Retina U-Net, as well as a training and inference framework focused on dealing with medical images.

MIC-DKFZ 1.2k Jan 4, 2023
Pytorch implementation of Each Part Matters: Local Patterns Facilitate Cross-view Geo-localization https://arxiv.org/abs/2008.11646

[TCSVT] Each Part Matters: Local Patterns Facilitate Cross-view Geo-localization LPN [Paper] NEWs Prerequisites Python 3.6 GPU Memory >= 8G Numpy > 1.

null 46 Dec 14, 2022