Open aerenkaradag opened 1 year ago
Looks like everything completed successfully, you just need to open localhost:18081 after some time, needed to download modules and build TRT engines.
You can try running docker attach insightface-rest-gpu0-trt
to watch what's going on inside container
Thanks a lot for your answer. When i ran the command you said, i was able to reach error logs. The problem caused by the versions of 'pydantic' library, some modules are only available in old versions and some of them are only in newer version. So, i changed the first lines of InsightFace-REST/src/api_trt/settings.py
as follows:
from pydantic.v1.env_settings import BaseSettings
from pydantic.v1.validators import str_validator
Now, i can use pydantic-2.0.2 without any problem.
Thanks a lot for your answer. When i ran the command you said, i was able to reach error logs. The problem caused by the versions of 'pydantic' library, some modules are only available in old versions and some of them are only in newer version. So, i changed the first lines of
InsightFace-REST/src/api_trt/settings.py
as follows:
from pydantic.v1.env_settings import BaseSettings
from pydantic.v1.validators import str_validator
Now, i can use pydantic-2.0.2 without any problem.
Hm, that's interesting, thanks! I'll update repo for compatibility with new pydantic version shortly.
UPDATE: Fixed, should work out of the box for now. I have tested new pydantic_settings.BaseSettings, there seems to be some issues with parsing environment variables, though I haven't figured out yet if its a bug or some changes in class behavior.
I'm new to Docker, I installed Docker and Nvidia-container-toolkit on my computer. When I run
deploy_trt.sh
it starts and closes without any error. Choosing Log Level as DEBUG did not change the output. I also edited the n_gpu and n_workers parameters. What should I do to start the server?the output like this: