Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot cast array data from dtype('V24') to dtype('float64') according to the rule 'safe' #2

Open
traverseda opened this issue Oct 23, 2015 · 0 comments

Comments

@traverseda
Copy link

Input Parameters
------------------------
previous_result: None
scale: 2
damp: 0.1
update: False
ignore: []
operator: polygon
photo_adjust: True
method: CG
norm: 2
------------------------
<open file 'sr_sequences/text/pgm/im.000.pgm', mode 'r' at 0x7f9dd83f6150>
<open file 'sr_sequences/text/pgm/im.001.pgm', mode 'r' at 0x7f9dd83f6150>
<open file 'sr_sequences/text/pgm/im.002.pgm', mode 'r' at 0x7f9dd83f6150>
<open file 'sr_sequences/text/pgm/im.003.pgm', mode 'r' at 0x7f9dd83f6150>
<open file 'sr_sequences/text/pgm/im.004.pgm', mode 'r' at 0x7f9dd83f6150>
<open file 'sr_sequences/text/pgm/im.005.pgm', mode 'r' at 0x7f9dd83f6150>
<open file 'sr_sequences/text/pgm/im.006.pgm', mode 'r' at 0x7f9dd83f6150>
<open file 'sr_sequences/text/pgm/im.007.pgm', mode 'r' at 0x7f9dd83f6150>
<open file 'sr_sequences/text/pgm/im.008.pgm', mode 'r' at 0x7f9dd83f6150>
<open file 'sr_sequences/text/pgm/im.009.pgm', mode 'r' at 0x7f9dd83f6150>
Traceback (most recent call last):
  File "super_resolve.py", line 105, in <module>
    img_warp = homography(ic[i], ic[i].info['H'])
  File "/usr/lib/python2.7/site-packages/supreme/transform/transform.py", line 198, in matrix
    coords = _homography_coords(image, matrix, output_shape)
  File "/usr/lib/python2.7/site-packages/supreme/transform/transform.py", line 131, in _homography_coords
    tf_coords = np.dot(tf_coords, np.linalg.inv(matrix).transpose())
TypeError: Cannot cast array data from dtype('V24') to dtype('float64') according to the rule 'safe'

Tried to get this up and running, but it wasn't too happy. I imagine it's just new versions of numpy. I presume it's something as simple as int("4"), but I don't really have the numpy experience to dig into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant