-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
time to fine tune again. Not sure if I should use previous fine tune …
…or just start over.
- Loading branch information
Showing
6 changed files
with
90 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import fiftyone as fo | ||
import os | ||
import tempfile | ||
import torch | ||
from ultralytics import YOLO | ||
|
||
if __name__ == '__main__': | ||
print("starting") | ||
|
||
print("finished") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import fiftyone as fo | ||
import os | ||
import tempfile | ||
import torch | ||
from ultralytics import YOLO | ||
|
||
FIRST_TRAINING = "low_quality_first_labeled_dataset" | ||
SECOND_TRAINING = "" | ||
|
||
DATASET_NAME = 'labeled_dataset' | ||
DEFAULT_MODEL_SIZE = "x" | ||
DEFAULT_IMAGE_SIZE = 704 | ||
DEFAULT_EPOCHS = 12 | ||
PROJECT_NAME = 'sp_photos_yolo11' | ||
|
||
|
||
|
||
def get_torch_device(): | ||
if torch.cuda.is_available(): | ||
return torch.device("cuda") | ||
elif torch.backends.mps.is_available(): | ||
return torch.device("mps") | ||
else: | ||
return torch.device("cpu") | ||
|
||
if __name__ == '__main__': | ||
print("starting") | ||
|
||
print("finished") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters