-
Notifications
You must be signed in to change notification settings - Fork 123
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 unpack non-iterable VisImage object #84
Comments
Hi, I encountered the same error running icdar2015_detection.py. I suspect it might be something to do with the fact that I am not running TextFuseNet-Detectron due to CUDA 10.1 being incompatible with my GPU but here's the fix that is working for me right now: In icdar2015_detection.py, change line 135 from Then, in predictor.py, change line 64 from My guess is that their TextFuseNet-detectron's visualizer function works differently than the one in stock Detectron2. Hope this helps. |
in TextFuseNet folder:
|
There would still be problems in save_result_to_txt as it takes in polygons as an argument |
thanks for this work,i'm very gratefuly to help me to fix this error:
Traceback (most recent call last):
File "/content/TextFuseNet/demo/icdar2015_detection.py", line 135, in
prediction, vis_output, polygons = detection_demo.run_on_image(img)
File "/content/TextFuseNet/demo/predictor.py", line 64, in run_on_image
vis_output, polygons = visualizer.draw_instance_predictions(predictions=instances)
TypeError: cannot unpack non-iterable VisImage object
The text was updated successfully, but these errors were encountered: