Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

IndexError: index 120 is out of bounds for axis 0 with size 120 #1

Open
Lucas-C opened this issue Mar 13, 2021 · 0 comments
Open

IndexError: index 120 is out of bounds for axis 0 with size 120 #1

Lucas-C opened this issue Mar 13, 2021 · 0 comments

Comments

@Lucas-C
Copy link

Lucas-C commented Mar 13, 2021

Hi!

I tried your very promising app with the following couple of pictures:
bloodsplat
heart

I defined 10 control points, clicked Morph! and got the following stacktrace in the flask app logs:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "../lib/libmorphing/morphing.py", line 205, in _process_func
    frame = self._compute_frame(triangulation, t, shape, source_img, target_img, source_points, target_points)
  File "../lib/libmorphing/morphing.py", line 199, in _compute_frame
    source_val = source_img[int(source_point[1]), int(source_point[0]), c]
IndexError: index 120 is out of bounds for axis 0 with size 120
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/mnt/c/DevHome/tools/cygwin/opt/image-morphing/web/webmorphing/home.py", line 226, in thread_func
    ImageMorph(source_img_path, middle_img_path, target_img_path, source_points, middle_points, target_points,
  File "../lib/libmorphing/morphing.py", line 80, in __init__
    self._morph()
  File "../lib/libmorphing/morphing.py", line 139, in _morph
    res.get(timeout=None)
  File "/usr/local/lib/python3.8/multiprocessing/pool.py", line 771, in get
    raise self._value
IndexError: index 120 is out of bounds for axis 0 with size 120
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant