Views
No views yet
dog, berry, flower and bird images.

git clone https://github.com/hasu234/SDPDSSample.gitcd SDPDSSampleconda create -n myenv python=3.9conda activate myenvrequirment.txt by runningpip install -r requirmen.txtenvironment.yml by runningconda env create -f environment.yml├── dataset
| ├── train
│ │ ├── class1
│ │ │ ├──image1.jpg
│ │ │ ├──image2.jpg
│ │ ├── class2
│ │ │ ├──image1.jpg
│ │ │ ├──image2.jpg
│ │ ├── class3
│ │ │ ├──image1.jpg
│ │ │ ├──image2.jpg
│ │ ├── class4
│ │ │ ├──image1.jpg
│ │ │ ├──image2.jpg
| ├── test
│ │ ├── class1
│ │ │ ├──image1.jpg
│ │ │ ├──image2.jpg
│ │ ├── class2
│ │ │ ├──image1.jpg
│ │ │ ├──image2.jpg
│ │ ├── class3
│ │ │ ├──image1.jpg
│ │ │ ├──image2.jpg
│ │ ├── class4
│ │ │ ├──image1.jpg
│ │ │ ├──image2.jpgtrain.py according to to your dataset directory.train.py script with the folder directory of your datasetpython train.py /path/to/dataset_directoryinfer.py script from terminal specifying the test image location and downloaded pretrained model locationpython infer.py path/to/image.jpg path/to/model.pthgit clone https://github.com/hasu234/SDPDSSample.gitcd SDPDSSampledocker build -t sdpdsample .docker run -d sdpdsampledocker run -it sdpdsample then exit to get the running container iddocker psdocker exec -it <container id> bash# for training your data
python train.py /path/to/dataset_directory
# for running inference
python infer.py path/to/image.jpg path/to/model.pth