Git Product home page Git Product logo

Comments (12)

argman avatar argman commented on July 24, 2024

see in training samples

from east.

LearnerInGithub avatar LearnerInGithub commented on July 24, 2024

@argman @zxytim Why the code always stuck at time.sleep(0.01) in the def get_batch(num_workers=10, **kwargs): after read through the the images?

from east.

argman avatar argman commented on July 24, 2024

if you dont have enough cpu-cores, you should reduce the num_readers to a suitable number.

from east.

LearnerInGithub avatar LearnerInGithub commented on July 24, 2024

@argman Even I change the readers number to 4(I am sure I have at least 28 free cores), the stuck problem still there, below is the part of running log:
image_list.shape:(1000,)
1000 training images in ICDAR2015
enqueuer.queue isnot empty, sleep 0.01
enqueuer.queue isnot empty, sleep 0.01
enqueuer.queue isnot empty, sleep 0.01
.
.
.
.
enqueuer.queue isnot empty, sleep 0.01

from east.

argman avatar argman commented on July 24, 2024

I dont encounter your problem, maybe it's the version of keras, I use keras to provide mulithread
what's your keras version ?

from east.

LearnerInGithub avatar LearnerInGithub commented on July 24, 2024

@argman My keras version is 2.0.0, and which version of keras you used?

from east.

argman avatar argman commented on July 24, 2024

I've updated the code, no need to install keras now.

from east.

LearnerInGithub avatar LearnerInGithub commented on July 24, 2024

@argman Now I faced new problem while training, the tips is warning, the warning info:
icdar.py:210: RuntimeWarning: divide by zero encountered in float_scalars
theta = np.arctan((poly[3][0] - poly[0][0]) / (poly[3][1] - poly[0][1]))
icdar.py:216: RuntimeWarning: divide by zero encountered in float_scalars
theta = np.arctan((poly[2][0] - poly[1][0]) / (poly[2][1] - poly[1][1]))

from east.

argman avatar argman commented on July 24, 2024

its caused by some small polygons, you can ignore it.

from east.

zxytim avatar zxytim commented on July 24, 2024

@LearnerInGithub The newest version is using np.arctan2, the problem should be fixed.

from east.

rmmal avatar rmmal commented on July 24, 2024

@LearnerInGithub how did you solve the problem of being stucked in sleep(0.01) ??

from east.

yangxuehang avatar yangxuehang commented on July 24, 2024

@LearnerInGithub @rmmal how did you solve the problem of being stucked in sleep(0.01) ??

from east.

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.