Comments (3)
I don't recall how to do it.. I feel like I put it in /share/models... And then maybe you put /share/models/filename in the config for the mode file? I'm going off memory from like several years ago...
from hassio-addons.
Yes, put the model in /share/models... and then update the config model path to be /share/model/filename...
from hassio-addons.
Thank you!! Your advice works and it made me happy but not for long((.
I bumped another issue. It shows error and stop works after i call image_processing.scan service.
With default model it works properly.
I was training my model following this instruction on google colab:
Please, friend, look at the logs below and help me out again. Thanks for the insight and sorry for disturb.
`
2023-09-21 12:02:37,913 - doods.doods - INFO - Registered detector type:tflite name:default
2023-09-21 12:02:45,410 - doods.doods - INFO - Registered detector type:tensorflow name:tensorflow
2023-09-21 12:02:45,414 - doods.doods - ERROR - Could not create detector pytorch/pytorch: Unknown detector type pytorch.
2023-09-21 12:02:45,675 - uvicorn.error - INFO - Started server process [7]
2023-09-21 12:02:45,678 - uvicorn.error - INFO - Waiting for application startup.
2023-09-21 12:02:45,679 - uvicorn.error - INFO - Application startup complete.
2023-09-21 12:02:45,682 - uvicorn.error - INFO - Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
2023-09-21 12:03:10,367 - uvicorn.access - INFO - 192.168.1.73:53412 - "POST /detect HTTP/1.1" 500
2023-09-21 12:03:10,373 - uvicorn.error - ERROR - Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/uvicorn/protocols/http/h11_impl.py", line 373, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/usr/local/lib/python3.8/dist-packages/uvicorn/middleware/proxy_headers.py", line 75, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/fastapi/applications.py", line 208, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/errors.py", line 181, in call
raise exc
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/errors.py", line 159, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.8/dist-packages/prometheus_fastapi_instrumentator/middleware.py", line 169, in call
raise exc
File "/usr/local/lib/python3.8/dist-packages/prometheus_fastapi_instrumentator/middleware.py", line 167, in call
await self.app(scope, receive, send_wrapper)
File "/usr/local/lib/python3.8/dist-packages/starlette/exceptions.py", line 82, in call
raise exc
File "/usr/local/lib/python3.8/dist-packages/starlette/exceptions.py", line 71, in call
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 656, in call
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 259, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 61, in app
response = await func(request)
File "/usr/local/lib/python3.8/dist-packages/fastapi/routing.py", line 226, in app
raw_response = await run_endpoint_function(
File "/usr/local/lib/python3.8/dist-packages/fastapi/routing.py", line 159, in run_endpoint_function
return await dependant.call(**values)
File "/opt/doods/api.py", line 47, in detect
detect_response = self.doods.detect(detect_request)
File "/opt/doods/doods.py", line 139, in detect
ret = detector.detect(image)
File "/opt/doods/detectors/tflite.py", line 78, in detect
input_data = (np.float32(self.input_data) - input_mean) / input_std
AttributeError: 'TensorflowLite' object has no attribute 'input_data''`
from hassio-addons.
Related Issues (18)
- Icon missin on Supervisor Dashboard HOT 9
- "Repostitory structure for master is not compliant" Error HOT 6
- You should be able to set the config in there with HOT 9
- passing USB Coral to container via Hassio
- coral pcie not recognized HOT 8
- Add on needs way to pass dev/bus/usb for EdgeTPU HOT 11
- Unable to start the add-on HOT 1
- Exception: 'TensorflowLite' object has no attribute 'input_data' HOT 2
- 404 stream not found , but working with your proxy HOT 4
- Missing repository.yaml HOT 2
- Share folder mapping problems HOT 2
- DOODS does not start on boot HOT 3
- Memory used by the addon
- Error while setting up doods platform for image_processing HOT 4
- Port change to 8181 HOT 2
- Please add a cuda add-on ;) HOT 4
- Deprecated format after upgrade to supervisor 2021.02.5 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hassio-addons.