Code Monkey home page Code Monkey logo

Comments (7)

dichen-cd avatar dichen-cd commented on August 24, 2024

出错的地方大概在这儿:

https://github.com/DeanChan/NAE4PS/blob/ec43d1efb67c813b54141f2e1aaf8fed36c94578/lib/model/faster_rcnn_norm_aware.py#L212-L214

加个断点检查一下 self.has_keypoint 的值吧。或者干脆直接删掉也行。

from nae4ps.

serend1p1ty avatar serend1p1ty commented on August 24, 2024

这是因为torchvision版本的问题,在比较高版本的torchvision里,has_keypoint是一个函数不是一个属性值,可以改成self.has_keypoint()

from nae4ps.

dichen-cd avatar dichen-cd commented on August 24, 2024

感谢 @serend1p1ty !!

from nae4ps.

Alexadlu avatar Alexadlu commented on August 24, 2024

感谢两位的帮助@DeanChan @serend1p1ty ,确实安装的版本比较高,现已正常。
还有个问题,像这种因为库函数版本问题导致的,是如何debug出来的,太菜了我

from nae4ps.

serend1p1ty avatar serend1p1ty commented on August 24, 2024

ipdb调试吧,一行一行debug,库函数也可以调试

from nae4ps.

Alexadlu avatar Alexadlu commented on August 24, 2024

from nae4ps.

Alexadlu avatar Alexadlu commented on August 24, 2024

from nae4ps.

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.