triangler icon indicating copy to clipboard operation
triangler copied to clipboard

Script fails

Open geotheory opened this issue 1 year ago • 1 comments

Broken for me:

>>> triangler_instance.convert_and_save("input.jpg", "output.jpg")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/anaconda3/lib/python3.8/site-packages/triangler/mod.py", line 89, in convert_and_save
    im = Image.fromarray(self.convert(source).astype(np.uint8))
  File "/opt/anaconda3/lib/python3.8/site-packages/triangler/mod.py", line 58, in convert
    return process(
RuntimeWarning: Option -l or --reduce is temporarily unavailable due to the deprecated parameter multichannel of scikit-image.

geotheory avatar Mar 02 '24 17:03 geotheory

Hi, thanks for letting me know about the issue. I temporarily removed a pyramid_reduce option because of the dependency on the deprecated method.

You can disable this option by setting the pyramid_reduce parameter to False. For example:

# Create Triangler instance
triangler_instance = triangler.Triangler(
    pyramid_reduce=False,
)

This should be fixed soon. I'm a little busy so I'm not sure I can tackle this issue for now, however. But I'll fix it. Thanks for reporting the issue!

Best regards,

tdh8316 avatar Mar 03 '24 05:03 tdh8316

Fixed at commit 8f77b8181693913e5b5a94538498ea6102761550.

tdh8316 avatar Jul 15 '24 15:07 tdh8316