-
Notifications
You must be signed in to change notification settings - Fork 65
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
Session Crash #7
Comments
Hi @keithhurley, I can reproduce your problem. I think it is the cache running full. Using the system monitor, you can see an increment being loaded every iteration. As soon as the hardware limitations are exceeded, the R session dies. @jwijffels do you have an idea how to fix this? I'm working on a pull request coming up for you, including the latest YOLO version and models. However, as the increment is proportional to size of the network, deploying yolov3.weights (248MB) reaches the hardware limitations very fast. Till this issue is closed, restarting the R session is the only option to free up your system resources again. Thank you very much, |
I can confirm the issue. I'll normally work on this in February as I need the function in March for a client. If you have a pull request on yolo v3, would be great! |
Hi @jwijffels: As I understand C pointers a little more. Isn't it possible to return the pointer of the cached network with Best wishes, Jeroen |
Hi,
Here it crashes and there is nothing I can do about it!
This is the current session:
Any suggestions from the authors on how to solve this? |
I'm going to look into it at the end of March. |
Hi ! |
I was having the same problem and it seems that
and it works |
it works |
I have been trying to use the image.darknet library as part of a looping process to process multiple files. It appears that doing so causes a crash of the R session. It happens using a fresh download of the library on multiple computers. On each computer, the crash consistantly happens, but happens at a different number of images. For example, on one computer the R session crashes on processing the fourth file. On another, it is always after the 18th file. This happens if the detect is called as part of a loop, a foreach package loop, or just a run-on of detect calls in the script. Here is a reproducible example that works on any computer I seem to run it on.
`
devtools::install_github("bnosac/image", subdir = "image.darknet", build_vignettes = TRUE)
library(image.darknet)
labels<-system.file(package="image.darknet", "include", "darknet", "data", "voc.names")
labels<-readLines(labels)
yolo_tiny_voc<-image_darknet_model(
type="detect",
model="tiny-yolo-voc.cfg",
weights=system.file(package="image.darknet", "models", "tiny-yolo-voc.weights"),
labels=labels)
f <- system.file("include", "darknet", "data", "dog.jpg", package="image.darknet")
for (i in 1:50){
print(i)
image_darknet_detect(file=f, object=yolo_tiny_voc, threshold=0.03)
}
`
The text was updated successfully, but these errors were encountered: