-
Notifications
You must be signed in to change notification settings - Fork 974
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
Report an error: RuntimeWarning: invalid value encountered in cast aff_img = Image.fromarray((affinity_map * 255).astype(np.uint8)) #287
Comments
Now it is found that maybe there is a problem in the part of processing images = = |
I found the same problem, not being able to process images accurately. Have you found the solution? |
Hello, I have bypassed this problem for the time being, I guess there may be a problem with calling torch.16 using GPU in win11 system, but I am not sure if this guess is correct, you can use the next cpu version of torch, the problem can be solved |
OK.This problem also exists in win10. I changed the torch version and it still doesn't work. I try the cpu version. Ty |
I also have the same issue running on Win11 using the GPU version. |
You can reconfigure a python environment to include the CPU version of torch, which may solve the problem for now. |
That works, but it is really slow. |
I encountered the following problem when processing the same PDF at different times: RuntimeWarning: invalid value encountered in cast
heat_img = Image.fromarray((heatmap * 255).astype(np.uint8)), this is the problem encountered when re-converting the same PDF today, the document can be converted normally, but it seems that the function of deleting the header and footer has disappeared. What's going on here?
The text was updated successfully, but these errors were encountered: