Code Monkey home page Code Monkey logo

Comments (18)

zubair-ahmed-ai avatar zubair-ahmed-ai commented on September 18, 2024 34

I changed to the following in FaceBoxes/utils/nms/cpu_nms.pyx after lots of tries and it seems to be working (in progress)

def cpu_nms(np.ndarray[np.float32_t, ndim=2] dets, np.float thresh):
    cdef np.ndarray[np.float32_t, ndim=1] x1 = dets[:, 0]
    cdef np.ndarray[np.float32_t, ndim=1] y1 = dets[:, 1]
    cdef np.ndarray[np.float32_t, ndim=1] x2 = dets[:, 2]
    cdef np.ndarray[np.float32_t, ndim=1] y2 = dets[:, 3]
    cdef np.ndarray[np.float32_t, ndim=1] scores = dets[:, 4]

    cdef np.ndarray[np.float32_t, ndim=1] areas = (x2 - x1 + 1) * (y2 - y1 + 1)
    cdef np.ndarray[np.int64_t, ndim=1] order = scores.argsort()[::-1]

    cdef int ndets = dets.shape[0]
    cdef np.ndarray[np.int64_t, ndim=1] suppressed = \
            np.zeros((ndets), dtype=np.int64)

from 3ddfa_v2.

JacksonL1 avatar JacksonL1 commented on September 18, 2024 3

if you got "cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'" error
modify 47 line of build.py to extra_compile_args=['std=c99'],

from 3ddfa_v2.

dongfeicui avatar dongfeicui commented on September 18, 2024 1

On windows10, please uncomment extra_compile_args={'gcc': ["-Wno-cpp", "-Wno-unused-function"]}, in FaceBoxes/utils/build.py line 46

from 3ddfa_v2.

cleardusk avatar cleardusk commented on September 18, 2024

It seems that you do not use the cython version of NMS?

from 3ddfa_v2.

zubair-ahmed-ai avatar zubair-ahmed-ai commented on September 18, 2024

I got compilation error so I uncommented this line and commented the next one

I am on Windows 10 FWIW

from 3ddfa_v2.

cleardusk avatar cleardusk commented on September 18, 2024

I have found a similar issue: eragonruan/text-detection-ctpn#380. BTW, good luck : )

from 3ddfa_v2.

zubair-ahmed-ai avatar zubair-ahmed-ai commented on September 18, 2024

I also had to do below in two places in demo_video.py

if len(boxes) == 0:
  continue

from 3ddfa_v2.

zubair-ahmed-ai avatar zubair-ahmed-ai commented on September 18, 2024

I have found a similar issue: eragonruan/text-detection-ctpn#380. BTW, good luck : )

I got the idea from that post myself, my above fix worked.

from 3ddfa_v2.

cleardusk avatar cleardusk commented on September 18, 2024

If this fix works across platforms, welcome for your PR : )

from 3ddfa_v2.

GuoQuanhao avatar GuoQuanhao commented on September 18, 2024

if you got "cl : Command line error D8021 : invalid numeric argument '/Wno-cpp'" error
modify 47 line of build.py to extra_compile_args=['std=c99'],

cl: 命令行 warning D9024 :无法识别的源文件类型“std=c99”,假定为对象文件
cl: 命令行 warning D9027 :源文件“std=c99”被忽略

from 3ddfa_v2.

 avatar commented on September 18, 2024

do you know how to generate the 3D render picture with color?
thanks.
@cleardusk
@JacksonL1

from 3ddfa_v2.

JacksonL1 avatar JacksonL1 commented on September 18, 2024

@chenbolinstudent
the first version of 3DDFA has implement code.
I think you can refer to that code

from 3ddfa_v2.

 avatar commented on September 18, 2024

@JacksonL1
I want to get such 3D render picture with color. can the code do it ?
103268599-b0ab6a00-49ee-11eb-90e7-686e276a5586

from 3ddfa_v2.

 avatar commented on September 18, 2024

@JacksonL1
transfer .obj to png

from 3ddfa_v2.

JacksonL1 avatar JacksonL1 commented on September 18, 2024

@chenbolinstudent face3d this project will help you.

from 3ddfa_v2.

 avatar commented on September 18, 2024

it only transfer .mat to png ?
not transfer .obj to png?

from 3ddfa_v2.

 avatar commented on September 18, 2024

@JacksonL1
@cleardusk
I can not transfer .obj to png.
can you do it ?

from 3ddfa_v2.

jylovec avatar jylovec commented on September 18, 2024

@JacksonL1 @cleardusk I can not transfer .obj to png. can you do it ?

use trimesh module.

from 3ddfa_v2.

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.