Giter Club home page Giter Club logo

Comments (9)

naiveHobo avatar naiveHobo commented on May 18, 2024

It looks like it's not able to find any prepared data for training. What is the size of your training dataset? Did you prepare the data before training?

The most likely reason I can think of is that the size of your training dataset is smaller than the batch size you're using.

from invoicenet.

michjens avatar michjens commented on May 18, 2024

Thanks for the quick reply

I just wanted to test it real quick, so i only made a couple of test files for training:

image

Each JSON only contains 4 different values as well

And yes, i did prepare the data before testing:
image

from invoicenet.

naiveHobo avatar naiveHobo commented on May 18, 2024

Ah right, tensorflow dataloader throws that error since it is expected there would be some validation data. This is definitely an error that the user should at least be warned about, so thank you for pointing it out. For now, you need at least one sample for validation to satisfy the dataloader so having a dataset of at least (batch_size + 1) samples should work.

from invoicenet.

michjens avatar michjens commented on May 18, 2024

That did the job, thanks a lot.

One last question tho, is it normal for it to take this long with such a small batch? I've had it running for ~1 hour now and it's finished:
image

And i definitely don't have a bad pc.

Just curious if this is to be expected so i don't end up waiting a day for it to complete only for it to not be intended.

from invoicenet.

naiveHobo avatar naiveHobo commented on May 18, 2024

With a batch size of 4 I usually get about 0.9-1.0 batches/s on an Nvidia GTX 1050ti for an amount based field. For a general field, I get about 1.0-1.1 batches/s. It drops to about 0.65 and 0.45 respectively with a batch size of 8.

Do you have a GPU? Is CUDA 10.1 installed? I've written the setup.py script such that it automatically detects if CUDA is available and will install tensorflow-gpu if it is. Otherwise, it defaults to the tensorflow cpu bindings. Can you check the tensorflow logs to see if you're actually using the GPU if you have one?

from invoicenet.

michjens avatar michjens commented on May 18, 2024

That's my issue - i don't have a dedicated GPU on my work laptop. I just didn't expect it would be this rough on it given the limited amount of training data i threw at it, but if it's normal then i just need to be a bit patient

from invoicenet.

siddas27 avatar siddas27 commented on May 18, 2024

I am getting the same error, although I have more than 70 processed data in train and 20 in val. @naiveHobo

from invoicenet.

umairDms avatar umairDms commented on May 18, 2024

can you

tensorflow

please can you explain that how can i solve that, still facing same on macos using paython 3.7. @naiveHobo

from invoicenet.

cobramostar avatar cobramostar commented on May 18, 2024

training is not enough,
sorry, but I still didn't understand what data to insert for some validation data

from invoicenet.

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.