Giter Club home page Giter Club logo

zhou-accv-2018's People

Contributors

sergioragostinho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

zhou-accv-2018's Issues

Problem running e3q3

The e3q3 routine fails for a simple case that should succeed:

Here are the contents of my python test file (test_e3q3.py):

import numpy as np
from zhou_accv_2018 import e3q3

A = np.array([[ 1,  1,  1,  0,  0,  0,  0,  0,  0, -4],
       [ 1,  1,  1,  0,  0,  0, -4,  0,  0,  3],
       [ 1,  1,  1,  0,  0,  0,  -3.5,  0,  0,  2.125]])

a_gt = 1.75
b_gt = np.sqrt(15)/4
c_gt = 0

v_gt = np.reshape(np.array([a_gt**2, b_gt**2, c_gt**2, a_gt*b_gt, a_gt*c_gt, b_gt*c_gt, a_gt, b_gt, c_gt, 1]), (-1, 1))

print(np.matmul(A, v_gt)) # should be 3 zero's

a, b, c = e3q3(A, True)

Here is the output of running it:

$ python test_e3q3.py
[[0.]
 [0.]
 [0.]]
Traceback (most recent call last):
  File "test_e3q3.py", line 16, in <module>
    a, b, c = e3q3(A, True)
  File "/home/dkoppel/Downloads/zhou-accv-2018-master/dan2/lib/python3.6/site-packages/zhou_accv_2018-1.0.0-py3.6-linux-x86_64.egg/zhou_accv_2018/e3q3.py", line 60, in e3q3
    A_r = (A.T)[perms[min_idx]]
TypeError: list indices must be integers or slices, not NoneType

Maintainer edit: code formatting

ModuleNotFoundError: No module named 'zhou_accv_2018.e3q3c' when executing tests.py

Hi @SergioRAgostinho

I was trying to test your module to estimate pose from a Monocular camera dataset in a Ubuntu 20.04 machine. However, after installing the module via the setup.py python3 setup.py called from the root folder zhou-accv-2018

script when I execute tests.py I get the following error

ModuleNotFoundError: No module named 'zhou_accv_2018.e3q3c' .

It is the same when I try to execute the examples script. For instance, trying python3 p3p.py in \examples directory also gives the same error.

Any help in solving the installation issue will be appreciated.

With best,
@Mechazo11

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.