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

Colab notebook error #51

Closed
joy0010 opened this issue Jul 18, 2023 · 1 comment
Closed

Colab notebook error #51

joy0010 opened this issue Jul 18, 2023 · 1 comment

Comments

@joy0010
Copy link

joy0010 commented Jul 18, 2023

I followed every step in this video in https://www.youtube.com/watch?v=jIgZMr-PBMo to run the colab code in https://github.com/roboflow/notebooks/blob/main/notebooks/how-to-use-rf100.ipynb.

When I got to this line !python train.py --img 640 --batch 8 --epochs 100 --name $dataset/results --data $dataset/data.yaml --weights 'yolov7_training.pt' |& tee $dataset/logs.txt , it shows RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu).

Please help me to solve this.

截屏2023-07-18 18 10 37
@Jacobsolawetz
Copy link
Contributor

Hello @joy0010! This is a bug that has been introduced by the YOLOv7 repository.

Please see this fix that the YOLOv7 community has discovered or consider using a different YOLO version

WongKinYiu/yolov7#1101 (comment)

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

2 participants