Git Product home page Git Product logo

Comments (7)

sca075 avatar sca075 commented on September 24, 2024 1

Thanks for the report @Cellivar I will check the migration process and correct it in a couple of hours.
I think also there is some adjustment done already and the svg_export is a future that somehow is still under development so.. it should be quite easy to fix.

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

@Cellivar I just tested the migration process from 1.4.8 to 1.5.7.4 (that I'm going to release in a couple of minutes), the config entry 2.1 can be now converted without any problem to 2.2.
From what version did you start the conversion? Also, if you like this project please consider to star it to get always updated on new evolutions ;)

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

@Cellivar the version v1.5.7.4 is now released. There is now the auto trim function that should simply the setup of the camera on this newer versions. Of course the colour settings can be.. to be redo.. (if the camera was deleted).
In general this fix the migration issue you kindly reported, anyhow I'm at your disposal for anything else and await your kind confirmation.

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

@Cellivar added to the pre-release check list a test to avoid this in the future. Thanks once again for the hint.

from valetudo_vacuum_camera.

Cellivar avatar Cellivar commented on September 24, 2024

Wow thank you for the really fast fix! I just applied v1.5.7.4 and can confirm that the reported issue is fixed, however I encountered a new problem.

I previously was running Home Assistant with a limit of 756MB of RAM. After updating to the latest version there's a ~1,400MB spike of memory use during startup, then the system settles down to around 780MB. This is what the chart looks like.

image

I have some extra space in my cluster so I can work around this problem by increasing the limit, but this is a much higher resting state than before. I don't have time this weekend to test further by enabling and disabling things to confirm that it's definitely this integration.

If you have any suggestions on ways I can help you understand what my system is doing I'm very happy to collect more logs or otherwise. I'm a software developer, but I don't write Python code, so I'm not familiar with those tools :)

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

@Cellivar any help here is appreciated. I do not know from what version you updated so I can't make a comparison.
Recently I added a couple of new functions (auto-cropping is one of them) and also I wrote a function to check in what room is the robot (those are the biggest change).
The auto trimming of the image as the robot position check at startup uses a little more memory than before but the memory should free after that (except for the buffered base image that isn't redrawn in case the LiDAR detects "new walls").

On the v1.5.8 I plan to keep the memory constant to the minimum after the camera boot(this is what I'm actually checking with the new introduction of the memory limit)

This checks the size of NP array multiplied the number of steps to complete the image (as I'm not sure if Numpy is actually freeing the memory). In reality I'm deleting all unnecessary arrays on the draw functions) that I had to write by my own as per home assistant OS do not support OpenCV.

Any logs from the Camera and details of system where you run HA would be helpful to warrant that this project goes ahead improving. Would you be so kind to open a discussion so that we can trace this please 😉

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

Camera Memory usage in GB: 0.63, 8.24% of Total. (I have to Camera's on the PI4 and this need to be so 1.2GB peak max on my test environment).

from valetudo_vacuum_camera.

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.