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 when training YOLOv7 in google colab #2093

Open
alissatataa opened this issue Nov 1, 2024 · 0 comments
Open

Error when training YOLOv7 in google colab #2093

alissatataa opened this issue Nov 1, 2024 · 0 comments

Comments

@alissatataa
Copy link

Traceback (most recent call last):
File "/content/gdrive/.shortcut-targets-by-id/1DLUUdl4gqnU9WBtaYeJxXbs0RdhsBB71/yolov7/train.py", line 613, in
train(hyp, opt, device, tb_writer)
File "/content/gdrive/.shortcut-targets-by-id/1DLUUdl4gqnU9WBtaYeJxXbs0RdhsBB71/yolov7/train.py", line 245, in train
dataloader, dataset = create_dataloader(train_path, imgsz, batch_size, gs, opt,
File "/content/gdrive/.shortcut-targets-by-id/1DLUUdl4gqnU9WBtaYeJxXbs0RdhsBB71/yolov7/utils/datasets.py", line 69, in create_dataloader
dataset = LoadImagesAndLabels(path, imgsz, batch_size,
File "/content/gdrive/.shortcut-targets-by-id/1DLUUdl4gqnU9WBtaYeJxXbs0RdhsBB71/yolov7/utils/datasets.py", line 392, in init
cache, exists = torch.load(cache_path), True # load
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 1384, in load
return _legacy_load(
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 1628, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: STACK_GLOBAL requires str

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