Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
private
.DS_Store
LICENSE
data
wdata
yolov5l.pt
env
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ YOLTv5 is built to execute on a GPU-enabled machine.

# update with geo packages
conda install -c conda-forge gdal
conda install -c conda-forge osmnx=0.12
conda install -c conda-forge osmnx==0.12
conda install -c conda-forge scikit-image
conda install -c conda-forge statsmodels
pip install torchsummary
Expand All @@ -36,8 +36,7 @@ ___

Training preparation is accomplished via [prep_train.py](https://github.com/avanetten/yoltv5/blob/main/yoltv5/prep_train.py). To train a model, run:

cd /yoltv5
python yolov5/train.py --img 640 --batch 16 --epochs 100 --data yoltv5_train_vehicles_8cat.yaml --weights yolov5l.pt
python yoltv5/yolov5/train.py --img 512 --batch 16 --epochs 100 --data configs/yoltv5_rareplanes_train_roles.yaml --weights yolov5l.pt

___

Expand Down
9 changes: 9 additions & 0 deletions configs/yoltv5_rareplanes_train_roles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..]
path: /home/sait/yoltv5/wdata/ # dataset root dir
train: train/images/ # train images (relative to 'path')
val: valid/images/ # val images (relative to 'path')
test: # test images (optional)

# Classes
nc: 7 # number of classes
names: ['Small Civil Transport/Utility', 'Medium Civil Transport/Utility', 'Large Civil Transport/Utility', 'Military Transport/Utility/AWAC', 'Military Bomber', 'Military Fighter/Interceptor/Attack', 'Military Trainer']
2 changes: 1 addition & 1 deletion configs/yoltv5_train_vehicles_8cat.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..]
path: /data/ # dataset root dir
path: /wdata/ # dataset root dir
train: train/images # train images (relative to 'path')
val: val/images # val images (relative to 'path')
test: # test images (optional)
Expand Down
Loading