Git Product home page Git Product logo

Comments (8)

q838458640 avatar q838458640 commented on June 2, 2024

I had the same problem, probably because the version of the Torch was too high, but I couldn't fix it.I wonder if you have solved this problem?

from facedetection-dsfd.

smallsun1122 avatar smallsun1122 commented on June 2, 2024

from facedetection-dsfd.

q838458640 avatar q838458640 commented on June 2, 2024

感谢您

from facedetection-dsfd.

WeiCUI6 avatar WeiCUI6 commented on June 2, 2024

I also had the same issue, can I ask how do you fix the problems? I will really appreciate it!

from facedetection-dsfd.

berkanttubi avatar berkanttubi commented on June 2, 2024

Any answer??

from facedetection-dsfd.

berkanttubi avatar berkanttubi commented on June 2, 2024

add @staticmethod to the beginning of the function that error has been occured.

from facedetection-dsfd.

funykatebird avatar funykatebird commented on June 2, 2024

I had the same problem, probably because the version of the Torch was too high, but I couldn't fix it.I wonder if you have solved this problem?
我也遇到了同样的问题,请问解决了吗?

from facedetection-dsfd.

wengshihao avatar wengshihao commented on June 2, 2024

you can easily solve this problem by:
do changes in face_ssd.py:

output = self.detect(
                  face_loc.view(face_loc.size(0), -1, 4),         # loc preds
                  self.softmax(face_conf.view(face_conf.size(0), -1, self.num_classes)), # conf preds
                  self.priors.type(type(x.data))                  # default boxes
                )

to the below code:

output = self.detect.forward(
                  face_loc.view(face_loc.size(0), -1, 4),         # loc preds
                  self.softmax(face_conf.view(face_conf.size(0), -1, self.num_classes)), # conf preds
                  self.priors.type(type(x.data))                  # default boxes
                )

from facedetection-dsfd.

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.