Giter Site home page Giter Site logo

Comments (13)

HiKapok avatar HiKapok commented on May 17, 2024

@jiawensong try to filter images those have zero bbox, by the way, can you train PASCAL VOC successfully?

from ssd.tensorflow.

franklu323 avatar franklu323 commented on May 17, 2024

default
I think we met the same problem. I use my own dataset which followed by the VOC format, and convert was fine (I think, cause I ran 'inspect' after, and train samples, val samples it matches). But when I train the model, the error occurs. I also received this 'InvalidArgumentError (see above for traceback): flat indices[30, :] = [30, -1] does not index into param (shape: [32,6792]).' If you solve this, could you please help me.

from ssd.tensorflow.

HiKapok avatar HiKapok commented on May 17, 2024

@franklu323 did you change your batch_size? Hope you can check if there is images that have no bbox with them, And also thanks for you issue report.

from ssd.tensorflow.

jiawensong avatar jiawensong commented on May 17, 2024

@HiKapok i can train ,test,eval,pascal successfully. I have checked all my own data, the minimum size is 3kb, contains more than one boundingbox. i wonder if the problem is that i haven't create negative boundingbox in my own data.

from ssd.tensorflow.

franklu323 avatar franklu323 commented on May 17, 2024

@HiKapok I do change my batch size to 4, cause my GPU is GTX1060 and I also change the number of classes to 5 (cause I only have 5 classes). BTW, all my dataset contains object
And I saw #12 , I also change scafford to None, but it seems got same error

from ssd.tensorflow.

HiKapok avatar HiKapok commented on May 17, 2024

@franklu323 did you also used tensorflow1.4?

from ssd.tensorflow.

HiKapok avatar HiKapok commented on May 17, 2024

@jiawensong what did you mean by 'haven't create negative boundingbox', did you have one class for background?

from ssd.tensorflow.

jiawensong avatar jiawensong commented on May 17, 2024

@HiKapok i have just create two class, number and chinese character, i haven't create class for background

from ssd.tensorflow.

HiKapok avatar HiKapok commented on May 17, 2024

@jiawensong @franklu323 both of your problems should caused by this line of code when there is image's 'batch_n_neg_select' equals 0, this only can be caused by the zero positives, so I guess there maybe some image have no bbox with them

from ssd.tensorflow.

HiKapok avatar HiKapok commented on May 17, 2024

@jiawensong background class is needed in any detection task

from ssd.tensorflow.

jiawensong avatar jiawensong commented on May 17, 2024

@HiKapok oh, maybe the problem is that i set number class with 0 label, then the program take number class as negative example, when some xml files without chinese character taken as input , the number of positive example is set to 0 and batch_n_neg_select equals 0.

from ssd.tensorflow.

franklu323 avatar franklu323 commented on May 17, 2024

@HiKapok So do I need to label the background or just in data_common.py, set background as 0 and the rest of them are my own data classes??

from ssd.tensorflow.

HiKapok avatar HiKapok commented on May 17, 2024

@franklu323 @jiawensong you needn't label background class, just follow the original pascal dataset's setting, leave one placeholder of value '0' for background class, thanks for your issue report

from ssd.tensorflow.

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.