ASCIIGan icon indicating copy to clipboard operation
ASCIIGan copied to clipboard

Issue while processing photo

Open beiroot opened this issue 2 years ago • 0 comments

numpy.AxisError: filename: 193685896_4005819092837523_3349338800787390130_n.jpg

This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).

Traceback:
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 563, in _run_script
    exec(code, module.__dict__)
File "/app/asciigan/asciiGan.py", line 112, in <module>
    im = imgGen2(uploaded_file)
File "/app/asciigan/asciiGan.py", line 96, in imgGen2
    asciiart(inputf, SC, GCF, "results.png")   #default color, black to blue
File "/app/asciigan/asciiGan.py", line 41, in asciiart
    img = np.sum(np.asarray(img), axis=2)
File "<__array_function__ internals>", line 6, in sum
File "/home/appuser/venv/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2260, in sum
    initial=initial, where=where)
File "/home/appuser/venv/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)

beiroot avatar Nov 09 '22 13:11 beiroot