Code Monkey home page Code Monkey logo

Comments (19)

pospielov avatar pospielov commented on May 22, 2024 2

looks like this is really the problem of the old CPU:
tensorflow/tensorflow#18147 (comment)
We removed AVX2 support in our release, so it will work on the old CPUs, but it looks like your CPU even older as it doesn't support AVX.
The thing is it's difficult to replace the current version of Tensorflow with a version without AVX support, as there is not such version in pip that we use.
So, unfortunately, we won't support it. You can still try to build a version with alternative Tensorflow and share it with the community.

from compreface.

TonyTromp avatar TonyTromp commented on May 22, 2024 1

I have got it running without AVX on my nas using these wheel files: yaroslavvb/tensorflow-community-wheels#209. On the docker side, i override the command, like command: "tail -f /dev/null" so it doesnt crashloop, and then i docker exec into the container, installer the non-avx version and manually bringing up: uwsgi --ini uwsgi.ini . It seems to work fine on my NAS so far. But will keep posted if someone is interested.

here is what i did to get it work on non-AVX:

  1. edit the docker-compose file, so core doesnt crash
  compreface-core:
    restart: always
    image: ${registry}compreface-core:${CORE_VERSION}
    container_name: "compreface-core"
    command: "tail -f /dev/null"
    environment:
      - ML_PORT=3000
      - UWSGI_PROCESSES=${uwsgi_processes:-2}
      - UWSGI_THREADS=${uwsgi_threads:-1}
  1. the start the containers
docker-compose up -d
  1. replace TensorFlow with non-AVX version
pip remove tensorflow
wget https://tf.novaal.de/westmere/tensorflow-2.8.0-cp37-cp37m-linux_x86_64.whl
pip install tensorflow-2.8.0-cp37-cp37m-linux_x86_64.whl
pip install werkzeug==2.0.3
  1. Start uwsgi in backgroud and exit core container.
uwsgi --ini uwsgi.ini &
exit

from compreface.

pospielov avatar pospielov commented on May 22, 2024

Do other images start normally?

from compreface.

BluGeni avatar BluGeni commented on May 22, 2024

I thought so because I was able to navigate to the webpage and create a user and login. It just fails with a something went wrong when trying to test when uploading an image. I did change the external port for the web to be 8001 in the compose. Here is my compose output

