compreface homeassistant

A "motion" binary sensor entity per camera/zone/object. So maybe in Windows/MacOS, compreface would be quicker with named volumes? Credit to this guide. Problem is that the VM consumes a lot of resources respect to the LXC container. Hi! Is the key field required, and does that mean I need to sign up for an account? please take into account that on average Home Assistant users are not running on very powerful systems with tons of RAM, so this might be a problem for an 8GB system with other apps/addons running. ago Yep, that did it. window.__mirage2 = {petok:"xpbrEXDfe2_kg_fhQt6XSjXo5RRiSmIcmCWw5mbheig-1800-0"}; The main problem is, that unraid user can't change the behavior of how the docker process works. In an optimistic scenario, I'll publish it this week and write a short description of how to run it here. Once installed, Double Take gets the snapshots from Frigate, and passes them to CompreFace for recognition, then it processes the result and creates HA sensors to do the automations. The apps can also be used to send your location home to use presence detection as part of your automations. But this looks like a hack, not a normal implementation. and our For more information, please see our https://forum.proxmox.com/threads/docker-in-lxc-container.45204/ You can specify a linked_motion_sensor in the Home Assistant HomeKit configuration for each camera. All rights reserved. It's a pity these users have to revert to an inferior solution like DeepStack, they deserve CompreFace, I hope you can understand this and help us reach the objective. A single-container build of Compreface, so we can create an Home Assistant addon for Double Take users, that right now are using DeepStack only because there's an addon available, while we recommend Compreface for best recognition results. It just seems that every docker container on Unraid (of which there are thousands) all use bind mounts to separate application from data. Reddit and its partners use cookies and similar technologies to provide you with a better experience. It doesn't sound like there is in this case, but it's a little more a pain if you've got existing/other containers you want to preserve (as you start having to copy stuff about). But I don't think this is a common operation. I found out that when using ZFS, and you install docker in a LXC container, docker will revert to VFS for compatibility issues with overlay2 and ZFS. After initial onboarding, these options can be changed in the user interface by clicking on Configuration in the sidebar and clicking on General, or by manually editing them in the Home Assistant configuration file called configuration.yaml. This parameter allows you to override the name of your image_processing entity. . Strange is, if i exec into the Container and set chmod to 755 I still get the same errors. After the container went up, I used compose to spin up the service using this: As soon as it starts unpacking, I noticed the storage being consumed very very fast, and the process interrupted several times with out of disk errors. Double Take says it can use opencv, but my noobish brain hasn't wrapped around what opencv does for double take or compreface. I've never tried it within a LXC container though. I would like to put them with docker developers in one room and they argue with each other :) I created Compreface it in its own container and it went well. The LXC container I used for Compreface is a clean and minimal Debian 11, headless, only openssh+docker+compose plugin. In this case, you have to run CompreFace himself, but there is still an integration with HA. 1 yr. ago To be honest, I have never used home assistant. but in the single-image version, it could actually be optimized since it's not the typical one that will be built, right? Thanks. An image_processing.detect_face event is fired for each recognized face, and the event data provides the confidence of recognition, the name of the person, the . docker run -it --name=CompreFace -v compreface-db:/var/lib/postgresql/data -p 8000:80 exadel/compreface:0.6.1. With the help of @bentasker and @alexdelprete we got the Home Assistant add-on working with persistent storage! https://forums.unraid.net/topic/88920-named-volumes-vs-bind-mount/ I tested with Postgres 11.5 and Postgres 13.5. Why is it taking up so much space? I have written the unraid docker templates for double-take and facebox, but because unraid did not support docker-compose the users are stuck to a command-line installation of compreface, which isn't ideal for the average user. https://forums.unraid.net/topic/88920-named-volumes-vs-bind-mount/, https://stackoverflow.com/questions/64629569/docker-bind-mount-directory-vs-named-volume-performance-comparison, compreface-core exits with code 132 during startup, https://github.com/exadel-inc/CompreFace/blob/master/docs/Installation-options.md#single-docker-container, https://docs.docker.com/storage/storagedriver/vfs-driver/, https://docs.docker.com/storage/storagedriver/overlayfs-driver/, https://forum.proxmox.com/threads/docker-in-lxc-container.45204/, https://forum.proxmox.com/threads/docker-lxc-unprivileged-container-on-proxmox-7-with-zfs.99796/, https://forum.proxmox.com/threads/another-docker-experience-on-proxmox.84770/. You need to create a named bind mount: And then use it as named volume during start: it is great to have only one container for people working on some functionalities and allow only one container Available for free at home-assistant.io. Valid options for unit_system are us_customary or metric. Thanks a lot for making all this possible. I'm using double take with frigate and compreface. How the vfs storage driver works @bigbangus CompreFace uses named volumes by default because this is the only way it can work for everyone. How to run: When set, this string will override the default stream Now restart Home Assistant. For advanced usecases, this behavior can be changed with the RTSP URL CompreFace is open-source real-time facial recognition software released under the Apache 2.0 license. By rejecting non-essential cookies, Reddit may still use certain cookies to ensure the proper functionality of our platform. Because I didn't find any reference in the documentation about EXTERNAL_DB, etc. Privacy Policy. Exadel CompreFace is a free and open-source face recognition service that can be easily integrated into any system without prior machine learning skills. and our Running Home Assistant Core directly on Windows is not supported. multiple Frigate instances are configured, the user must explicitly specify It looks like this storage driver uses disk space in a very non-optimal way. and share results? Use the camera name in the stream URL, converting it to lowercase first: The Frigate integration seamlessly supports the use of multiple Frigate servers. As an alternative, Home Assistant OS can be installed in a Linux guest VM. details. Apparently I can't access port 8000 from Nabucasa remote UI. To install: Use HACS to install the integration: As you can see here, DoubleTake is the only addon that @jakowenko has been able to implement, we are waiting for a single container version of CompreFace now so users can have the better choice. Have a question about this project? If you enable system_log events: you can create an automation to receive notifications on Facebox errors: The Facebox integration was introduced in Home Assistant 0.7, and it's used by, Ringo_Starr recognised with probability {{ trigger.event.data.confidence }}, trigger.event.data.service_data.file_path. It would be ideal to have it in a single container that can pulled from the App store template. 2021-11-20 04:04:05,942 INFO success: compreface-postgres-db entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) I think it doesn't make sense to redo everything again, as it depends on how the specific docker service is built. I created a new LXC container on Proxmox, 20GB of space, Debian 11, updated with latest patches: 700MB more or less before the setup of Compreface. topic_prefix and client_id parameters must be set differently per server. By clicking Sign up for GitHub, you agree to our terms of service and I was just trying to show it works with binding when using docker compose so why can't it work that way with templates in Unraid. Obviously we'll recommend creating a persistent storage for data, so the creation of a volume. Docker in its documentation recommends using named volumes because of portability. Single container version of CompreFace isn't tested by a standard QA process. installation instructions for :). Home Assistant offers four different installation methods. So that must be a problem with the unraid docker system. Process incoming data from sources that provide raw data, like MQTT, rest sensor or the command_line sensor. https://forum.proxmox.com/threads/another-docker-experience-on-proxmox.84770/. Installation Preparation The Frigate integration requires the mqtt integration to be installed and manually configured first. Thanks for confirming. Facebox runs in a Docker container and it is recommended that you run this container on a x86 machine with a minimum of 2 GB RAM (an ARM version is not available). Are you sure you want to create this branch? It's working beautifully but this kind of setup is unsupported unfortunately so users are reverting to DeepStack. Is there any good tutorials on getting this configured properly with HA? If I optimize it, it will be harder to update it if we update another docker files. Runs great on Unraid with default FaceNet and arcface-r100-gpu. @bigbangus: the reason for this ticket and @pospielov work with a single container was to bring compreface to more users. today at 04:06:59 2021-11-20 03:06:59.579 UTC [45] FATAL: data directory "/var/lib/postgresql/data" has invalid permissions Double Take says it can use opencv, but my noobish brain hasn't wrapped around what opencv does for double take or compreface. So basically the only difference is with the deploy method. https://docs.docker.com/storage/storagedriver/vfs-driver/. Thank you so much @pospielov for getting this single container version working. But as it's not open source, you can't check it. So the majority of users will default to deepstack with reportedly poor recognition performance when pairing frigate with double take for facial recognition on rtsp feeds. You dont need prior machine learning skills to set up and use CompreFace. By accepting all cookies, you agree to our use of cookies to deliver and maintain our services and site, improve the quality of Reddit, personalize Reddit content and advertising, and measure the effectiveness of advertising. :(, Now I created a VM to bypass the issue, so in there overlay2 is the default and Compreface installs correctly. For more information, please see our Docs are very well written. Under the Official add-ons section, you will find the File editor add-on. The Facebox password if you have set one. But, In the worst scenario it one of the services won't start, but. Available for free at home-assistant.io, CompreFace Version 0.5 is Live! If DB starts too slow - service will fail. We recommend using one of the following two methods: EFRS-1180: Moved postgres related stuff to the db folder, added max_detect_size to Configuration.md, EFRS-1082: Added max_detect_size variable, Exadel CompreFace is a leading free and open-source face recognition system, https://github.com/exadel-inc/CompreFace/releases, https://github.com/exadel-inc/compreface-javascript-sdk, https://github.com/exadel-inc/compreface-python-sdk, https://github.com/exadel-inc/compreface-net-sdk, Supports both CPU and GPU and is easy to scale up, Is open source and self-hosted, which gives you additional guarantees for data security, Can be deployed either in the cloud or on premises, Can be set up and used without machine learning expertise, Uses FaceNet and InsightFace libraries, which use state-of-the-art face recognition methods, Starts quickly with just one docker command, Use the CompreFace UI panel for convenient user roles and access management, Docker and Docker compose (or Docker Desktop), CompreFace could be run on most modern computers with. Please describe. I'm using mainly LXC containers to optimize resource usage. Reddit, Inc. 2023. Templating is a powerful feature that allows you to control information going into and out of the system. Thanks for your help so far! Hi all, it looks like I managed to make a single image of CompreFace Cookie Notice The system provides REST API for face recognition, face verification, face detection, landmark detection, mask detection, head pose detection, age, and gender recognition. Reddit and its partners use cookies and similar technologies to provide you with a better experience. I just tried the published image, and it works fine, at least the default one. where: If your host machine does not support AVX and you experience issues running the machinebox/facebox image there is an alternative image without AVX support available at machinebox/facebox_noavx(HINT: This image is currently not supported by machinebox and should only be used if necessary). As I reuse the images from DockerHub, I managed to make all official versions of Compreface: FaceNet(default), Arcface-R100, Arcface-R100-GPU, MobileNet, MobileNet-GPU, The environment variables are still actual from. Sorry, this post has been removed by the moderators of r/homeassistant. By rejecting non-essential cookies, Reddit may still use certain cookies to ensure the proper functionality of our platform. (not using app templates, but docker compose plugin). This step extracts and parses this data into a ML trainable format (hot encoded of categorical values, constant status publish vs state changes etc..). CompreFace addon will be used as an engine by the Double Take addon, right now we are using CompreFace in an unsupported way manually installing it into HA's docker. Still, it's not even 15Gb of disk space. But I have problems with the volume. This will make your configuration accessible via the network tab on your computer. Having an issue where Compreface is not connecting to Double Take. In case this is impossible or you still prefer using binding to a folder, there is a workaround for such case if you still want to mount the exact folder into the docker container: Then you'll have a single layer, and apt's files will never be included in it. Like compreface-db There are still some problems. Not sure if FaceBox makes any remote computations. Do you have an Idea left, or should I forward this to the Unraid DEvs? The Unraid GUI then creates the Docker Containers. Thanks for this container! Browsing event recordings with thumbnails, Browsing recordings by month, day, camera, time. It is used for: Formatting outgoing messages in, for example, the notify platforms and Alexa component. My setup is one 1080p camera, 6th gen i7, and GTX 960m. See here for a list of valid time zones. I also don't get at what stage you have this error, as I don't recall us installing or use anywhere jq tool. For more information, please see our Now lets make a change using the file editor: we are going to change the name, location, unit system, and time zone of your Home Assistant installation. Data is sent directly to your home, no access by third . It can work without volume, but then the user will lose all the data if he deletes the volume. On your machine with Docker, run the Facebox container with: You can run Facebox with a username and password by adding -e "MB_BASICAUTH_USER=my_username" -e "MB_BASICAUTH_PASS=my_password" but bear in mind that the integration does not encrypt these credentials and this approach does not guarantee security on an unsecured network. which server they are referring to. Note that no Home Assistant state is available to the This is why the Postgres data folder is empty inside your container and Postgres can't start. template, only the camera dict from Frigate. NOTE: Even if you camera does not support audio, audio will need to be enabled for Casting to be accepted. Any Ideas? It's hard to check what is wrong. today at 04:04:05 2021-11-20 03:04:05.953 GMT [14] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.auto.conf" Intro This Just Made Face Recognition So Much Better! That way VFS users won't see massive storage usage. We are recommending users to use CompreFace but the feedback is that it's too hard to install. To get to the add-on store, go to Settings > Add-ons. Homeassistant stores state data. So the majority of users will default to deepstack with reportedly poor recognition performance when pairing frigate with double take for facial recognition on rtsp feeds. the default stream port is otherwise not accessible to Home Assistant (e.g. In addition, MQTT must be enabled in your Frigate configuration file and Frigate must be connected to the same MQTT server as Home Assistant for many of the entities created by the integration to function. VFS gets used on a variety of devices/environments though because it's robust and supported (more or less) everywhere. We'll have to provide some instructions regarding this in the addon readme. So I think you can reduce this number. To install the optional companion Lovelace card, please see the separate Unfortunately we can only build an addon starting from a single container, while Compreface requires five separate containers, unlike DeepStack and Facebox. By default, docker does not copy image content into bind mounts. Currently it's a steep learning curve and requires the "compose.manager" plugin to work. Java consumes all the memory it sees, but garbage collector is quite effective and we tested CompreFace for memory leaks, looks like everything ok. Thank you. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Do you build it from scratch or use the published image? today at 04:04:05 2021-11-20 03:04:05.953 UTC [14] DETAIL: File "/var/lib/postgresql/data/PG_VERSION" is missing. The HomeKit integration randomly links one of the binary sensors (motion sensor entities) grouped with the camera device in Home Assistant. By rejecting non-essential cookies, Reddit may still use certain cookies to ensure the proper functionality of our platform. As alexdelprete does not build CompreFace in his servers, he just uses it. I'll add it to our backlog and try to make it as soon as we have resources for it. identifier used is the MQTT client_id parameter included in the configuration, Users will be happy to switch from DeepStack to CompreFace, like we suggested. Exadel CompreFace is a free and open-source face recognition GitHub project. The Frigate integration requires the mqtt integration to be installed and What is in logs? Yes 100% agree. You can use an automation to receive a notification when you train a face: Any errors on teaching will be reported in the logs. CompreFace: Free and open-source face recognition system from Exadel. Thanks for the work on this. Anyone have experience with Opencv and can point me in the right direction? and the permissions are set to 777. Now if something wrong - you can just restart one of the services, while others continue to work. It's configured at the docker level, so has a system wide effect, there are docs here - https://docs.docker.com/storage/storagedriver/overlayfs-driver/. I tested the Container on several Linux machines, and it runs fine. Double Take works with Home Assistant and gives you a single, unified interface to manage and train faces for facial recognition, making it incredibly easy to manage. template option. docker run -it --name=CompreFace -v compreface-db:/var/lib/postgresql/data -p 8000:80 exadel/compreface:0.6.1 To install: Note: You will also need I am working on it right now and already have the first working version. Switch entities to toggle detection, recordings and snapshots. Most tutorials for Double Take cover DeepStack. Starting from scratch with a clean install i am having issues where after some time (usually after interacting with deleting traned images or similar) something breaks and compreface cannot be recovered. I found some guides on how to install opencv in a docker but I didn't see how the Double Take config points to the opencv installation, it just asks to use it or not. This is important to keep the data if you delete the container. The first step is to install Home Assistant. I found some guides on how to install opencv in a docker but I didn't see how the Double Take config points to the opencv installation, it just asks to use it or not. Thanks and best regards. A lot of Unraid users have an Nvidia GPU for containers like plex so if you could include a method to pass extra parameters for the GPU custom builds also that would be ideal. Still, as I understand, the problem is that Unraid doesn't support it. Installation. Dont be concerned, you havent done anything wrong. Ok, what am I doing wrong? @pospielov is correct, this is because your docker instance is using VFS, it's quite inefficient compared to Overlay(2). Archived post. Go to the add-on store and look for Samba in the core section. RTMP is deprecated and it is recommended to switch to use RTSP restreams. Double-Take supports multiple detectors, works with Home Assistant and Frigate and has MQTT support and can train faces in just a matter of minutes!If you'd like to support me and future projects:Patreon:https://www.patreon.com/everythingsmarthomeLinks: Double-Take Add-ons: https://github.com/jakowenko/double-take-hassio-addonsDouble-Take Documentation: https://github.com/jakowenko/double-takeFrigate Documentation: https://docs.frigate.video/Home Assistant Actionable Notifications: https://youtu.be/v8fcwhko1k4Home Assistant Frigate Install: https://youtu.be/pqDCEZSVeRkHome Assistant Deepstack Install: https://youtu.be/XPs0J1EQhK0Buy Me a Coffee:https://www.buymeacoffee.com/EverySmartHomeWritten Article:https://everythingsmarthome.co.uk/howto/face-recognition-just-got-easier-home-assistant-double-take-guide/EVERYWHERE YOU CAN FIND ME:Everything Smart Home Community Discord:https://discord.everythingsmarthome.co.ukTwitter: https://twitter.com/EverySmartHome (@EverySmartHome)Instagram: https://www.instagram.com/EverythingSmartHome/Facebook: https://www.facebook.com/everythingsmarthomeofficial/#homeassistant #smarthome ________________________Some of the links above are affiliate links, where I earn a small commission if you click on the link and purchase an item. Essentially, it is a docker-based application that can be used as a standalone server or deployed in the cloud. firewall rules). manually configured first. Reddit, Inc. 2023. This is possible by sharing the configuration over the network using the Samba add-on, which can also be installed from the Home Assistant add-on store. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. If you have watched any videos about setting up Home Assistant using configuration.yaml (particularly ones that are old), you might notice your default configuration file is much smaller than what the videos show. We've covered how to do Face Recognition inside of Home Assistant in the past with Frigate and Deepstack, but now with Double Take, that process is even easier than ever before! On another hand, I reuse the images from DockerHub. The best way to integrate with Home Assistant is to use the official integration. Is it something that has to be done at docker's config level or in the compose file? any documentation on main branch for this case ? If you are using HassOS with the addon, the URL should be one of the following depending on which addon version you are using. For more information, visit our contributing guide, or create a discussion. configuration By accepting all cookies, you agree to our use of cookies to deliver and maintain our services and site, improve the quality of Reddit, personalize Reddit content and advertising, and measure the effectiveness of advertising. port (default: 8554) at :8554. I didn't configure Docker specifying VFS, and the installation of docker was made with their official procedure. and our Home Assistant will directly You need to install compreface and setup an account (it is a local account) swr973 1 mo. Also, your docker-compose file adds even more questions. These images are passed from the API to the configured detector(s) until a match is found that meets the configured requirements. In order for the live streams to function they need to be accessible on the RTSP I posted here because some time ago somebody posted CompreFace here and there was a good response. What version of postgres should we use on Unraid with compreface. Reddit, Inc. 2023. Available via HACS as a default repository. 021-11-20 03:06:59.579 GMT [45] LOG: skipping missing configuration file "/var/lib/postgresql/data/postgresql.auto.conf" Thanks for any suggestion. https://forum.proxmox.com/threads/docker-lxc-unprivileged-container-on-proxmox-7-with-zfs.99796/ Privacy Policy. Well occasionally send you account related emails. So just comment here, or hit me directly, if you have something to test. To do this, we are going to install an add-on from the Home Assistant add-on store: the File editor. I checked in the container info and found this: and we found these configuration env. :(, Here are the requested commands' outputs, and it seems you're right, but Proxmox is telling me that almost 38GB have been used after the setup. So I gave it 50GB, and restarted: it went up to 48GB, but it was running. The default behavior of named volume is that when it first created the volume, docker copies all content of the image to the volume with all permissions. For clips to be castable to media devices, audio is required and may need to be enabled for recordings. By accepting all cookies, you agree to our use of cookies to deliver and maintain our services and site, improve the quality of Reddit, personalize Reddit content and advertising, and measure the effectiveness of advertising. Performance of this storage driver is poor, and is not generally recommended for production use. Community chat. Feel like I am missing something. The steps below do not apply to Home Assistant Core & Container installations, for those types of installations, see here. Compared to docker-compose we can't guarantee that DB starts before servers. One month ago I told you we needed the CompreFace addon so users could have the best solution (I hate DeepStack). Click the folder icon in the top left of the file editor window to open the file browser sidebar. But in your case docker copied image content into the folder. But trying to answer your question, here is a repository that I think use home assistant and have integration with CompreFace: https://github.com/jakowenko/double-take Technology-wise, CompreFace has several advantages over similar free face recognition solutions. Powered by a worldwide community of tinkerers and DIY enthusiasts. If you are unsure of what to choose, follow the Raspberry Pi guide to install Home Assistant Operating System . Is it normal? You signed in with another tab or window. Archived post. https://github.com/exadel-inc/CompreFace/blob/master/docs/Installation-options.md#single-docker-container Add the following to this file (preferably at the very top, but it ultimately doesnt matter): Click the save icon in the top right to commit changes. You'll have 4 layers here, the first 3 of which will contain all of apt's files (so probably a couple hundred meg). Will it work for you? documentation for more This is the worst thing about the Single Container version. Amazing news Pospielov. Home Assistant Configuration Helper extension. We need to switch them to CompreFace, but we need a single container version to be able to do that. If I optimize it, it will be harder to update it if we update another docker files. Please let me know when it's ready so we can test it. Anyone use Opencv for Double Take or anything else?? The end output frame is munged to show for each state published for an actuator, the state of other sensors and actuators. The I'm no docker fan nor docker expert, where should I check for VFS config, and modify it with overlay2? I'm using double take with frigate and compreface. compreface-db - is the name of the volume. I found this thread that supports this idea: https://stackoverflow.com/questions/64629569/docker-bind-mount-directory-vs-named-volume-performance-comparison It consists of parts of original dockerfiles. I think this is not the first time somebody face this problem. and our I am working on it right now and already have the first working version. In order for multiple Frigate instances to function correctly, the If you removing it from HA then I'd just use standard install process as you're no longer limited to just 1 container, POSTGRES_URL=jdbc:postgresql://postgres.mydomain.lan:5432/comprefacedb. And this is the ending result of the setup: During the setup I had to enlarge the disk 4 times, up to 40GB. To improve the chances of finding a match, the processing of the images will repeat until the amount of retries is exhausted or a match is . Cookie Notice This is accessible via "Media Browser" on the left menu panel in Home Assistant. Just enter the URL used to access Frigate directly from your network. Cookie Notice The following example automation sends a notification when Ringo Star is recognized: The service facebox.teach_face can be used to teach Facebox faces. We're using Compreface as the recog engine of Double Take (an Home Assistant addon): https://github.com/jakowenko/double-take. variables: we were wondering if we could modify API_JAVA_OPTS with a lower value than -Xmx4g. I hope we can fine tune the memory requirement. But I got the idea - it should make it much easier to run with Home Assistant. Already on GitHub? This takes images of people/faces from frigate, passes them over to one of a few detectors to compare the face to a library of known ones (and supplies a UI for interaction) then passes the results on to home assistant to do whatever with (such as notifications.) I'll test once an unRAID app template is done. Again thank you for your effort and time. Note that if you are using the Proxy Addon, you do NOT point the integration at the proxy URL. great job. Has anyone used CompreFace with postgres 14? @pospielov are you after performance when you decided to use a named volume instead of a bind mount? Tagging also @jakowenko so we're all aligned. So with a docker-compose like this I would have a single image version of Compreface MobileNet version, with an external Postgres (they have to manually create an empty db, and the user/pw), and optimized regarding java memory requirements correct? I just finished migrating all my physical servers to a central proxmox server. Probably those 15 I installed are pretty simple and I don't notice the effect I had with Compreface. 23 alexdelprete 2 yr. ago I'm going to let the HA community know as well which should help drive traffic towards CompreFace. The facebox image processing platform allows you to detect and recognize faces in a camera image using Facebox. @pospielov a question: the addon is working fine, but some users let us notice that the addon is allocating 3-4GB of RAM at startup without releasing it. Many people do not want to expose Frigate to the web, so the integration creates some public API endpoints that can be used for notifications. The text was updated successfully, but these errors were encountered: I don't think that running CompreFace in one image is a good idea. So you also use bind mounts. After starting exadel/compreface:0.6.1-mobilenet container, the disk usage didn't increase. For more information, please see our https://github.com/exadel-inc/CompreFace/blob/master/docs/Installation-options.md#single-docker-container Scores for unknown people was ~70 so really not much room to work with. name=CompreFace - is the name of container Scan this QR code to download the app now. and is used like so: When a single Frigate instance is configured, the client-id parameter need not A tag already exists with the provided branch name. I second this also for the Unraid community. When But, @pospielov, the image does use a lot of layers, can I suggest removing some of those? This is how the Compreface XML looks. address that is derived from the default behavior described above. Unpacked exadel/compreface:0.6.1 image takes 4.32GB of disk space according to docker, exadel/compreface:0.6.1-mobilenet image takes only 2.35GB of disk space. Privacy Policy. Double-Take - Frigate - CompreFace . I don't know why - probably docker-compose does something similar to what I showed as a workaround. yes, correct If you only require face detection (number of faces) you can disable face recognition by adding -e "MB_FACEBOX_DISABLE_RECOGNITION=true" in the docker run command. I tried spinning up the single container version on a small debian server, a virtual machine on proxmox: I assigned 15GB of storage space, and during startup it went out of space. However RECLAIMABLE space is decreased, so I expect that this is the data I created before, so probably it still takes about 1Gb space more. and our We are going to help you make your first changes to configuration.yaml. //]]>. New comments cannot be posted and votes cannot be cast. And I'm not asking this just for myself, there are literally hundreds of users that are using Double Take + Frigate to do face recognition automation, and unfortunately they are forced to use DeepStack now because it's the only addon available, while advanced users are installing CompreFace manually, even if HA doesn't support it, because of its superior recognition capabilities. Thank you Pospielov, so now we have the base image without the named volume and using a variable the user can decide if he wants to use the internal postgres or the external one. There are still some problems. Use the image_processing.detect_face events to trigger automations, and breakout the trigger.event.data using a template. :). I see that they don't recommend named volumes. This may look like http://:5000/. docker system df To install Home Assistant Core on Windows, you will need to use the Windows Subsystem for Linux (WSL). On another hand, I reuse the images from DockerHub. and add the service for the database, for example, PostgreSQL: Also, working with mobilenet custom build will help as well, as it works with vectors of 128 numbers, not 512. docker ps --size that card. You can do so by either using the. VFS does not support copy-on-write (COW), so each time a new layer is created, it is a deep copy of its parent layer. I see one workaround - I can put a backup of all empty postgres data files somewhere and during startup check, if the /var/lib/postgresql/data folder is empty, then copy the backup files into it. All rights reserved. :(, Thanks for your reply and I hope you can deliver the single container version as soon as possible. :). When you set the exact folder to mount, docker created a bind mounts: It should be in a single container to reach a greater audience. See here for more information on whats included in that line. :). Powered by a worldwide community of tinkerers and DIY enthusiasts. So the only way to guarantee volume creating is using named volumes. As I know FaceBox has a limit of 100 faces in the face collection. Everything Smart Home 137K subscribers Join Subscribe Share 62K views 1 year ago #homeassistant #smarthome We've covered how to do Face. I don't know. All rights reserved. So far, so g. I'm setting up the holy trinity of smart home security consisting of HASS + Frigate + u/Jakowenko's Double Take. Cookie Notice So, if it won't work, this is a good idea to ask Unraid developers what is their best practices in this case. Thanks. for how to set these. To enable this platform in your installation, add the following to your configuration.yaml file: The IP address of your machine hosting Facebox. On the new page, open the add-on store tab. Home Assistant is open source home automation that puts local control and privacy first. But I believe it won't help. @corgan2222 Please contact Unraid team, ask what workaround they see in this case. Reddit, Inc. 2023. States to monitor Frigate performance, object counts for all zones and cameras. Strange thing is that I now started a Debian 11 virtual machine, and installed Compreface on it with no issue, because it's using overlay2 in there. We recommend a dedicated system to run Home Assistant. -v '/mnt/user/appdata/compreface':'/var/lib/postgresql/data':'rw' /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='CompreFace' --net='bridge' --privileged=true -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -p '8800:80/tcp' -v '/mnt/user/appdata/compreface':'/var/lib/postgresql/data':'rw' --runtime=nvidia 'exadel/compreface:0.6.1-arcface-r100-gpu'. jinja2 templates and has the camera dict Heres Whats New. Reddit and its partners use cookies and similar technologies to provide you with a better experience. @bentasker This dockerfile was created in such a non-optimal way to simplify its support. available for the template. See the MQTT integration documentation for more details. The Facebox username if you have set one. When the frigate/events topic is updated the API begins to process the snapshot.jpg and latest.jpg images from Frigate's API. After you have installed the add-on, click on Start. 21 pospielov 2 yr. ago Disclaimer - I'm CompreFace developer We researched a market of free/freemium solutions, so I can answer you :) Pros of CompreFace: There are no limits. Panel in Home Assistant recognize faces in a single container version to be accepted to sign up for account... Ask what workaround they see in this case your Home, no access by third should! Learning curve and requires the `` compose.manager '' plugin to work it & # x27 ; not. Alexdelprete we got the Home Assistant add-on working with persistent storage API begins to process the snapshot.jpg and latest.jpg from! Steps below do not apply to Home Assistant Core & container installations for! But docker compose plugin ), reddit may still use certain cookies ensure. Volumes because of portability dict Heres whats new but as it & # x27 ; s API what is logs. The only difference is with the camera device in Home Assistant Operating system wo n't start, but container. Commands accept both tag and branch names, so has a limit of 100 in... Documentation recommends using named volumes bentasker this dockerfile was created in such a non-optimal way to simplify its support is... And out of the services wo n't start, but issue and contact its maintainers and the community your Home. Documentation for more information, visit our contributing guide, or create a discussion guarantee volume creating is using volumes! 'S too hard to install Home Assistant the steps below do not apply to Assistant! Up to 48GB, but there is still an integration with HA n't Notice the effect I with... Alexa component configured detector ( s ) until a match is found that meets the configured requirements for zones! Simplify its support jinja2 templates and has the camera device in Home.. For example, the notify platforms and Alexa component was to bring to! N'T configure docker specifying VFS, and compreface homeassistant installation of docker was made with their official procedure there are here... Platform allows you to override the default and CompreFace installs correctly to double or. From scratch or use the official add-ons section, you will need to enabled! In his servers, he just uses it, audio is required and need! You delete the container at 04:04:05 2021-11-20 03:04:05.953 UTC [ 14 ] DETAIL file!, like mqtt, rest sensor or the command_line sensor see massive usage... Add it to our backlog and try to make it as soon possible... Driver is poor, and modify it with overlay2 here, or create a discussion ideal! Frigate/Events topic is updated the API to the LXC container I used for CompreFace is a free account. Made with their official procedure after you have something to test we needed the CompreFace addon so users could the! Your automations you after performance when you decided to use the published image to keep the if... Can deliver the single container was to bring CompreFace to more users recognition project. The left menu panel in Home Assistant Core directly on Windows is the. And recognize faces in a single container was to bring CompreFace to more users the. That provide raw data, so creating this branch may cause unexpected.... You are unsure of what to choose, follow the Raspberry Pi guide to install Home Assistant the steps do... Contact Unraid team, ask what workaround they see in this case, you havent anything... Curve and requires the `` compose.manager '' plugin to work takes 4.32GB of disk space, Assistant! Open an issue and contact its maintainers and the installation of docker was made their! Published for an actuator, the image does use a lot of layers, can I removing... For data, so has a system wide effect, there are Docs here https. The URL used to access Frigate directly from your network still an compreface homeassistant with HA supports this:! The image does use a lot of resources respect to the add-on store go... N'T recommend named volumes left menu panel in Home Assistant is to use CompreFace but feedback... Sensor entity per camera/zone/object today at 04:04:05 2021-11-20 03:04:05.953 UTC [ 14 DETAIL. Version to be able to do this, we are going to the... Showed as a workaround container installations, see here field required, and GTX 960m '' is missing here. Installed are pretty simple and I do n't recommend named volumes 're all aligned - you deliver... Used Home Assistant add-on working with persistent storage this in the face collection Running. For more information, please see our Docs are very well written double Take or CompreFace to get the... To provide you with a better experience this dockerfile was created in such a way. And what is in logs for CompreFace is a powerful feature that you! Or deployed in the right direction '' plugin to work this problem similar technologies provide! Until a match is found that meets the configured detector ( s ) until a match is found meets! Part of your machine hosting Facebox scenario, I have never used Home Assistant ) grouped with the docker... Starts too slow - service will fail check it hope we can fine tune the memory.. Core directly on Windows, you have something to test with persistent storage for data, so the only is. Compose file for your reply and I do n't Notice the effect I with! This looks like a hack, not a normal implementation having an issue CompreFace! 'Re using CompreFace as the recog engine of double Take or CompreFace required and need...: skipping missing configuration file `` /var/lib/postgresql/data/PG_VERSION '' is missing already have the best solution ( hate., in the worst thing about the single container version working with CompreFace that mean I to... In logs working version t check it that is derived from the Home Assistant OS be... And look for Samba in the worst thing about the single container version of Postgres should we use Unraid... It with overlay2 now and already have the best way to integrate with Home Assistant Core container... Even if you have to run Home Assistant creating is using named volumes remote UI grouped with the dict... Similar to what I showed as a workaround: //forums.unraid.net/topic/88920-named-volumes-vs-bind-mount/ I tested the compreface homeassistant info and this! Time somebody face this problem to enable this platform in your installation, the. Is otherwise not accessible to Home Assistant in the right direction directly, I... N'T increase a limit of 100 faces in the face collection data, so creating this?. Http: // < host >:5000/ not supported CompreFace is a clean and minimal Debian 11 headless. With default FaceNet and arcface-r100-gpu still use certain cookies to ensure the functionality! Match is found that meets the configured detector ( s ) until a match is found that meets configured. Of parts of original dockerfiles to test the docker level, so has limit! Your machine hosting Facebox or deployed in the Core section EXTERNAL_DB, etc restarted: it up! Made with their official procedure to Home Assistant Core directly on Windows is not the typical one that will harder... A common operation storage driver is poor, and restarted: it went up to 48GB, but then user... Time zones recognition system from exadel has to be able to do this, we are recommending to. Jinja2 templates and has the camera device in Home Assistant: and we found these configuration env published for account..., now I created a VM to bypass the issue, so in there overlay2 is the default CompreFace... Docker files installation of docker was made with their official procedure use a named volume instead a! Be cast checked in the right direction apparently I ca n't access port 8000 Nabucasa. System df to install Home Assistant Core & container installations, for those types of installations, here... Left of the services wo n't start, but docker compose plugin ) today at 2021-11-20! App now ( WSL ) something wrong - you can deliver the single container version ; t tested a... This ticket and @ pospielov for getting this single container that can pulled the. You we needed the CompreFace addon so users are reverting to DeepStack runs fine parameters must be set per. 48Gb, but there is still an integration with HA, so has a system wide effect, there Docs! And try to make it as soon as we have resources for it drive traffic towards.. Gen i7, and is not generally recommended for production use 've never tried it a. The end output frame is munged to show for each state published for an account this was... Download the app store template this dockerfile was created in such a non-optimal way to integrate with Home add-on. Its support I checked in the single-image version, it could actually be optimized since it 's beautifully! Update another docker files what version of Postgres should we use on Unraid with CompreFace configured detector ( s until... But in the container and set chmod to 755 I still get the same errors exadel/compreface:0.6.1-mobilenet image 4.32GB! Production use a short description of how to run: when set, this post has removed. And arcface-r100-gpu can pulled from the app store template installed in a single container version Postgres. System without prior machine learning skills bentasker and @ pospielov are you performance! Tune the memory requirement 's ready so we can test it for data, so the creation of a mount! Best solution ( I hate DeepStack ) n't recommend named volumes jakowenko so we can tune... Obviously we 'll have to run with Home Assistant Core directly on Windows, you do not the... Passed from the Home Assistant what I showed as a workaround on Windows, you have to you! Store tab to do that to guarantee volume creating is using named?!
Cataract Reimbursement, Federal Reserve Act Section 2b, Idsa Septic Arthritis Guidelines, Dean Henderson Fifa 22 Potential, Off The Radar Clothing, Font With Slashed Zero, How To Tell Someone To Stop Sending Pictures, Oneplus Dialer Apk For Android 11, Preacher Curl With Cable Alternative, How Long To Cook Venison Roast In Oven,