-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
What if the gpu doesn't support support_int8_storage? #38
Comments
It's a known issue. Update:I used waifu2x_srmd_termux to run realsr on Android devices. If I didn't make it wrong, I guess you were using your RealSR NCNN Android to run it. |
Thank for your reply. Same result but may have different reason. In Tencent/ncnn#2636 , the patch is turn off both net.opt.use_fp16_storage and net.opt.use_int8_storage ; In #20 , the print info is fp16p/s/a=1/1/0 int8-p/s/a=1/1/1 if the root reason is tilesize, the default value should be fixed. realsr-ncnn-vulkan/src/main.cpp Line 753 in 50e1055
The error occurred on someone else's device, everything fine my device. |
I guess these options are just "prefer" options rather than "force" options. I read the document, and it seems like (when they are set as true) they are enabled only if the end device is capable of it. I am not sure, please ask @nihui . My evidence is that, my waifu2x ncnn android didn't change the waifu2x.cpp source code and leave net.opt.use_int8_storage as true. None of my smartphones support int8_storage function, but they run the app without any problems. I think this explains a lot. Additionally, I suggest you to modified the CMakeList.txt according to the existing ncnn android demos. Such as https://github.com/nihui/ncnn-android-nanodet and https://github.com/nihui/ncnn-android-scrfd. And rebuild the app to see if the problem is solved. |
Some derive doesn't support support_int8_storage, just print “fp16p/s/a=1/1/1 int8-p/s/a=1/0/1” and "vkQueueSubmit failed -4"
I find this
realsr-ncnn-vulkan/src/realsr.cpp
Line 52 in 50e1055
and this
realsr-ncnn-vulkan/src/realsr.cpp
Line 142 in 50e1055
(net.opt.use_fp16_storage && net.opt.use_int8_storage)
always be true.So I fixed the code as:
Does the modify is unnecessary?
The text was updated successfully, but these errors were encountered: