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

Face accuracy #245

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Face accuracy #245

wants to merge 2 commits into from

Conversation

Rishab87
Copy link
Contributor

@Rishab87 Rishab87 commented Jan 19, 2025

I researched many models , large , medium etc but nano model might not be accurate but it will be good for a great user experience as it uses less resources and it is much faster, choosing a higher accurate model is tradeoff between user experience and accuracy. Also large models will make app heavy use more resources so only small amount of people will be able to experience the ai tagging feature , so I've kept yolov8n model.

I have added an unkown label and changed few paramaters to increase bit of accuracy and reduce wrongly classified images, though it does not drastically increase accuracy , its a minor change.

Currently model can categorize image just in these categories:

class_names = ['person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', 'truck', 'boat', 'traffic light',
               'fire hydrant', 'stop sign', 'parking meter', 'bench', 'bird', 'cat', 'dog', 'horse', 'sheep', 'cow',
               'elephant', 'bear', 'zebra', 'giraffe', 'backpack', 'umbrella', 'handbag', 'tie', 'suitcase', 'frisbee',
               'skis', 'snowboard', 'sports ball', 'kite', 'baseball bat', 'baseball glove', 'skateboard', 'surfboard',
               'tennis racket', 'bottle', 'wine glass', 'cup', 'fork', 'knife', 'spoon', 'bowl', 'banana', 'apple',
               'sandwich', 'orange', 'broccoli', 'carrot', 'hot dog', 'pizza', 'donut', 'cake', 'chair', 'couch',
               'potted plant', 'bed', 'dining table', 'toilet', 'tv', 'laptop', 'mouse', 'remote', 'keyboard',
               'cell phone', 'microwave', 'oven', 'toaster', 'sink', 'refrigerator', 'book', 'clock', 'vase',
               'scissors', 'teddy bear', 'hair drier', 'toothbrush', 'unknown']

To increase classes, I tried training model spent hours finding a dataset but I was not able to find a dataset with bounding labels, my laptop supports training of small nano models so if anyone finds a suitable dataset with many classes and bounding labels do tag me, I'll train the model to add more classes to it , I'll create a seperate issue for training the model.

Fixes #236

@Rishab87
Copy link
Contributor Author

@Pranav0-0Aggarwal can you please review it?

@Rishab87 Rishab87 mentioned this pull request Jan 19, 2025
2 tasks
@kamisama-coder
Copy link
Contributor

Can it be trained for objects other than those mentioned in the class names?

@Rishab87
Copy link
Contributor Author

yes it can be, it is already trained for objects mentioned in class names for adding more classification we need to train it further

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Low accuracy of face tagging model
2 participants