Starting compreface-postgres-db ... done
Starting compreface-core        ... done
Starting compreface-api         ... done
Starting compreface-admin       ... done
Starting compreface-ui          ... done
Attaching to compreface-postgres-db, compreface-core, compreface-api, compreface-admin, compreface-ui
compreface-admin          | Listening for transport dt_socket at address: 5005
compreface-api            | Listening for transport dt_socket at address: 5005
compreface-core           | [uWSGI] getting INI configuration from uwsgi.ini
compreface-core           | *** Starting uWSGI 2.0.18 (64bit) on [Thu Feb 25 17:39:26 2021] ***
compreface-core           | compiled with version: 8.3.0 on 20 January 2021 11:36:38
compreface-core           | os: Linux-4.15.0-135-generic #139-Ubuntu SMP Mon Jan 18 17:38:24 UTC 2021
compreface-core           | nodename: 425a88b1bf62
compreface-core           | machine: x86_64
compreface-core           | clock source: unix
compreface-core           | pcre jit disabled
compreface-core           | detected number of CPU cores: 4
compreface-core           | current working directory: /app/ml
compreface-core           | detected binary path: /usr/local/bin/uwsgi
compreface-core           | setgid() to 33
compreface-core           | setuid() to 33
compreface-core           | your memory page size is 4096 bytes
compreface-core           | detected max file descriptor number: 1048576
compreface-core           | lock engine: pthread robust mutexes
compreface-core           | thunder lock: disabled (you can enable it with --thunder-lock)
compreface-core           | uwsgi socket 0 bound to TCP address 0.0.0.0:3000 fd 3
compreface-core           | Python version: 3.7.4 (default, Sep 12 2019, 15:40:15)  [GCC 8.3.0]
compreface-core           | Python main interpreter initialized at 0x56157ac28ff0
compreface-core           | python threads support enabled
compreface-core           | your server socket listen backlog is limited to 100 connections
compreface-core           | your mercy for graceful operations on workers is 60 seconds
compreface-core           | mapped 145840 bytes (142 KB) for 1 cores
compreface-core           | *** Operational MODE: single process ***
compreface-postgres-db    | 2021-02-25 17:39:25.836 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
compreface-postgres-db    | 2021-02-25 17:39:25.836 UTC [1] LOG:  listening on IPv6 address "::", port 5432
compreface-postgres-db    | 2021-02-25 17:39:25.863 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
compreface-postgres-db    | 2021-02-25 17:39:25.911 UTC [23] LOG:  database system was shut down at 2021-02-25 16:14:44 UTC
compreface-postgres-db    | 2021-02-25 17:39:25.958 UTC [1] LOG:  database system is ready to accept connections
compreface-ui             | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
compreface-ui             | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
compreface-ui             | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
compreface-ui             | 10-listen-on-ipv6-by-default.sh: /etc/nginx/conf.d/default.conf is not a file or does not exist, exiting
compreface-ui             | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
compreface-ui             | /docker-entrypoint.sh: Configuration complete; ready for start up
compreface-core exited with code 132
compreface-api            | 2021-02-25 17:39:40.880  INFO 8 --- [kground-preinit] o.h.validator.internal.util.Version      : HV000001: Hibernate Validator 6.1.5.Final
compreface-admin          |
compreface-admin          |   .   ____          _            __ _ _
compreface-admin          |  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
compreface-admin          | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
compreface-admin          |  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
compreface-admin          |   '  |____| .__|_| |_|_| |_\__, | / / / /
compreface-admin          |  =========|_|==============|___/=/_/_/_/
compreface-admin          |  :: Spring Boot ::        (v2.3.4.RELEASE)
compreface-admin          |
compreface-admin          | 2021-02-25 17:39:43.422  INFO 6 --- [kground-preinit] o.h.validator.internal.util.Version      : HV000001: Hibernate Validator 6.1.5.Final
compreface-admin          | 2021-02-25 17:39:43.816  INFO 6 --- [           main] com.exadel.frs.FrsApplication            : Starting FrsApplication v0.0.1-SNAPSHOT on cccf479a9415 with PID 6 (/home/app.jar started by root in /)
compreface-admin          | 2021-02-25 17:39:43.822 DEBUG 6 --- [           main] com.exadel.frs.FrsApplication            : Running with Spring Boot v2.3.4.RELEASE, Spring v5.2.9.RELEASE
compreface-admin          | 2021-02-25 17:39:43.822  INFO 6 --- [           main] com.exadel.frs.FrsApplication            : The following profiles are active: dev
compreface-api            |
compreface-api            |   .   ____          _            __ _ _
compreface-api            |  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
compreface-api            | ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
compreface-api            |  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
compreface-api            |   '  |____| .__|_| |_|_| |_\__, | / / / /
compreface-api            |  =========|_|==============|___/=/_/_/_/
compreface-api            |  :: Spring Boot ::        (v2.3.4.RELEASE)
compreface-api            |
compreface-api            | 2021-02-25 17:39:45.773  INFO 8 --- [           main] c.e.f.c.t.TrainServiceApplication        : The following profiles are active: dev
compreface-admin          | 2021-02-25 17:39:51.905  INFO 6 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFERRED mode.
compreface-api            | 2021-02-25 17:39:52.022  INFO 8 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
compreface-api            | 2021-02-25 17:39:52.574  INFO 8 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 490ms. Found 3 JPA repository interfaces.
compreface-admin          | 2021-02-25 17:39:52.706  INFO 6 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 765ms. Found 6 JPA repository interfaces.
compreface-admin          | 2021-02-25 17:39:56.241  INFO 6 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
compreface-admin          | 2021-02-25 17:39:56.281  INFO 6 --- [           main] o.a.coyote.http11.Http11NioProtocol      : Initializing ProtocolHandler ["http-nio-8080"]
compreface-admin          | 2021-02-25 17:39:56.290  INFO 6 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
compreface-admin          | 2021-02-25 17:39:56.291  INFO 6 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.38]
compreface-api            | 2021-02-25 17:39:56.342  INFO 8 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=7fe99409-0211-32ec-ba00-c84ab0547cba
compreface-admin          | 2021-02-25 17:39:56.597  INFO 6 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
compreface-admin          | 2021-02-25 17:39:56.598  INFO 6 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 12421 ms
compreface-admin          | 2021-02-25 17:39:57.928  INFO 6 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
compreface-postgres-db    | 2021-02-25 17:39:58.229 UTC [31] FATAL:  unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0
compreface-admin          | 2021-02-25 17:39:58.524  INFO 6 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
compreface-postgres-db    | 2021-02-25 17:39:58.631 UTC [33] FATAL:  unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0
compreface-postgres-db    | 2021-02-25 17:39:58.670 UTC [35] FATAL:  unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0
compreface-api            | 2021-02-25 17:40:01.890  INFO 8 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
compreface-api            | 2021-02-25 17:40:01.932  INFO 8 --- [           main] o.a.coyote.http11.Http11NioProtocol      : Initializing ProtocolHandler ["http-nio-8080"]
compreface-api            | 2021-02-25 17:40:01.939  INFO 8 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
compreface-api            | 2021-02-25 17:40:01.940  INFO 8 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.38]
compreface-api            | 2021-02-25 17:40:02.236  INFO 8 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
compreface-api            | 2021-02-25 17:40:02.236  INFO 8 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 16275 ms
compreface-admin          | 2021-02-25 17:40:03.959  INFO 6 --- [           main] liquibase.executor.jvm.JdbcExecutor      : SELECT COUNT(*) FROM public.databasechangeloglock
compreface-admin          | 2021-02-25 17:40:03.965  INFO 6 --- [           main] liquibase.executor.jvm.JdbcExecutor      : SELECT COUNT(*) FROM public.databasechangeloglock
compreface-admin          | 2021-02-25 17:40:03.969  INFO 6 --- [           main] liquibase.executor.jvm.JdbcExecutor      : SELECT LOCKED FROM public.databasechangeloglock WHERE ID=1
compreface-admin          | 2021-02-25 17:40:04.058  INFO 6 --- [           main] l.lockservice.StandardLockService        : Successfully acquired change log lock
compreface-api            | 2021-02-25 17:40:07.827  INFO 8 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
compreface-api            | 2021-02-25 17:40:09.088  INFO 8 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.21.Final
compreface-api            | 2021-02-25 17:40:09.105  INFO 8 --- [           main] org.hibernate.cfg.Environment            : HHH000205: Loaded properties from resource hibernate.properties: {hibernate.bytecode.use_reflection_optimizer=false, hibernate.types.print.banner=false}
compreface-admin          | 2021-02-25 17:40:09.767  INFO 6 --- [           main] liquibase.executor.jvm.JdbcExecutor      : SELECT MD5SUM FROM public.databasechangelog WHERE MD5SUM IS NOT NULL LIMIT 1
compreface-admin          | 2021-02-25 17:40:09.782  INFO 6 --- [           main] liquibase.executor.jvm.JdbcExecutor      : SELECT COUNT(*) FROM public.databasechangelog
compreface-admin          | 2021-02-25 17:40:09.784  INFO 6 --- [           main] l.c.StandardChangeLogHistoryService      : Reading from public.databasechangelog
compreface-admin          | 2021-02-25 17:40:09.784  INFO 6 --- [           main] liquibase.executor.jvm.JdbcExecutor      : SELECT * FROM public.databasechangelog ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC
compreface-admin          | 2021-02-25 17:40:10.275  INFO 6 --- [           main] l.lockservice.StandardLockService        : Successfully released change log lock
compreface-api            | 2021-02-25 17:40:10.410  INFO 8 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
compreface-admin          | 2021-02-25 17:40:10.867  INFO 6 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
compreface-admin          | 2021-02-25 17:40:10.906  INFO 6 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
compreface-admin          | 2021-02-25 17:40:11.269  INFO 6 --- [         task-1] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
compreface-admin          | 2021-02-25 17:40:11.881  INFO 6 --- [         task-1] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.21.Final
compreface-admin          | 2021-02-25 17:40:13.496  INFO 6 --- [         task-1] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
compreface-api            | 2021-02-25 17:40:13.579  INFO 8 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
compreface-postgres-db    | 2021-02-25 17:40:13.858 UTC [37] FATAL:  unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0
compreface-api            | 2021-02-25 17:40:14.193  INFO 8 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
compreface-postgres-db    | 2021-02-25 17:40:14.297 UTC [39] FATAL:  unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0
compreface-postgres-db    | 2021-02-25 17:40:14.328 UTC [41] FATAL:  unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0
compreface-api            | 2021-02-25 17:40:14.407  INFO 8 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL10Dialect
compreface-admin          | 2021-02-25 17:40:14.862  INFO 6 --- [         task-1] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL10Dialect
compreface-admin          | 2021-02-25 17:40:17.726  INFO 6 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 2 endpoint(s) beneath base path '/actuator'
compreface-admin          | 2021-02-25 17:40:18.506  INFO 6 --- [           main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
compreface-api            | 2021-02-25 17:40:19.927  INFO 8 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
compreface-api            | 2021-02-25 17:40:19.988  INFO 8 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
compreface-admin          | 2021-02-25 17:40:20.740  INFO 6 --- [         task-1] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
compreface-admin          | 2021-02-25 17:40:20.794  INFO 6 --- [         task-1] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
compreface-admin          | 2021-02-25 17:40:24.774  INFO 6 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/v2/api-docs'], []
compreface-admin          | 2021-02-25 17:40:24.787  INFO 6 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/configuration/ui'], []
compreface-admin          | 2021-02-25 17:40:24.787  INFO 6 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/swagger-resources/**'], []
compreface-admin          | 2021-02-25 17:40:24.787  INFO 6 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/configuration/**'], []
compreface-admin          | 2021-02-25 17:40:24.792  INFO 6 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/swagger-ui**'], []
compreface-admin          | 2021-02-25 17:40:24.803  INFO 6 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/webjars/**'], []
compreface-admin          | 2021-02-25 17:40:24.803  INFO 6 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/lms/**'], []
compreface-admin          | 2021-02-25 17:40:25.031  INFO 6 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: OrRequestMatcher [requestMatchers=[Ant [pattern='/oauth/token'], Ant [pattern='/oauth/token_key'], Ant [pattern='/oauth/check_token']]], [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@42dd7d82, org.springframework.security.web.context.SecurityContextPersistenceFilter@432a6a69, org.springframework.security.web.header.HeaderWriterFilter@2336cd91, org.springframework.security.web.authentication.logout.LogoutFilter@185339ed, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@36d7a68a, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@3fe98084, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1c3d9e28, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@2838eb, org.springframework.security.web.session.SessionManagementFilter@2e0fdc83, org.springframework.security.web.access.ExceptionTranslationFilter@7c206b14, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@1d556461]
compreface-admin          | 2021-02-25 17:40:25.117  INFO 6 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfiguration$NotOAuthRequestMatcher@511d5e6e, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@7a78d380, org.springframework.security.web.context.SecurityContextPersistenceFilter@2a65e237, org.springframework.security.web.header.HeaderWriterFilter@12266084, org.springframework.security.web.authentication.logout.LogoutFilter@41f686af, org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter@2444c3df, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@3a48c398, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1b4ba615, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@2e1291a4, org.springframework.security.web.session.SessionManagementFilter@6da646b8, org.springframework.security.web.access.ExceptionTranslationFilter@2676d96a, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@792e8181]
compreface-admin          | 2021-02-25 17:40:25.131  INFO 6 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@44a14de0, org.springframework.security.web.context.SecurityContextPersistenceFilter@2b974137, org.springframework.security.web.header.HeaderWriterFilter@189633f2, org.springframework.security.web.authentication.logout.LogoutFilter@13374ca6, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@7402c49f, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@5d22604e, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@50fd739d, org.springframework.security.web.session.SessionManagementFilter@76b05c0, org.springframework.security.web.access.ExceptionTranslationFilter@299eca90, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@7434ee13]
compreface-admin          | 2021-02-25 17:40:26.962  INFO 6 --- [           main] o.a.coyote.http11.Http11NioProtocol      : Starting ProtocolHandler ["http-nio-8080"]
compreface-admin          | 2021-02-25 17:40:27.110  INFO 6 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
compreface-admin          | 2021-02-25 17:40:27.121  INFO 6 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
compreface-admin          | 2021-02-25 17:40:27.247  INFO 6 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
compreface-admin          | 2021-02-25 17:40:27.521  INFO 6 --- [           main] s.d.s.w.s.ApiListingReferenceScanner     : Scanning for api listing references
compreface-admin          | 2021-02-25 17:40:28.636  INFO 6 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: regenerateApiKeyUsingPUT_1
compreface-admin          | 2021-02-25 17:40:28.971  INFO 6 --- [           main] DeferredRepositoryInitializationListener : Triggering deferred initialization of Spring Data repositories…
compreface-api            | 2021-02-25 17:40:29.843  INFO 8 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 2 endpoint(s) beneath base path '/actuator'
compreface-api            | 2021-02-25 17:40:30.410  INFO 8 --- [           main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
compreface-admin          | 2021-02-25 17:40:30.464  INFO 6 --- [           main] DeferredRepositoryInitializationListener : Spring Data repositories initialized!
compreface-admin          | 2021-02-25 17:40:30.588  INFO 6 --- [           main] com.exadel.frs.FrsApplication            : Started FrsApplication in 53.23 seconds (JVM running for 60.305)
compreface-api            | 2021-02-25 17:40:30.722  WARN 8 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
compreface-api            | 2021-02-25 17:40:30.723  INFO 8 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
compreface-api            | 2021-02-25 17:40:30.784  WARN 8 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
compreface-api            | 2021-02-25 17:40:30.784  INFO 8 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
compreface-api            | 2021-02-25 17:40:31.725  INFO 8 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
compreface-api            | 2021-02-25 17:40:33.695  INFO 8 --- [           main] o.a.coyote.http11.Http11NioProtocol      : Starting ProtocolHandler ["http-nio-8080"]
compreface-api            | 2021-02-25 17:40:34.021  INFO 8 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
compreface-api            | 2021-02-25 17:40:34.029  INFO 8 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
compreface-api            | 2021-02-25 17:40:34.302  INFO 8 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Found 2 custom documentation plugin(s)
compreface-api            | 2021-02-25 17:40:34.833  INFO 8 --- [           main] s.d.s.w.s.ApiListingReferenceScanner     : Scanning for api listing references
compreface-api            | 2021-02-25 17:40:36.105  INFO 8 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: recognizeUsingPOST_1
compreface-api            | 2021-02-25 17:40:36.234  INFO 8 --- [           main] s.d.s.w.s.ApiListingReferenceScanner     : Scanning for api listing references
compreface-api            | 2021-02-25 17:40:36.327  INFO 8 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: addFacesUsingPOST_1
compreface-api            | 2021-02-25 17:40:36.340  INFO 8 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: deleteFaceByIdUsingDELETE_1
compreface-api            | 2021-02-25 17:40:36.349  INFO 8 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: deleteFacesUsingDELETE_1
compreface-api            | 2021-02-25 17:40:36.356  INFO 8 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: findFacesByModelUsingGET_1
compreface-api            | 2021-02-25 17:40:36.388  INFO 8 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: recognizeUsingPOST_2
compreface-api            | 2021-02-25 17:40:36.409  INFO 8 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: migrateUsingPOST_1
compreface-api            | 2021-02-25 17:40:36.427  INFO 8 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_1
compreface-api            | 2021-02-25 17:40:36.433  INFO 8 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_2
compreface-api            | 2021-02-25 17:40:36.444  INFO 8 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: recognizeUsingPOST_3
compreface-api            | 2021-02-25 17:40:36.522  INFO 8 --- [           main] c.e.f.c.t.TrainServiceApplication        : Started TrainServiceApplication in 62.406 seconds (JVM running for 68.549)

from compreface.

pospielov avatar pospielov commented on May 22, 2024

I don't see any errors in this log. Could you try to recognize a face and then send logs after the error appears?

from compreface.

BluGeni avatar BluGeni commented on May 22, 2024

2 things that stick out in the above:
compreface-core exited with code 132
compreface-postgres-db | 2021-02-25 17:40:13.858 UTC [37] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0

compreface-api            | 2021-02-25 18:45:36.431  INFO 8 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
compreface-api            | 2021-02-25 18:45:36.431  INFO 8 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
compreface-api            | 2021-02-25 18:45:36.459  INFO 8 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 27 ms
compreface-api            | 2021-02-25 18:45:39.168 ERROR 8 --- [nio-8080-exec-1] c.e.f.c.t.h.ResponseExceptionHandler     : Multipart exception occurred
compreface-api            |
compreface-api            | feign.RetryableException: compreface-core executing POST http://compreface-core:3000/scan_faces
compreface-api            |     at feign.FeignException.errorExecuting(FeignException.java:249)
compreface-api            |     at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:120)
compreface-api            |     at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:80)
compreface-api            |     at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:100)
compreface-api            |     at com.sun.proxy.$Proxy147.scanFaces(Unknown Source)
compreface-api            |     at com.exadel.frs.core.trainservice.controller.RecognizeController.recognize(RecognizeController.java:81)
compreface-api            |     at com.exadel.frs.core.trainservice.controller.RecognizeController$$FastClassBySpringCGLIB$$52b4c4f5.invoke(<generated>)
compreface-api            |     at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
compreface-api            |     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
compreface-api            |     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
compreface-api            |     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
compreface-api            |     at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:119)
compreface-api            |     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
compreface-api            |     at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
compreface-api            |     at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
compreface-api            |     at com.exadel.frs.core.trainservice.controller.RecognizeController$$EnhancerBySpringCGLIB$$23bc8de1.recognize(<generated>)
compreface-api            |     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
compreface-api            |     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
compreface-api            |     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
compreface-api            |     at java.base/java.lang.reflect.Method.invoke(Unknown Source)
compreface-api            |     at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
compreface-api            |     at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
compreface-api            |     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
compreface-api            |     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)
compreface-api            |     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)
compreface-api            |     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
compreface-api            |     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)
compreface-api            |     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)
compreface-api            |     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
compreface-api            |     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
compreface-api            |     at javax.servlet.http.HttpServlet.service(HttpServlet.java:652)
compreface-api            |     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
compreface-api            |     at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
compreface-api            |     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
compreface-api            |     at com.exadel.frs.core.trainservice.filter.SecurityValidationFilter.doFilter(SecurityValidationFilter.java:115)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
compreface-api            |     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
compreface-api            |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
compreface-api            |     at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
compreface-api            |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
compreface-api            |     at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:93)
compreface-api            |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
compreface-api            |     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
compreface-api            |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
compreface-api            |     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
compreface-api            |     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
compreface-api            |     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
compreface-api            |     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
compreface-api            |     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143)
compreface-api            |     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
compreface-api            |     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
compreface-api            |     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
compreface-api            |     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
compreface-api            |     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
compreface-api            |     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
compreface-api            |     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
compreface-api            |     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
compreface-api            |     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
compreface-api            |     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
compreface-api            |     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
compreface-api            |     at java.base/java.lang.Thread.run(Unknown Source)
compreface-api            | Caused by: java.net.UnknownHostException: compreface-core
compreface-api            |     at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
compreface-api            |     at java.base/java.net.Socket.connect(Unknown Source)
compreface-api            |     at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
compreface-api            |     at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
compreface-api            |     at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
compreface-api            |     at java.base/sun.net.www.http.HttpClient.<init>(Unknown Source)
compreface-api            |     at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
compreface-api            |     at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
compreface-api            |     at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
compreface-api            |     at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
compreface-api            |     at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
compreface-api            |     at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
compreface-api            |     at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)
compreface-api            |     at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
compreface-api            |     at feign.Client$Default.convertAndSend(Client.java:170)
compreface-api            |     at feign.Client$Default.execute(Client.java:73)
compreface-api            |     at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:110)
compreface-api            |     ... 71 common frames omitted
compreface-api            |
compreface-ui             | 192.168.1.145 - - [25/Feb/2021:18:45:39 +0000] "POST /api/v1/faces/recognize HTTP/1.1" 400 65 "http://192.168.1.9:8001/test-model?app=07508165-cbda-4580-bfe9-a6c823e6da6b&model=00ac4de3-3333-4afd-85dd-70d6c6928a61" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36"
``

from compreface.

gabor-udvari avatar gabor-udvari commented on May 22, 2024

Could you please add this info to the readme, maybe under a new requirements section? Please also add an example code how to check this, like lscpu | grep avx, this would help a lot of people. I first tried it on my 9 year old NAS which has an AMD N40L.

from compreface.

pospielov avatar pospielov commented on May 22, 2024

yes, it makes sense, we are preparing a new release now, I'll add this to the documentation in it.

from compreface.

SgtBatten avatar SgtBatten commented on May 22, 2024

Ahh, i seem to have stumbled upon this same issue. damn, lots more reading to do then.

from compreface.

hack2spider avatar hack2spider commented on May 22, 2024

I did some mods on my double take home assistant config where I tried to filter some cameras by adding zones and all of the sudden I get too many SQL variables .

and then when I check compreface containers I find this the the db #664
2021-11-19 17:47:40.957 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432

2021-11-19 17:47:40.957 UTC [1] LOG: listening on IPv6 address "::", port 5432

2021-11-19 17:47:40.970 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"

2021-11-19 17:47:40.998 UTC [24] LOG: database system was interrupted; last known up at 2021-11-19 17:40:38 UTC

2021-11-19 17:47:41.402 UTC [24] LOG: database system was not properly shut down; automatic recovery in progress

2021-11-19 17:47:41.410 UTC [24] LOG: redo starts at 0/16516A0

2021-11-19 17:47:41.427 UTC [24] LOG: invalid record length at 0/17707D8: wanted 24, got 0

2021-11-19 17:47:41.427 UTC [24] LOG: redo done at 0/17707A0

2021-11-19 17:47:41.427 UTC [24] LOG: last completed transaction was at log time 2021-11-19 17:42:39.048739+00

2021-11-19 17:47:41.570 UTC [1] LOG: database system is ready to accept connections

2021-11-19 17:47:59.166 UTC [31] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0

2021-11-19 17:47:59.480 UTC [33] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0

2021-11-19 17:47:59.488 UTC [35] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0

2021-11-19 17:48:03.673 UTC [37] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0

2021-11-19 17:48:04.119 UTC [39] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0

2021-11-19 17:48:04.136 UTC [41] FATAL: unsupported frontend protocol 1234.5680: server supports 2.0 to 3.0

2021-11-19 17:48:13.715 UTC [32] WARNING: there is no transaction in progress

the bellow log is from double take

error: SqliteError: too many SQL variables
at Database.prepare (/double-take/api/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
at module.exports.get (/double-take/api/src/controllers/match.controller.js:97:6)
at newFn (/double-take/api/node_modules/express-async-errors/index.js:16:20)
at Layer.handle [as handle_request] (/double-take/api/node_modules/express/lib/router/layer.js:95:5)
at next (/double-take/api/node_modules/express/lib/router/route.js:137:13)
at /double-take/api/src/middlewares/index.js:42:5
at newFn (/double-take/api/node_modules/express-async-errors/index.js:16:20)
at Layer.handle [as handle_request] (/double-take/api/node_modules/express/lib/router/layer.js:95:5)
at next (/double-take/api/node_modules/express/lib/router/route.js:137:13)
at middleware (/double-take/api/node_modules/express-validator/src/middlewares/check.js:16:13)
info: processing living_room: 4ddec8ae-d77e-471b-80c2-e1f000bbef91
info: done processing living_room: 4ddec8ae-d77e-471b-80c2-e1f000bbef91 in 0.13 sec
info: {
id: '4ddec8ae-d77e-471b-80c2-e1f000bbef91',
duration: 0.13,
timestamp: '2021-11-19T18:02:28.513Z',
attempts: 1,
camera: 'living_room',
zones: [],
matches: [],
misses: [],
unknown: {
name: 'unknown',
confidence: 23.46,
match: false,
box: { top: 71, left: 39, width: 85, height: 101 },
checks: [
'confidence too low: 23.46 < 60',
'box area too low: 8585 < 10000'
],
type: 'mqtt',
duration: 0.1,
detector: 'compreface',
filename: 'b9c91b94-0a34-43b6-9290-512d081adc75.jpg'
}
}
error: SqliteError: too many SQL variables
at Database.prepare (/double-take/api/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
at module.exports.get (/double-take/api/src/controllers/match.controller.js:97:6)
at newFn (/double-take/api/node_modules/express-async-errors/index.js:16:20)
at Layer.handle [as handle_request] (/double-take/api/node_modules/express/lib/router/layer.js:95:5)
at next (/double-take/api/node_modules/express/lib/router/route.js:137:13)
at /double-take/api/src/middlewares/index.js:42:5
at newFn (/double-take/api/node_modules/express-async-errors/index.js:16:20)
at Layer.handle [as handle_request] (/double-take/api/node_modules/express/lib/router/layer.js:95:5)
at next (/double-take/api/node_modules/express/lib/router/route.js:137:13)
at middleware (/double-take/api/node_modules/express-validator/src/middlewares/check.js:16:13

from compreface.

pospielov avatar pospielov commented on May 22, 2024

looks like a double-take error, see the logs:
at Database.prepare (/double-take/api/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21)
another reason to think this is a double-take - CompreFace doesn't use SQLite and this error looks like relates to this DB

from compreface.

hack2spider avatar hack2spider commented on May 22, 2024

Yes .. I noticed in the end it's not compreface as I have stopped compreface and docker-compose forced it up again however I can't find any logs in compreface containers.

Then I did the same with double take (deleted the image as well and volumes) reinstalled in Home assistant but still same issue ..

Then took anothe lxc and did a docker-compose on double take and it works .. so it must be related to Home Assistant .. or both .. funny enough I have installed nginx on home assistant to be able to access some containers behind .. I'm wondering if this caused some disruptions ...

from compreface.

felipecrs avatar felipecrs commented on May 22, 2024

I wonder if Coral support would help to circumvent this issue. I have an Intel J4125 Gemini Lake mini-pc, and it seems to lack support for AVX. When I boot it with the single container, it exists with just "AVX2 not detected".

image

from compreface.

felipecrs avatar felipecrs commented on May 22, 2024

About my last comment: I was using the Hass addon. It makes the AVX2 verification in the beginning of it.

However, disabling such verification leads me to localhost:3000 errors when using the frontend.

PS: more info at #583 (comment)

from compreface.

pospielov avatar pospielov commented on May 22, 2024

CompreFace doesn't support AVX2, it also doesn't support Google Coral, so it won't help. Also, CompreFace doesn't support ARM devices, so it won't work on Raspberry.
There is still a version of CompreFace that works only with AVX, without AVX2.
Here is the thread with discussion:
#651
You can ask them if there is a possibility to run CompreFace in Hass with only AVX

from compreface.

felipecrs avatar felipecrs commented on May 22, 2024

In fact, my situation is more like:

  1. I don't have either AVX or AVX2 (Intel J4125)
  2. But it's at least amd64
  3. For Google Coral, I know CompreFace does not support it, but I suppose there are chances that it will in future (#580)

So, my question would be more like:

Let's say in a remote future, CompreFace supports Google Coral: do you think that by using Google Coral I would be able to circumvent the fact that my CPU does not support AVX instructions?

from compreface.

pospielov avatar pospielov commented on May 22, 2024

Version with Google Coral will be based on Tensorflow Lite, so it will require AVX.
On another hand there was a thread somewhere where a guy successfully build CompreFace without AVX, just don't remember how.

from compreface.

felipecrs avatar felipecrs commented on May 22, 2024

Got it. Thank you!

from compreface.

dimmanramone avatar dimmanramone commented on May 22, 2024

I have got it running without AVX on my nas using these wheel files: yaroslavvb/tensorflow-community-wheels#209. On the docker side, i override the command, like command: "tail -f /dev/null" so it doesnt crashloop, and then i docker exec into the container, installer the non-avx version and manually bringing up: uwsgi --ini uwsgi.ini . It seems to work fine on my NAS so far. But will keep posted if someone is interested.

here is what i did to get it work on non-AVX:

  1. edit the docker-compose file, so core doesnt crash
  compreface-core:
    restart: always
    image: ${registry}compreface-core:${CORE_VERSION}
    container_name: "compreface-core"
    command: "tail -f /dev/null"
    environment:
      - ML_PORT=3000
      - UWSGI_PROCESSES=${uwsgi_processes:-2}
      - UWSGI_THREADS=${uwsgi_threads:-1}
  1. the start the containers
docker-compose up -d
  1. replace TensorFlow with non-AVX version
pip remove tensorflow
wget https://tf.novaal.de/westmere/tensorflow-2.8.0-cp37-cp37m-linux_x86_64.whl
pip install tensorflow-2.8.0-cp37-cp37m-linux_x86_64.whl
pip install werkzeug==2.0.3
  1. Start uwsgi in backgroud and exit core container.
uwsgi --ini uwsgi.ini &
exit

@TonyTromp Did you use a custom build? Is it possible to share your docker compose yaml? I tried with your instructions and I cannot make it work in my NAS.

from compreface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.