- Create a Virtual Environment
For Apple Silicon, please install miniforge3 instead of Anaconda
conda create -n pytc python=3.9
conda activate pytc
conda install pytorch torchvision cudatoolkit=11.3 -c pytorch
Alternatively, dependencies can be installed with native Python via. the following:
# Create a venv
python -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install torch torchvision cuda-python
- Client
cd client
npm install
- API Server:
cd server_api
pip install -r requirements.txt
- Pytc-connectomics:
In root folder,
git clone https://github.com/zudi-lin/pytorch_connectomics.git
cd pytorch_connectomics
pip install --editable .
- Pytc-connectomics Server:
cd server_pytc
pip install -r requirements.txt
./run.sh
- Client:
cd client
npm start
- API Server:
cd server_api
python main.py
- Pytc-connectomics Server:
cd server_pytc
python main.py