mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 14:13:28 +00:00
openvino: use explicit shape for CRAFT
This commit is contained in:
4
plugins/openvino/package-lock.json
generated
4
plugins/openvino/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/openvino",
|
||||
"version": "0.1.183",
|
||||
"version": "0.1.185",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/openvino",
|
||||
"version": "0.1.183",
|
||||
"version": "0.1.185",
|
||||
"devDependencies": {
|
||||
"@scrypted/sdk": "file:../../sdk"
|
||||
}
|
||||
|
||||
@@ -50,5 +50,5 @@
|
||||
"devDependencies": {
|
||||
"@scrypted/sdk": "file:../../sdk"
|
||||
},
|
||||
"version": "0.1.183"
|
||||
"version": "0.1.185"
|
||||
}
|
||||
|
||||
@@ -32,7 +32,9 @@ class OpenVINOTextRecognition(TextRecognition):
|
||||
model.reshape([1, 1, 64, 384])
|
||||
return self.plugin.core.compile_model(model, self.plugin.mode)
|
||||
else:
|
||||
return self.plugin.core.compile_model(xmlFile, self.plugin.mode)
|
||||
model = self.plugin.core.read_model(xmlFile)
|
||||
model.reshape([1, 3, 640, 640])
|
||||
return self.plugin.core.compile_model(model, self.plugin.mode)
|
||||
|
||||
async def predictDetectModel(self, input: np.ndarray):
|
||||
def predict():
|
||||
|
||||
Reference in New Issue
Block a user