Open
Description
I've like to use the image_darknet_model()
with my custom YOLOv3 model. For this, first I put my obj_100.weights
file that represents the weights of my custom model create using darknet53.conv.74
inside the library directory image.darknet/models
. After, I make the same with my obj.cfg
in image.darknet/include/darknet/cfg
directory and obj.names
in image.darknet/include/darknet/data
directory. Then, I try to use the image_darknet_model()
function:
library(image.darknet)
yolo_v3_my_weights <- image_darknet_model(type = 'classify',
model = "obj.cfg", weights = system.file(package="image.darknet", "models", "obj_100.weights"),
labels = system.file(package="image.darknet", "include", "darknet", "data", "obj.names"))
Error in image_darknet_model(type = "classify", model = "obj.cfg", weights = system.file(package = "image.darknet", :
file.exists(model) is not TRUE
But the I have the model in correct directory:
setwd("~/R/win-library/3.6/image.darknet/models")
dir()
[1] "obj_100.weights" "tiny-yolo-voc.weights" "tiny.weights"
The file is OK and I don't have any problem with obj_100.weights
file in the darknet in Python.
Please, any solution for this?
Metadata
Metadata
Assignees
Labels
No labels