Comments (4)
Hi @SebastianStehle some answers below:
1. I am calling the server from a local service, that uses a self signed https certificate. Is it possible to turn off https validation to download the image from this service?
Rephrasing to make sure I understand correctly: fetching (png,jpg,...) images from self-signed certificate yields an error.
Two ways of fixing this I see:
- https://www.mail-archive.com/[email protected]/msg00227.html shows how to optionally tell libcurlpp not to check on the SSL certificate. This would require adding the option to https://github.com/jolibrain/deepdetect/blob/master/src/utils/httpclient.hpp#L39. Let us know whether you need this, could be added, though we never faced the need until now.
- Use let's encrypt to sign your certificate, if this is applicable
2. I am trying to figure out how to host this. My problem is that I would like to use it in a setup with multiple hosting options. My own kubernetes setup, but also cloud and so on. If I understand it properly the services are not persisted, right? They only exist in memory and are just a mapping to a model. So my only option would be to have a sidecar in kubernetes or find a solution how to make a network call in the container itself after service is already started? Calling the container from the outside does not seem to work, when you have multiple instances with unknown hostnames. Is there a good solution for that to setup a container?
You are correct the services are not persisted. However, the dede
exe has a --service_start_list
option that takes a file with the list of service creation JSON calls to execute upon startup.
Now, this may not be exactly straightforward to use with our provided Docker images since they do start the server without a service start file here: https://github.com/jolibrain/deepdetect/blob/master/docker/cpu.Dockerfile#L188
A solution here would be to build your own docker images, another would be to find a way to override the call upon startup, my personal knowledge of Docker does not extend far enough to tell you with certainty whether and how this is possible.
Don't hesitate if this does not fully answer your difficulties.
from deepdetect.
Thanks a lot for the fast answer.
-
Such an option (e.g. as environment variable) would be awesome. My users make a lot of weird things, so it is not only about local development.
-
I figured this out myself:
I have just created a script that I run in the background: https://github.com/Squidex/squidex-hosting/tree/master/development/deepdetect. This script then waits for the server and creates the service:
https://github.com/Squidex/squidex-hosting/blob/master/development/deepdetect/setup.sh
from deepdetect.
- Such an option (e.g. as environment variable) would be awesome. My users make a lot of weird things, so it is not only about local development.
In our way of structuring options, it might be an API parameter instead.
from deepdetect.
Fine for me as well...
from deepdetect.
Related Issues (20)
- Inconsistent predictons using refinedet model HOT 12
- Memory leak on constant /predict requests HOT 8
- Refinedet Tensorrt prediction fails HOT 7
- Memory leak on compressed predict requests with oatpp HOT 7
- Different prediction with tensorrt on refinedet model for the version v0.18.0 HOT 3
- getting error while training, .solverstate HOT 23
- Chain predictions swapped between images HOT 2
- Simsearch query segfault when using IVF indexes, but not default/flat index HOT 6
- On object detect training call, missing either test or train list causes a segfault
- dd_client not find in this path anyone help HOT 2
- How do I do a face recognition using this? HOT 2
- DeepDetect full rewrite in Pure Java
- 'OCR' object has no attribute 'histogram_equalization' HOT 13
- "best: -1" in predict behaves differently in torch models HOT 2
- Torch v1.12 requires libcupti* but nvidia/cuda:11.6.0-cudnn8-runtime-ubuntu20.04 doesn't include it
- Race condition / pthread error when predicting
- I have error build xgboost HOT 1
- Using `true` or `false` instead of `1` or `0` for query params for status or labels returns a internal server error HOT 1
- Graphics problem with tsne algorithm HOT 1
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 deepdetect.