-
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
[image.darknet] output error: file.exists(model) is not TRUE #18
Comments
It gives an error about your "obj.cfg" file, not about the weights. Just provide the full path to the "obj.cfg" file. |
Thanks @jwijffels works:
But, when I try to apply
For detect:
|
What have you trained, a classification model or an object detection model? Which were your labels that you used for training, which version of darknet did you train the model upon? |
@jwijffels I try to use the |
In theory this is possible, at least if you have trained it with the same version of darknet which I'm not sure this is the case - which might be the reason why it crashed when you did detect. |
the version of darknet that this R package uses is referenced in commit at a0fb6b4 |
Hey @Leprechault,
If your issue is due to different YOLO versions found online and in this repo, please try my update: #10
Good luck!
…> Am 08.04.2020 um 21:33 schrieb jwijffels ***@***.***>:
the version of darknet that this R package uses is referenced in commit at a0fb6b4
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thanks @georoen !!! I will try and give feedback here!! |
Have you had any luck on your end @Leprechault ? I'm in precisely the same situation and was looking to use my python trained object detection model (yolov3) in R. I implemented the changes in @georoen 's pull request (#10), but the session still crashes. Was looking to confirm that it's not just a silly mistake on my end. just in case it's useful for reference: components <- image_darknet_model(type = 'detect',
model = "full local path/yolov3.cfg",
weights = "full local path/yolov3_2000.weights",
labels = "full local path/AN_obj.names")
d <- image_darknet_detect(file = "full local path/image.jpg",
object = components,
threshold = 0.19) |
Bad news @emhedlin did not work wet. Unfortunately, the darknet support in python is a shame comparing with R web posts. I'll think to try another neural network framework :( |
I've like to use the
image_darknet_model()
with my custom YOLOv3 model. For this, first I put myobj_100.weights
file that represents the weights of my custom model create usingdarknet53.conv.74
inside the library directoryimage.darknet/models
. After, I make the same with myobj.cfg
inimage.darknet/include/darknet/cfg
directory andobj.names
inimage.darknet/include/darknet/data
directory. Then, I try to use theimage_darknet_model()
function:But the I have the model in correct directory:
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?
The text was updated successfully, but these errors were encountered: