mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 14:13:28 +00:00
ncnn: fp16 math
This commit is contained in:
2
plugins/ncnn/.vscode/settings.json
vendored
2
plugins/ncnn/.vscode/settings.json
vendored
@@ -1,6 +1,6 @@
|
||||
|
||||
{
|
||||
"scrypted.debugHost": "scrypted-amd",
|
||||
"scrypted.debugHost": "127.0.0.1",
|
||||
"python.analysis.extraPaths": [
|
||||
"./node_modules/@scrypted/sdk/types/scrypted_python"
|
||||
]
|
||||
|
||||
4
plugins/ncnn/package-lock.json
generated
4
plugins/ncnn/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/ncnn",
|
||||
"version": "0.1.82",
|
||||
"version": "0.1.83",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/ncnn",
|
||||
"version": "0.1.82",
|
||||
"version": "0.1.83",
|
||||
"devDependencies": {
|
||||
"@scrypted/sdk": "file:../../sdk"
|
||||
}
|
||||
|
||||
@@ -48,5 +48,5 @@
|
||||
"devDependencies": {
|
||||
"@scrypted/sdk": "file:../../sdk"
|
||||
},
|
||||
"version": "0.1.82"
|
||||
"version": "0.1.83"
|
||||
}
|
||||
|
||||
@@ -118,9 +118,9 @@ class NCNNPlugin(
|
||||
|
||||
self.net = ncnn.Net()
|
||||
self.net.opt.use_vulkan_compute = True
|
||||
self.net.opt.use_fp16_packed = False
|
||||
self.net.opt.use_fp16_storage = False
|
||||
self.net.opt.use_fp16_arithmetic = False
|
||||
# self.net.opt.use_fp16_packed = False
|
||||
# self.net.opt.use_fp16_storage = False
|
||||
# self.net.opt.use_fp16_arithmetic = False
|
||||
|
||||
self.net.load_param(paramFile)
|
||||
self.net.load_model(binFile)
|
||||
|
||||
@@ -42,9 +42,9 @@ class NCNNFaceRecognition(FaceRecognizeDetection):
|
||||
|
||||
net = ncnn.Net()
|
||||
net.opt.use_vulkan_compute = True
|
||||
net.opt.use_fp16_packed = False
|
||||
net.opt.use_fp16_storage = False
|
||||
net.opt.use_fp16_arithmetic = False
|
||||
# net.opt.use_fp16_packed = False
|
||||
# net.opt.use_fp16_storage = False
|
||||
# net.opt.use_fp16_arithmetic = False
|
||||
|
||||
net.load_param(paramFile)
|
||||
net.load_model(binFile)
|
||||
|
||||
@@ -35,9 +35,9 @@ class NCNNTextRecognition(TextRecognition):
|
||||
|
||||
net = ncnn.Net()
|
||||
net.opt.use_vulkan_compute = True
|
||||
net.opt.use_fp16_packed = False
|
||||
net.opt.use_fp16_storage = False
|
||||
net.opt.use_fp16_arithmetic = False
|
||||
# net.opt.use_fp16_packed = False
|
||||
# net.opt.use_fp16_storage = False
|
||||
# net.opt.use_fp16_arithmetic = False
|
||||
|
||||
net.load_param(paramFile)
|
||||
net.load_model(binFile)
|
||||
|
||||
Reference in New Issue
Block a user