
Here is the code to setup the conda environment:
git clone https://github.com/AhmedZgaren/Save.git
cd Save
conda env create -f environment.yml
conda activate count
We provide pre-trained model weights in FSC147:
Store the pre-trained model in the pre-trained folder.
To test the model in an image use the code below:
python demo.py --i path\to\img
Use this link to download the FSC147 dataset and store images under the folder .\data\images\
To train the model just run the following command:
python train.py
To test the model in the FSC147 validation set:
python valid.py -valid True
To test the model in the FSC147 test set:
python valid.py -test True
To test the model in the COCO validation set:
python valid.py -vcoco True
To test the model in the COCO test set:
python valid.py -tcoco True