GithubHelp home page GithubHelp logo

Comments (7)

github-actions avatar github-actions commented on July 2, 2024

πŸ‘‹ Hello @ccl-private, thank you for your interest in Ultralytics YOLOv8 πŸš€! We recommend a visit to the Docs for new users where you can find many Python and CLI usage examples and where many of the most common questions may already be answered.

If this is a πŸ› Bug Report, please provide a minimum reproducible example to help us debug it.

If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results.

Join the vibrant Ultralytics Discord 🎧 community for real-time conversations and collaborations. This platform offers a perfect space to inquire, showcase your work, and connect with fellow Ultralytics users.

Install

Pip install the ultralytics package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.

pip install ultralytics

Environments

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

Status

Ultralytics CI

If this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLOv8 Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit.

from ultralytics.

ccl-private avatar ccl-private commented on July 2, 2024

the label in the train batch:
image

the label in text:
image

from ultralytics.

glenn-jocher avatar glenn-jocher commented on July 2, 2024

@ccl-private hello,

Thank you for bringing this to our attention. It looks like there might be an issue with the labeling consistency in your training data.

To help us investigate further, could you please ensure the following:

  1. Reproducible Example: You've provided a good start, but please confirm that this issue persists with the latest versions of torch and ultralytics. If not, please upgrade your packages and try again.
  2. Data Consistency: Ensure that your dataset annotations are consistent across all sources. Mixed datasets can sometimes lead to label mismatches.

Here's a quick checklist to verify your setup:

  • Ensure that all datasets (Objects365, Flickr30k, GQA, and LVIS) have consistent label formats.
  • Double-check the json_file paths and contents to ensure they align correctly with the image paths.

If the issue persists, please provide a minimal reproducible example that includes a small subset of your data, so we can replicate the problem on our end. You can find more details on creating a minimal reproducible example here.

Looking forward to your response!

from ultralytics.

ccl-private avatar ccl-private commented on July 2, 2024

task: detect
mode: train
model: yolov8s-worldv2.pt
data:
train:
yolo_data:
- VisDrone.yaml
val:
yolo_data:
- lvis.yaml
epochs: 100
time: null
patience: 100
batch: 128
imgsz: 640
save: true
save_period: -1
cache: false
device:

  • 0
  • 1
    workers: 8
    project: null
    name: train11
    exist_ok: false
    pretrained: true
    optimizer: Adam
    verbose: true
    seed: 0
    deterministic: true
    single_cls: false
    rect: false
    cos_lr: false
    close_mosaic: 10
    resume: false
    amp: true
    fraction: 1.0
    profile: false
    freeze: 19
    multi_scale: false
    overlap_mask: true
    mask_ratio: 4
    dropout: 0.0
    val: true
    split: val
    save_json: false
    save_hybrid: false
    conf: null
    iou: 0.7
    max_det: 300
    half: false
    dnn: false
    plots: true
    source: null
    vid_stride: 1
    stream_buffer: false
    visualize: false
    augment: false
    agnostic_nms: false
    classes: null
    retina_masks: false
    embed: null
    show: false
    save_frames: false
    save_txt: false
    save_conf: false
    save_crop: false
    show_labels: true
    show_conf: true
    show_boxes: true
    line_width: null
    format: torchscript
    keras: false
    optimize: false
    int8: false
    dynamic: false
    simplify: false
    opset: null
    workspace: 4
    nms: false
    lr0: 0.0001
    lrf: 0.1
    momentum: 0.937
    weight_decay: 0.0005
    warmup_epochs: 3.0
    warmup_momentum: 0.8
    warmup_bias_lr: 0.1
    box: 7.5
    cls: 0.5
    dfl: 1.5
    pose: 12.0
    kobj: 1.0
    label_smoothing: 0.0
    nbs: 64
    hsv_h: 0.015
    hsv_s: 0.7
    hsv_v: 0.4
    degrees: 0.0
    translate: 0.1
    scale: 0.5
    shear: 0.0
    perspective: 0.0
    flipud: 0.0
    fliplr: 0.5
    bgr: 0.0
    mosaic: 1.0
    mixup: 0.0
    copy_paste: 0.0
    auto_augment: randaugment
    erasing: 0.4
    crop_fraction: 1.0
    cfg: null
    tracker: botsort.yaml
    save_dir: runs/detect/train11

from ultralytics.

ccl-private avatar ccl-private commented on July 2, 2024

I only use lvis.yaml and VisDrone.yaml to test the train batch label.
image
image
car with different label occurs.

from ultralytics.

ccl-private avatar ccl-private commented on July 2, 2024

the dataset label of VisDrone.yaml should be right, because I have trained a yolov8n on it , and get a map of 0.4.

from ultralytics.

ccl-private avatar ccl-private commented on July 2, 2024

Environment
pip install ultralytics

Minimal Reproducible Example
from ultralytics import YOLOWorld
from ultralytics.models.yolo.world.train_world import WorldTrainerFromScratch
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0,1"

data = dict(
train=dict(
yolo_data=["VisDrone.yaml"],
),
val=dict(yolo_data=["lvis.yaml"]),
)

model = YOLOWorld("yolov8s-worldv2.pt")
model.train(data=data, batch=128, epochs=100, trainer=WorldTrainerFromScratch, device=[0, 1],
optimizer="Adam", lr0=0.0001, lrf=0.1, freeze=19) # cache='disk'

from ultralytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.