(1) clone the github repository (include all the .py file in the directory)
(2) type sh download.sh to download model (best.pt)
(3) put the training image folder and testing image folder in the main directory
(4-a) execute train.py, it will output the model weight of each epoch
(4-b) execute inferece.py, it will output a file called result.csv
train.py:
Example : python "/data1/home/8B07/Anthony/simsiam/train.py" --data /data1/home/8B07/Anthony/simsiam/
Inference.py :
Example : python "/data1/home/8B07/Anthony/simsiam/inference.py" --data /data1/home/8B07/Anthony/simsiam/ --model /data1/home/8B07/Anthony/simsiam/best.pt
No specific package is required in the project
Our model is based on Simsiam and SimTriplet, https://github.com/hrlblab/SimTriplet
Im my_model.py, Line 17-41 75-161 will be similar to the https://github.com/hrlblab/SimTriplet/blob/main/models/simsiam.py