- Download Miniconda (You can skip this step if you already have Miniconda installed) from here
- Clone the code from
https://github.com/abdumhmd/CSRNet. You can dogit clone https://github.com/abdumhmd/CSRNet.gitor download the zip file from the repository. - Download the ShanghaiTech dataset from here. Extract the zip file outside the repository folder.
- On the command line, run
conda create --name csrnet python=3.8.13 - Run
conda activate csrnet - Install the following libraries using the commands below:
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorchconda install -c conda-forge opencvconda install -c conda-forge matplotlibconda install -c conda-forge tqdmpip install wandbpip install pytorch-lightning== 1.8.0pip install pillowpip install pandaspip install h5py