Skip to content

PytorchConnectomics/pytc-client

Repository files navigation

pytc-client

Installation

  1. 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
  1. Client
cd client
npm install
  1. API Server:
cd server_api
pip install -r requirements.txt
  1. Pytc-connectomics:

In root folder,

git clone https://github.com/zudi-lin/pytorch_connectomics.git
cd pytorch_connectomics
pip install --editable .
  1. Pytc-connectomics Server:
cd server_pytc
pip install -r requirements.txt

Run Project

To run in production mode

./run.sh

To run in development mode

  1. Client:
cd client
npm start
  1. API Server:
cd server_api
python main.py
  1. Pytc-connectomics Server:
cd server_pytc
python main.py