Skip to content

it seems that check_wandb_resume don't support multiple input files of images. #2716

@murphypei

Description

@murphypei

it's just a minor bug about compatibility

🐛 Bug

for form2) or 3) in dataset yaml

# train and val data as 1) directory: path/images/, 2) file: path/images.txt, or 3) list: [path1/images/, path2/images/]

The data_dict['train'] and data_dict['val'] are list in here.

if data_dict['train'].startswith(WANDB_ARTIFACT_PREFIX):
    ...

if data_dict['val'].startswith(WANDB_ARTIFACT_PREFIX):
   ...

To Reproduce (REQUIRED)

Input:

train:
  [
    /path/image_list1.txt,
    /path/image_list2.txt,
    /path/image_list3.txt
  ]

Output:

YOLOv5 🚀 v4.0-185-g74276d5 torch 1.7.1+cu101 CUDA:0 (GeForce RTX 2080 Ti, 10989.4375MB)
                                             CUDA:1 (GeForce RTX 2080 Ti, 10989.4375MB)
                                             CUDA:2 (GeForce RTX 2080 Ti, 10989.4375MB)
                                             CUDA:3 (GeForce RTX 2080 Ti, 10989.4375MB)

    if data_dict['train'].startswith(WANDB_ARTIFACT_PREFIX):
AttributeError: 'list' object has no attribute 'startswith'

Environment

If applicable, add screenshots to help explain your problem.

  • OS: [Ubuntu]
  • GPU [2080 Ti]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions