deepdetect
deepdetect copied to clipboard
feat: use DTO for NCNN init parameters
feat: use DTO for NCNN init parameters
refactor(dto): example service_create+ncnn
The Service Create call works, but most parameters doesn't.
Supported parameters are only those declared in the DTO files.
To not update all input/output connector code. This PR just convert the DTO into APIData to pass it to connector.
/!\ But beware if a parameters is not present in the DTO it will be ignored and will not be present in the generated APIData passed to the connectors. /!\
That's why we need first to fill the InputConnector and OutputConnector with all possible option from all type and all backends.
cmake .. -D USE_HTTP_SERVER_OATPP=ON -D USE_HTTP_SERVER=OFF -D USE_NCNN=ON -D USE_CAFFE=OFF -DUSE_COMMAND_LINE=OFF
Thanks, sounds simple. What do think about putting the backend DTOs headers into src/backends/ncnn/dto for instance for ncnn instead of within the higher level http/ dir ?
This pull request is now in conflict :(
This pull request is now in conflict :(
This pull request is now in conflict :(
This pull request is now in conflict :(
This pull request is now in conflict :(
This pull request is now in conflict :(
This pull request is now in conflict :(