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

classify #9114

Closed
1 task done
pcb9382 opened this issue Aug 24, 2022 · 3 comments · Fixed by #9117
Closed
1 task done

classify #9114

pcb9382 opened this issue Aug 24, 2022 · 3 comments · Fixed by #9117
Labels
question Further information is requested

Comments

@pcb9382
Copy link

pcb9382 commented Aug 24, 2022

Search before asking

Question

python3 classify/train.py --model yolov5s-cls.pt --data cifar100--epochs 5 --img 224 --batch 64

wandb: Currently logged in as: anony-mouse-317294. Usewandb login --relogin` to force relogin
classify/train: model=yolov5s-cls.pt, data=mnist, epochs=5, batch_size=64, imgsz=224, nosave=False, cache=None, device=, workers=8, project=runs/train-cls, name=exp, exist_ok=False, pretrained=True, optimizer=Adam, lr0=0.001, decay=5e-05, label_smoothing=0.1, cutoff=None, dropout=None, verbose=False, seed=0, local_rank=-1
github: skipping check (not a git repository), for updates see https://github.com/ultralytics/yolov5
Python 3.7.0 required by YOLOv5, but Python 3.6.9 is currently installed
YOLOv5 🚀 2022-8-22 Python-3.6.9 torch-1.9.0+cu111 CUDA:0 (NVIDIA GeForce RTX 3060 Laptop GPU, 5938MiB)

TensorBoard: Start with 'tensorboard --logdir runs/train-cls', view at http://localhost:6006/
Traceback (most recent call last):
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_init.py", line 996, in init
wi.setup(kwargs)
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_init.py", line 251, in setup
settings._apply_init(kwargs)
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 1468, in _apply_init
self.update(init_settings, source=Source.INIT)
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 1176, in update
self.dict[key].update(value, source)
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 331, in update
self._value = self._validate(self._preprocess(value))
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 297, in _validate
f"Invalid value for property {self.name}: {value}"
ValueError: Invalid value for property project: runs/train-cls
wandb: ERROR Abnormal program exit
Traceback (most recent call last):
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_init.py", line 996, in init
wi.setup(kwargs)
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_init.py", line 251, in setup
settings._apply_init(kwargs)
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 1468, in _apply_init
self.update(init_settings, source=Source.INIT)
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 1176, in update
self.dict[key].update(value, source)
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 331, in update
self._value = self._validate(self._preprocess(value))
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_settings.py", line 297, in _validate
f"Invalid value for property {self.name}: {value}"
ValueError: Invalid value for property project: runs/train-cls

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "classify/train.py", line 331, in
main(opt)
File "classify/train.py", line 317, in main
train(opt, device)
File "classify/train.py", line 71, in train
logger = GenericLogger(opt=opt, console_logger=LOGGER) if RANK in {-1, 0} else None
File "/home/pcb/yolov5-v6.2/utils/loggers/init.py", line 257, in init
config=opt)
File "/home/pcb/.local/lib/python3.6/site-packages/wandb/sdk/wandb_init.py", line 1037, in init
raise Exception("problem") from error_seen
Exception: problem
`

Additional

No response

@pcb9382 pcb9382 added the question Further information is requested label Aug 24, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Aug 24, 2022

👋 Hello @pcb9382, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.

If this is a 🐛 Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

If this is a custom training ❓ Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.

For business inquiries or professional support requests please visit https://ultralytics.com or email support@ultralytics.com.

Requirements

Python>=3.7.0 with all requirements.txt installed including PyTorch>=1.7. To get started:

git clone https://github.com/ultralytics/yolov5  # clone
cd yolov5
pip install -r requirements.txt  # install

Environments

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

Status

CI CPU testing

If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), validation (val.py), inference (detect.py) and export (export.py) on macOS, Windows, and Ubuntu every 24 hours and on every commit.

@AyushExel
Copy link
Contributor

@pcb9382 you can solve this by passing a project name like this

python3 classify/train.py --model yolov5s-cls.pt --data cifar100--epochs 5 --img 224
 --batch 64 --project yolov5-cls

I'll push permanent fix for this

@glenn-jocher glenn-jocher linked a pull request Aug 24, 2022 that will close this issue
@glenn-jocher
Copy link
Member

@pcb9382 good news 😃! Your original issue may now be fixed ✅ in PR #9117 by @AyushExel. To receive this update:

  • Gitgit pull from within your yolov5/ directory or git clone https://github.com/ultralytics/yolov5 again
  • PyTorch Hub – Force-reload model = torch.hub.load('ultralytics/yolov5', 'yolov5s', force_reload=True)
  • Notebooks – View updated notebooks Open In Colab Open In Kaggle
  • Dockersudo docker pull ultralytics/yolov5:latest to update your image Docker Pulls

Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀!

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

Successfully merging a pull request may close this issue.

3 participants