Skip to content

Commit

Permalink
initial model
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulgoel873 committed Jan 2, 2025
1 parent 76e2b10 commit edb14cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ docker-compose.yml~
rb_ws/src/buggy/bags/*
*.bag
vision/data/*
.vision/*
.vision/*
runs/*
Binary file added vision/best.pt
Binary file not shown.
4 changes: 3 additions & 1 deletion vision/ultralytics-train.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

# Load a model
model = YOLO("yolo11n.pt") # load a pretrained model (recommended for training)
yaml_path = "C:\\Users\\Mehul Goel\\Documents\\robobuggy-software\\vision\\data\\Buggy Vision.v1i.yolov11\\data.yaml"


# Train the model with MPS
results = model.train(data="/Users/mehulgoel/Documents/robobuggy-software/vision/data/Buggy Vision.v1i.yolov11/data.yaml", epochs=100, imgsz=640, device="mps")
results = model.train(data=yaml_path, epochs=100, imgsz=640)
print(results)

0 comments on commit edb14cb

Please sign in to comment.