Giter Site home page Giter Site logo

training error about py-r-fcn HOT 6 OPEN

yuwenxiong avatar yuwenxiong commented on June 24, 2024
training error

from py-r-fcn.

Comments (6)

Jiaming-Liu avatar Jiaming-Liu commented on June 24, 2024 3

ImportError: numpy.core.multiarray failed to import
after running
pip install -U numpy==1.11.0

from py-r-fcn.

muyue1238 avatar muyue1238 commented on June 24, 2024 1

I ran into this same problem, too. Have to say I got tortured by this problem for near two weeks, and the solution is atually quiet simple. I refered to the following question:rbgirshick/py-faster-rcnn#626 . It turns out that numpy-1.13 doesn't support flaot and you have to change some parameters into int. And the wrong parameters will be pointed out in error code, in this case, line 66 and line 185 in proposal_target_layer.py are wrong. After you changed it, you maybe ran into another error in diffrent places, just change them all, and it will finally work. BTW, back-up the files you are going to change incase something went wrong. Hope this will help.

from py-r-fcn.

nashory avatar nashory commented on June 24, 2024

I have the same problem.
Anyone solved?

from py-r-fcn.

Timonzimm avatar Timonzimm commented on June 24, 2024

Followed the solution presented here: rbgirshick/py-faster-rcnn#481
pip install -U numpy==1.11.0

It personally worked perfectly afterwards.

from py-r-fcn.

starxhong avatar starxhong commented on June 24, 2024

rbgirshick/py-faster-rcnn#481
gives two ways to solve the problem perfectly w./wo. reinstall numpy

from py-r-fcn.

wander1985 avatar wander1985 commented on June 24, 2024

I've got similar error.
By changing
fg_rois_per_this_image = min(fg_rois_per_image, fg_inds.size) to
fg_rois_per_this_image = np.int64(min(fg_rois_per_image, fg_inds.size))
in line 182 in proposal_target_layer.py works for me.

Hope this would help.

from py-r-fcn.

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.