8000 [image.darknet] output error: file.exists(model) is not TRUE · Issue #18 · bnosac/image · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[image.darknet] output error: file.exists(model) is not TRUE #18
Open
@Leprechault

Description

@Leprechault

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0