GithubHelp home page GithubHelp logo

Comments (11)

EngShaheen avatar EngShaheen commented on July 17, 2024 1

I see that the latest update will work for Pascal annotation. But unfortunately, it will not work for my annotation
because in my annotation in <filename> the extension of the file is not there
Here is a screenshot for my annotation
filename
Good Luck

from darkflow.

thtrieu avatar thtrieu commented on July 17, 2024

Dear @EngShaheen you are using an old version of this repo, please update and tell me if it works or not. If the problem is still there, please give me exact steps to reproduce the problem, including dataset & annotation you are using.

from darkflow.

EngShaheen avatar EngShaheen commented on July 17, 2024

Thanks for your reply
I've just cloned a new version of this repo and tried again but I got another error
tf

I am using two classes
infected good
I think I have parsed them successfully
dataset

also, I think I have initialized weights successfully
weights

from darkflow.

thtrieu avatar thtrieu commented on July 17, 2024

I suspect you are using --savepb and --train options at the same time? If so, please finish training first before using --savepb (in combination with --load option). --savepb will disable every variable inside the network and turn them into constants, in order to produce a constant protobuf graph, so the net will not have any variable to be optimized (as in error statement).

Best of luck :)

from darkflow.

EngShaheen avatar EngShaheen commented on July 17, 2024

That's right , I was setting the flag of --savepd to be True
now, I set it to False
but I got another error
epoch
I really appreciate your effort

from darkflow.

thtrieu avatar thtrieu commented on July 17, 2024

Well this time I cant really say the fault is on my side. I believe the image the program is trying to read does not exist. Try printing out imPath before doing anything in yolo/drawer.py/yolo_preprocess() and make sure that path does pointing to an image.

from darkflow.

EngShaheen avatar EngShaheen commented on July 17, 2024

I printed the image path and it's correct except that the extension of the image is written in small letters .jpg, and all the extensions of the images in my dataset are in capital letters .JPG
here is a picture for the imPath
path

here is a picture for the extension of my dataset
data

is it case sensitive ? is there an easy way to change the parsing somehow, instead of doing it the hard way and renaming all my +1000 images in the dataset?

from darkflow.

thtrieu avatar thtrieu commented on July 17, 2024

well, I didn't know cv2 imread is case insensitive, I updated the code, please try again

from darkflow.

EngShaheen avatar EngShaheen commented on July 17, 2024

thank you very much for you help
I suppose it is working now 👍
success

but you should add
import os
at the beginning of the yolo/drawer.py file

also, I suggest that you mention in the readme file that the annotation of the data should be the same format of the PASCAL data (xml file)
and there is a tool to annotate the data is called labelimg that output the same format

and also, I suggest that you make a default folder inside the repo for the innotation, training data and testing data

Have a nice day

from darkflow.

thtrieu avatar thtrieu commented on July 17, 2024

cool ! thanks for your suggestions, lots of work to be done :)

from darkflow.

thtrieu avatar thtrieu commented on July 17, 2024

@EngShaheen By the way, I think I figured a better way to do it than patching the error directly inside drawer.py. To avoid future errors, you may want to save the current state of training, pull the new code and re- clean.py and train again (with option --load [number of latest checkpoint]). Good luck.

from darkflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.