sophia-m commited on
Commit
8a373e7
·
verified ·
1 Parent(s): ef2d930

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -1
README.md CHANGED
@@ -55,7 +55,27 @@ Additionally, I utilized code from Ultralytics to produce an object counting in
55
 
56
  I also utilized Ultralytics’ heatmap code to display a heatmap on the input video, showing which regions of the enclosure were most frequently occupied. I specifically focused the heatmap on the land zone, where the otters were spending most of their resting time. I manipulated the code to focus on the land zone, using pixel locations to create a custom region within the video.
57
 
58
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  ---
60
  # Model Assessment
61
  ### Here are the metrics I used to assess the accuracy and performance of my model during training.
 
55
 
56
  I also utilized Ultralytics’ heatmap code to display a heatmap on the input video, showing which regions of the enclosure were most frequently occupied. I specifically focused the heatmap on the land zone, where the otters were spending most of their resting time. I manipulated the code to focus on the land zone, using pixel locations to create a custom region within the video.
57
 
58
+ ```python
59
+ # Load the YOLOv11 model
60
+ model = YOLO("yolo11n.pt")
61
+
62
+ # Path to the dataset configuration YAML file
63
+ dataset_config = '/content/Dataset/data.yaml' # Path to the YAML file
64
+
65
+ # Train the model
66
+ results = model.train(
67
+ data=dataset_config, # Path to the YAML file
68
+ epochs=100,
69
+ batch=64, # Set a valid batch size (adjust as needed)
70
+ imgsz=640, # Image size for training
71
+ plots=True,
72
+ patience=50,
73
+ conf=0.55,
74
+ iou=0.5
75
+ )
76
+
77
+ print(results)
78
+ ```
79
  ---
80
  # Model Assessment
81
  ### Here are the metrics I used to assess the accuracy and performance of my model during training.