-
Notifications
You must be signed in to change notification settings - Fork 131
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
Error importing torch and torchvision #579
Comments
Are you sure the crash happens during the import, and not some other piece of code? You can check by adding If it is caused by the import lines, which line is it specifically, and what is the minimal set of imports that reproduces the problem? I assume libpaddle_light_api_shared is something you've added to the app yourself? Can you explain how it relates to torch, and can you think of any reason why the two libraries might conflict? |
|
I'm sure the crash happens when importing |
Does the problem still happen even if there's nothing in the Python file except
Well, it's not included in Chaquopy or any of the packages we provide, so you must be adding it somehow. From this page, it appears to be another machine learning framework, so it may be interfering with torch in some way. Try removing it and see if that makes the problem disappear. If it still crashes but gives a different stack trace, please post that. |
Well, it is indeed the paddle's problem, thanks. |
@Deep55033 What is the problem with paddle , I have the same problem with RKNN tools (#1195). Can you give me a tip? |
@cyz6668 I don't know either. When I removed the paddle from the project, the problem was solved. |
@Deep55033 what if I consisted on using the paddle or rk3588... |
@cyz6668 Could you tell me what you need to do with chaquopy? If you just need to infer the model, I would recommend using tensorflow lite. |
@Deep55033 I need to infer my model on rockship RKNN3588 and develop our deployment SDK using Android. And we have python scripts developed before and we want them to deal with the results from the model deploment. So we need chaquopy to import these scripts. |
Chaquopy version
10.0.1
Devices or emulators where the issue happens
huawei p40
Relevant parts of your code
Describe your issue
Program crashes when importing torch and torchvision, this is the log
The text was updated successfully, but these errors were encountered: