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

Google colab keeps on crashing while using pyyolo #3

Closed
ramgarg102 opened this issue Jun 11, 2020 · 8 comments
Closed

Google colab keeps on crashing while using pyyolo #3

ramgarg102 opened this issue Jun 11, 2020 · 8 comments

Comments

@ramgarg102
Copy link

The modal keeps on crashing. I am using pyyolo to detect objects in a video. But every time after two detections, the kernel crashes and restarts.

Timestamp Level Message
Jun 11, 2020, 6:39:29 PM WARNING WARNING:root:kernel 1c954a2c-3ad4-449e-b204-44f85e85de9a restarted
Jun 11, 2020, 6:39:29 PM INFO KernelRestarter: restarting kernel (1/5), keep random ports
Jun 11, 2020, 6:39:16 PM WARNING Done! Loaded 162 layers from weights-file
Jun 11, 2020, 6:39:15 PM WARNING Try to load weights: /mydrive/backup/yolov4_custom2_final.weights
Jun 11, 2020, 6:39:15 PM WARNING nms_kind: greedynms (1), beta = 0.600000
Jun 11, 2020, 6:39:15 PM WARNING nms_kind: greedynms (1), beta = 0.600000
Jun 11, 2020, 6:39:15 PM WARNING nms_kind: greedynms (1), beta = 0.600000
Jun 11, 2020, 6:39:15 PM WARNING mini_batch = 1, batch = 1, time_steps = 1, train = 0
Jun 11, 2020, 6:39:15 PM WARNING net.optimized_memory = 0
Jun 11, 2020, 6:39:15 PM WARNING Try to load cfg: /content/darknet/cfg/yolov4_custom2.cfg, weights: /mydrive/backup/yolov4_custom2_final.weights, clear = 0
Jun 11, 2020, 6:39:15 PM WARNING Loading weights from /mydrive/backup/yolov4_custom2_final.weights...
Jun 11, 2020, 6:39:15 PM WARNING Allocate additional workspace_size = 52.43 MB
Jun 11, 2020, 6:39:15 PM WARNING avg_outputs = 489778
Jun 11, 2020, 6:39:15 PM WARNING Total BFLOPS 59.563
Jun 11, 2020, 6:39:15 PM WARNING [yolo] params: iou loss: ciou (4), iou_norm: 0.07, cls_norm: 1.00, scale_x_y: 1.05

Screenshot (38)

@goktug97
Copy link
Owner

It might be a google colab issue. Did you try to run it on your local machine because I haven't tested it using Yolov4? Can you ensure you can make it work locally?

@ramgarg102
Copy link
Author

ramgarg102 commented Jun 11, 2020 via email

@goktug97
Copy link
Owner

You actually don't need a GPU to run Darknet. You can compile Darknet without GPU support. For example in Linux,
https://github.com/AlexeyAB/darknet/blob/0a42f8d6144a0a388b1da238fe078af981d07be0/Makefile#L1-L3
if these lines are 1 replace them with 0 and then recompile.

@ramgarg102
Copy link
Author

ramgarg102 commented Jun 13, 2020 via email

@goktug97
Copy link
Owner

It just reads weights and configuration, it should work with YOLOv4 too.

@ramgarg102
Copy link
Author

ramgarg102 commented Jun 17, 2020 via email

@goktug97
Copy link
Owner

Can you try with the recent update? Updated it to work with the recent darknet repo, tested with the Yolov4 and it works for me.

@ramgarg102
Copy link
Author

ramgarg102 commented Jun 21, 2020 via email

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