Skip to content
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

Open
potatoo0000 opened this issue Sep 19, 2024 · 4 comments

Comments

@potatoo0000
Copy link

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?

@potatoo0000
Copy link
Author

Now it is found that maybe there is a problem in the part of processing images = =

@woyoudianshenxu
Copy link

I found the same problem, not being able to process images accurately. Have you found the solution?

@potatoo0000
Copy link
Author

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

@woyoudianshenxu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants