Skip to content

wandbutils.py line 161 AttributeError: 'NoneType' object has no attribute 'startswith' #2674

@markgicharu

Description

@markgicharu

❔Question Whenever i try to run my model i run into this error AttributeError: 'NoneType' object has no attribute 'startswith' from wandbutils.py line 161 I wonder why ? Any workaround or fix

Additional context

Traceback (most recent call last):
File "train.py", line 541, in
train(hyp, opt, device, tb_writer)
File "train.py", line 72, in train
wandb_logger = WandbLogger(opt, Path(opt.save_dir).stem, run_id, data_dict)
File "C:\Users\markg\venv\yolov5\utils\wandb_logging\wandb_utils.py", line 109, in init
self.data_dict = self.setup_training(opt, data_dict)
File "C:\Users\markg\venv\yolov5\utils\wandb_logging\wandb_utils.py", line 140, in setup_training
self.train_artifact_path, self.train_artifact = self.download_dataset_artifact(data_dict.get('train'),
File "C:\Users\markg\venv\yolov5\utils\wandb_logging\wandb_utils.py", line 161, in download_dataset_artifact
if path.startswith(WANDB_ARTIFACT_PREFIX):
AttributeError: 'NoneType' object has no attribute 'startswith'

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions