Replies: 6 comments 18 replies
-
👋 Hello @ardeal, thank you for your interest in Ultralytics 🚀! To help answer your question more effectively, I recommend providing some additional details such as the dataset structure, examples of your dataset labels (for car, bicycle, and person), and your training configuration. This will allow us to better understand your setup. If this is a 🐛 Bug Report, please ensure you include a minimum reproducible example. This will significantly help in debugging the issue. If this is a custom training ❓ Question, please provide logs or outputs from your training process and specify any adjustments you've made to the model or training hyperparameters. Also, verify that you're following best practices for training and data preparation to ensure quality results. It’s a good idea to upgrade to the latest version of the For development or training, confirmed working environments include notebooks with free GPU resources, preconfigured cloud environments such as GCP or AWS, and official Docker containers. This is an automated response to guide you, but an Ultralytics engineer will review your question and assist you further soon 🚀! |
Beta Was this translation helpful? Give feedback.
-
You can't do that. You can train on your dataset, but it's performance will get worse on other classes that are not in your dataset. And it will also get worse for the classes that are in your dataset if you only have few images due to overfitting. |
Beta Was this translation helpful? Give feedback.
-
@Y-T-G |
Beta Was this translation helpful? Give feedback.
-
@Y-T-G My question: |
Beta Was this translation helpful? Give feedback.
-
I use the following code to re-train yolov11.
model_path = "yolo11m.pt"
model = YOLO(model_path)
device = torch.cuda.device(0)
train_results = model.train(
data=r'cfg\datasets\person_ebike_bike_debug.yaml',
epochs=100, # number of training epochs
imgsz=640, # training image size
device='0', # device to run on, i.e. device=0 or device=0,1,2,3 or device=cpu
)
metrics = model.val() |
Beta Was this translation helpful? Give feedback.
-
@glenn-jocher I did the following experiment: step1: choose all those COCO 2017images which contains person, or bycycle, or motobicycle. I changed label of person, motobicycle and bike to 0, 1, and 2.image count == 65382
object count == 272962
person count == 257252
ebike count == 8654
bike count == 7056 step2: I prepare my own dataset:image count == 18798
object count == 38247
person count == 17126
ebike count == 15252
bike count == 5869 step3: I put the above 2 datasets in one folder.step4: I modified yolov11 configuration: nc=3, warmup_epochs = 0, lr0=0.01/10nc: 3
names:
0: person
1: ebike
2: bike
step5: train yolov11 with the following code: model_path = r"yolo11m.pt"
model = YOLO(model_path)
device = torch.cuda.device(0)
train_results = model.train(
data=r'cfg\datasets\person_ebike_bike.yaml', # path to dataset YAML
epochs=100, # number of training epochs
imgsz=640, # training image size
device='0', # device to run on, i.e. device=0 or device=0,1,2,3 or device=cpu
)
metrics = model.val() results: the bad result is: the trained model usually recognize table legs as person :) |
Beta Was this translation helpful? Give feedback.
-
Hi,
I would like to resume training yolov11 model(yolo11m.pt) for only car, bicycle and person.
How should I do?
The purpose of resuming training is that I would like to train yolov11 with the initialization of yolov11m.pt model and add my new images(care/bicycle/person).
Beta Was this translation helpful? Give feedback.
All reactions