Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in YOLOv7 Training: AttributeError: 'Namespace' object has no attribute 'upload_dataset' #12

Open
ldbarboza opened this issue Oct 30, 2024 · 0 comments

Comments

@ldbarboza
Copy link

I encountered an error while training the YOLOv7 model with TensorFlow:

!python /content/yolov7-2-tensorflow/train.py --batch 16 --epochs 250 --data '/content/yolov7-2-tensorflow/data/coco.yaml' --cache_images disk --cfg '/content/yolov7-2-tensorflow/cfg/yolov7-tiny.yaml' --device 0 --imgsz 640 --hyp '/content/yolov7-2-tensorflow/data/hyp.ObjectDetection.yaml'

Traceback (most recent call last):
File "/content/yolov7-2-tensorflow/train.py", line 146, in
train(hyp, opt, tb_writer=tb_writer, logger=logger)
File "/content/yolov7-2-tensorflow/tools/trainer.py", line 626, in train
wandb_logger = WandbLogger(opt,
File "/content/yolov7-2-tensorflow/utils/wandb_logging/wandb_utils.py", line 104, in init
wandb_data_dict = self.check_and_upload_dataset(opt) if opt.upload_dataset else data_dict
AttributeError: 'Namespace' object has no attribute 'upload_dataset'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant