ultralytics / yolov5

YOLOv5 🚀 in PyTorch > ONNX > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
50.33k stars 16.25k forks source link

.yaml special symbol error #7049

Closed Guan-LinHe closed 2 years ago

Guan-LinHe commented 2 years ago

Search before asking

Question I encountered a problem that the labels have special symbols ' or , or _ so that there will be errors in training. Does anyone know how to deal with it? 擷取

Additional No response

github-actions[bot] commented 2 years ago

👋 Hello @GuanLinHu, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.

If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.

For business inquiries or professional support requests please visit https://ultralytics.com or email support@ultralytics.com.

Requirements

Python>=3.7.0 with all requirements.txt installed including PyTorch>=1.7. To get started:

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install

Environments

YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):

Status

CI CPU testing

If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), validation (val.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.

glenn-jocher commented 2 years ago

@GuanLinHu 👋 hi, thanks for letting us know about this possible problem with YOLOv5 🚀. Commas, underscores and spaces work correctly in labels, i.e.:

val_batch0_labels

We've created a few short guidelines below to help users provide what we need in order to get started investigating a possible problem.

How to create a Minimal, Reproducible Example

When asking a question, people will be better able to provide help if you provide code that they can easily understand and use to reproduce the problem. This is referred to by community members as creating a minimum reproducible example. Your code that reproduces the problem should be:

For Ultralytics to provide assistance your code should also be:

If you believe your problem meets all the above criteria, please close this issue and raise a new one using the 🐛 Bug Report template with a minimum reproducible example to help us better understand and diagnose your problem.

Thank you! 😃

Guan-LinHe commented 2 years ago

Hello@glenn-jocher author, if there are single quotes on my side (eg: Mac 'n' Cheese Shells, 65), an error will occur, and I don't know what to do.

my class name:

class names

names: ['Advil Liquid Gel,1','Advil Tablets,2','Alcohol Pads,3','Aleve PM,4','Aleve Tablets,5','All Free and Clear Pods,6','Arm and Hammer Toothpaste,7','Bandaid Variety,8','Banza,9','Barilla Penne,10','Barilla Red Lentil,11','Barilla Rotini Pasta,12','Barnums Animal Crackers,13','Bayer Chewable 3 Pack,14','Bayer Lower Dose,15','Benadryl Allergy Tablets,16','Biore,17','Brown Rice,18','Bumble Bee Tuna,19','Cane Sugar,20','Chamomile Tea,21','Chicken Bouillon,22','Children_s Allegra Allergy,23','Children_s Zyrtec,24','Chocolate Fudge Poptart,25','Chocolate Pocky,26','Chocolate Strawberries,27','Claratin Chewable,28','Coffee Mate Creamer,29','Crackers and Cheese,30','Cream Cheese,31','Crest White Strips,32','Dove Cool Moisturizer,33','Dove Soap Sensitive,34','Dove Body Wash,35','Downy Odor Defense,36','Dreft Scent Beads,37','Dry Eye Relief,38','Excedrine Migraine,39','Extra Spearmint,40','Flonase,41','Flow Flex Covid 19 Test,42','French Roast Starbucks,43','Frosting Mix Chocolate,44','Fudge Oreos,45','Funfetti Cake,46','Gain Fireworks Scent Beads,47','Gain Flings,48','Garnier Shampoo,49','Glad Drawstring Trash Bag,50','Gluten Free Brownies,51','Gluten Free Pasta,52','Gournay Cheese,53','Healthy Choice Chicken Alfredo,54','Heavy Duty Forks,55','Hefty Small Trash Bags,56','Hello Toothpaste,57','Honey Maid Graham Crackers,58','Ice Cream Sandwiches,59','Ice Breakers Ice Cubes,60','Jello Vanilla Pudding,61','Kerrygold Butter,62','Kleenex,63','Lipton Noodle Soup,64','Mac 'n' Cheese Shells,65','Macaroni and Cheese Original,66','Matzo Balls,67','McCormick Natures Food Coloring,68','Milk Duds,69','Minute Tapioca,70','Miss Dior,71','Mixed Berries Hibiscus Tea,72','M&Ms Peanuts,73','Mochi Ice Cream,74','Motrin Ib Migraine,75','Mr Clean,76','Nasacort Allergy,77','Nasal Decongestant,78','Nasal Strip,79','Nature Valley Granola Bars,80','Nintendo Switch Controllers,81','Onion Soup Dip Mix,82','Pedialyte Powder,83','Peets Keurig,84','Peet's Coffee Grounds Dark Roast,85','Playtex Sport,86','Pocky Strawberry,87','Pork Sausage,88','Pure Vanilla Extract,89','Raisinets,90','Ranch Seasoning,91','Reese's Pieces,92','Rewetting Drops Contact Solution,93','Smores Poptarts,94','Snuggle Dryer Sheets,95','Sour Patch Kids,96','Stevia in the Raw,97','Strawberry Jello,98','Stress Relief Spray All Natural,99','Sunmaid Raisins,100','Swiss Miss Hot Chocolate,101','Tampax,102','Tide Pods,103','Toothpicks,104','Tostada Shells,105','Total Home Scent Boos,106','Tussin,107','Tylenol Arthritis,108','Unstoppables,109','Vapo Rub,110','Vick's Pure Zzz's,111','Vinyl Gloves,112','Visine Red Eye Hydrating Comfort,113','Whoppers,114','Wild Strawberry Tea,115','Woolite Delicates Attempt,116']

glenn-jocher commented 2 years ago

@GuanLinHu this has nothing to do with YOLOv5. Google is your friend: https://stackoverflow.com/questions/9050355/using-quotation-marks-inside-quotation-marks

github-actions[bot] commented 2 years ago

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional YOLOv5 🚀 resources:

Access additional Ultralytics ⚡ resources:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐!