exadel-inc / CompreFace

Leading free and open-source face recognition system
https://exadel.com/accelerator-showcase/compreface/
Apache License 2.0
5.71k stars 775 forks source link

SOS!I need help #766

Open 2356731420 opened 2 years ago

2356731420 commented 2 years ago

Hello,I have two questions.

  1. how can i change 127,0.0.1:4200 to my ip:4200
  2. how can I change the 5Mb max size restriction.
pospielov commented 2 years ago
  1. Port 4200 is only for UI developers. If you just want to use CompreFace, follow our Getting Started guide: https://github.com/exadel-inc/CompreFace/blob/master/README.md#getting-started-with-compreface
  2. Here is the issue related to it: https://github.com/exadel-inc/CompreFace/issues/680
2356731420 commented 2 years ago
  1. Port 4200 is only for UI developers. If you just want to use CompreFace, follow our Getting Started guide: https://github.com/exadel-inc/CompreFace/blob/master/README.md#getting-started-with-compreface
  2. Here is the issue related to it: How can I remove the 5MB upload limit #680

Sorry. Firstly, I change the application.yml with 10Mb value to 100Mb, then use docker-compose up -d and sh start.h to build Compreface. But it still looks like have a 5Mb limit when I use the python-sdk. Is there something wrong with my operation? I'm sorry to bother you

pospielov commented 2 years ago

to build CompreFace you need:

  1. Run docker-compose build
  2. Run docker-compose up This is it. CompreFace will be on 8000 port. 4200 port is needed only for development, you shouldn't use it for production.
nvkhiem commented 2 years ago

To fix second issue:

    1. Edit file nginx.conf: Set client_max_body_size 50M;
    2. Edit file docker-compose.yml, add volumes to compreface-core:
            volumes:
                - nginx_conf_volume:/etc/nginx/conf.d
            nginx_conf_volume should be also declared on top of file:
            volumes:
                - nginx_conf_volume:
    3. Run command: docker-compose up
    4. Copy nginx.conf: docker cp /path/to/nginx.conf compreface-ui:/etc/nginx/conf.d
    5. Restart compose.