ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
412 stars 128 forks source link

Not saving unknown faces #299

Closed peste85 closed 4 years ago

peste85 commented 4 years ago

I am having difficulties having ES save unknown faces, I have tried both Hog and CNN models but CNN most of the time gives me bad mem alloc errors, error below.

Event Server version

5.15.6

The version of ZoneMinder you are using:

2.34.19

What is the nature of your issue Question/Bug?

Details I have enabled in my objectconfig to save unknown faces so that i can later on move to know faces and train however i cant seem to it ever to grab a face, even when i am dead eye staring at the camera. ES recognizes the person but never finds a face. I am currently using Yolo and not tiny. I tried to use CNN but keep getting mem bad alloc errors, I guess ES needs more memory then what i have available

Debug Logs (if applicable)

[face]
known_images_path={{base_data_path}}/known_faces
save_unknown_faces=yes
save_unknown_faces_leeway_pixels=50
unknown_images_path={{base_data_path}}/unknown_faces
face_num_jitters=4
face_model=hog
face_upsample_times=4
face_recog_dist_threshold=0.6
face_train_model=hog
unknown_face_name=invader

This is the error i get most of the time when using CNN as a model

Traceback (most recent call last):
  File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module>
    b, l, c = m.detect(image)
  File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect
    number_of_times_to_upsample=self.upsample_times)
  File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations
    return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")]
  File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations
    return cnn_face_detector(img, number_of_times_to_upsample)
MemoryError: std::bad_alloc

Thanks!

pliablepixels commented 4 years ago

Please post debug logs leading to this error. In general yes you are running out of memory.

peste85 commented 4 years ago

Attached are the logs, I enabled debug options like suggested on the docs but not sure why it doesnt have the errors

I usually monitor with this command

sudo -u www-data /usr/bin/zmeventnotification.pl

I forced an alarm and got the error again, these are monitors 3 & 4 root@4fdd8cfee644:/# sudo -u www-data /usr/bin/zmeventnotification.pl 08/16/20 12:09:15.490459 zmeventnotification[1826].INF [main:888] [PARENT: using config file: /etc/zm/zmeventnotification.ini] 08/16/20 12:09:15.494843 zmeventnotification[1826].INF [main:888] [PARENT: using secrets file: /etc/zm/secrets.ini] 08/16/20 12:09:15.570348 zmeventnotification[1826].INF [main:888] [PARENT: Push enabled via FCM] 08/16/20 12:09:15.571014 zmeventnotification[1826].INF [main:888] [PARENT: MQTT Disabled] 08/16/20 12:09:15.572189 zmeventnotification[1826].INF [main:888] [PARENT: |------- Starting ES version: 5.15.6-Docker ---------|] Can't ignore signal CHLD, forcing to default. 08/16/20 12:09:15.651957 zmeventnotification[1826].INF [main:888] [PARENT: Event Notification daemon v 5.15.6-Docker starting] 08/16/20 12:09:15.652964 zmeventnotification[1826].INF [main:888] [PARENT: Re-loading monitors] 08/16/20 12:09:15.664231 zmeventnotification[1826].INF [main:888] [PARENT: Secure WS(WSS) is enabled...] 08/16/20 12:09:15.664770 zmeventnotification[1826].INF [main:888] [PARENT: Web Socket Event Server listening on port 9000] 08/16/20 12:12:15.673039 zmeventnotification[1826].INF [main:888] [PARENT: New event 2 reported for Monitor:4 (Name:Garage) Linked[last processed eid:]] 08/16/20 12:12:15.674056 zmeventnotification[1826].INF [main:888] [PARENT: New event 1 reported for Monitor:3 (Name:Garage med) Forced Web[last processed eid:]] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:12:30.931288 zmeventnotification[1877].INF [main:888] [|----> FORK:Garage (4), eid:2 Event 2 for Monitor 4 has finished] 08/16/20 12:12:36.959215 zmeventnotification[1877].INF [main:888] [|----> FORK:Garage (4), eid:2 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] ^X^C^X^[Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:13:08.704841 zmeventnotification[1878].INF [main:888] [|----> FORK:Garage med (3), eid:1 Event 1 for Monitor 3 has finished] 08/16/20 12:13:14.769742 zmeventnotification[1878].INF [main:888] [|----> FORK:Garage med (3), eid:1 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed]

zmesdetect_m3.log zmesdetect_m4.log zmeventnotification.log

I also tried just have it do it normally which are monitors 5,6,7,8, logs attached and logs from the manual command

root@4fdd8cfee644:/config/hook# sudo -u www-data /usr/bin/zmeventnotification.pl 08/16/20 12:44:08.413467 zmeventnotification[3947].INF [main:888] [PARENT: using config file: /etc/zm/zmeventnotification.ini] 08/16/20 12:44:08.417447 zmeventnotification[3947].INF [main:888] [PARENT: using secrets file: /etc/zm/secrets.ini] 08/16/20 12:44:08.496322 zmeventnotification[3947].INF [main:888] [PARENT: Push enabled via FCM] 08/16/20 12:44:08.497046 zmeventnotification[3947].INF [main:888] [PARENT: MQTT Disabled] 08/16/20 12:44:08.498109 zmeventnotification[3947].INF [main:888] [PARENT: |------- Starting ES version: 5.15.6-Docker ---------|] Can't ignore signal CHLD, forcing to default. 08/16/20 12:44:08.593466 zmeventnotification[3947].INF [main:888] [PARENT: Event Notification daemon v 5.15.6-Docker starting] 08/16/20 12:44:08.594317 zmeventnotification[3947].INF [main:888] [PARENT: Re-loading monitors] 08/16/20 12:44:08.600194 zmeventnotification[3947].INF [main:888] [PARENT: Secure WS(WSS) is enabled...] 08/16/20 12:44:08.601031 zmeventnotification[3947].INF [main:888] [PARENT: Web Socket Event Server listening on port 9000] 08/16/20 12:44:53.605434 zmeventnotification[3947].WAR [main:1258] [ Memory verify failed for Garage med(id:5)] 08/16/20 12:44:53.606340 zmeventnotification[3947].ERR [ZoneMinder::Memory::Mapped:96] [Memory map file '/dev/shm/zm.mmap.5' should have been 1160 but was instead 0] 08/16/20 12:45:08.607567 zmeventnotification[3947].WAR [main:1258] [ Memory verify failed for Patio Med(id:7)] 08/16/20 12:45:08.609188 zmeventnotification[3947].ERR [ZoneMinder::Memory::Mapped:96] [Memory map file '/dev/shm/zm.mmap.7' should have been 1160 but was instead 0] 08/16/20 12:45:13.607549 zmeventnotification[3947].ERR [ZoneMinder::Memory::Mapped:96] [Memory map file '/dev/shm/zm.mmap.7' should have been 1160 but was instead 0] 08/16/20 12:45:13.608164 zmeventnotification[3947].WAR [main:1258] [ Memory verify failed for Patio Med(id:7)] 08/16/20 12:45:13.608825 zmeventnotification[3947].ERR [ZoneMinder::Memory::Mapped:96] [Memory map file '/dev/shm/zm.mmap.7' should have been 1160 but was instead 0] 08/16/20 12:45:58.605397 zmeventnotification[3947].WAR [main:1258] [ Memory verify failed for Patio(id:8)] 08/16/20 12:48:13.607419 zmeventnotification[3947].INF [main:888] [PARENT: New event 15 reported for Monitor:8 (Name:Patio) Linked[last processed eid:]] 08/16/20 12:48:13.608187 zmeventnotification[3947].INF [main:888] [PARENT: New event 14 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:]] 08/16/20 12:48:33.613666 zmeventnotification[3947].INF [main:888] [PARENT: New event 16 reported for Monitor:8 (Name:Patio) Linked[last processed eid:15]] 08/16/20 12:48:46.272199 zmeventnotification[3947].INF [main:888] [PARENT: New event 18 reported for Monitor:8 (Name:Patio) Linked[last processed eid:16]] 08/16/20 12:48:46.279869 zmeventnotification[3947].INF [main:888] [PARENT: New event 17 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:14]] 08/16/20 12:48:59.249466 zmeventnotification[3947].INF [main:888] [PARENT: New event 19 reported for Monitor:8 (Name:Patio) Linked[last processed eid:18]] 08/16/20 12:49:20.301307 zmeventnotification[3947].INF [main:888] [PARENT: Re-loading monitors] 08/16/20 12:49:38.069651 zmeventnotification[4111].INF [main:888] [|----> FORK:Patio (8), eid:15 Event 15 for Monitor 8 has finished] 08/16/20 12:49:44.392570 zmeventnotification[3947].INF [main:888] [PARENT: New event 21 reported for Monitor:8 (Name:Patio) Linked[last processed eid:19]] 08/16/20 12:49:44.492811 zmeventnotification[3947].INF [main:888] [PARENT: New event 20 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:17]] 08/16/20 12:49:47.021989 zmeventnotification[4111].INF [main:888] [|----> FORK:Patio (8), eid:15 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:50:07.439950 zmeventnotification[4504].INF [main:888] [|----> FORK:Patio (8), eid:19 Event 19 for Monitor 8 has finished] 08/16/20 12:50:29.621584 zmeventnotification[4504].INF [main:888] [|----> FORK:Patio (8), eid:19 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:50:33.533226 zmeventnotification[4112].INF [main:888] [|----> FORK:Patio Med (7), eid:14 Event 14 for Monitor 7 has finished] 08/16/20 12:50:34.362001 zmeventnotification[4320].INF [main:888] [|----> FORK:Patio (8), eid:16 Event 16 for Monitor 8 has finished] 08/16/20 12:50:41.751394 zmeventnotification[4112].INF [main:888] [|----> FORK:Patio Med (7), eid:14 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:50:41.861230 zmeventnotification[4320].INF [main:888] [|----> FORK:Patio (8), eid:16 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:50:44.348329 zmeventnotification[3947].INF [main:888] [PARENT: New event 23 reported for Monitor:8 (Name:Patio) Linked[last processed eid:21]] 08/16/20 12:50:44.391031 zmeventnotification[3947].INF [main:888] [PARENT: New event 22 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:20]] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:50:55.528554 zmeventnotification[4675].INF [main:888] [|----> FORK:Patio (8), eid:21 Event 21 for Monitor 8 has finished] 08/16/20 12:50:58.605746 zmeventnotification[3947].INF [main:888] [PARENT: New event 24 reported for Monitor:5 (Name:Garage med) Motion All[last processed eid:]] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:51:01.643958 zmeventnotification[4675].INF [main:888] [|----> FORK:Patio (8), eid:21 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:51:07.916158 zmeventnotification[4404].INF [main:888] [|----> FORK:Patio (8), eid:18 Event 18 for Monitor 8 has finished] 08/16/20 12:51:30.146882 zmeventnotification[4404].INF [main:888] [|----> FORK:Patio (8), eid:18 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:51:30.809255 zmeventnotification[4676].INF [main:888] [|----> FORK:Patio Med (7), eid:20 Event 20 for Monitor 7 has finished] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:51:34.966004 zmeventnotification[5102].INF [main:888] [|----> FORK:Patio Med (7), eid:22 Event 22 for Monitor 7 has finished] 08/16/20 12:51:40.318164 zmeventnotification[4676].INF [main:888] [|----> FORK:Patio Med (7), eid:20 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:51:41.119290 zmeventnotification[5102].INF [main:888] [|----> FORK:Patio Med (7), eid:22 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:51:43.816553 zmeventnotification[3947].INF [main:888] [PARENT: New event 26 reported for Monitor:8 (Name:Patio) Linked[last processed eid:23]] 08/16/20 12:51:44.031637 zmeventnotification[3947].INF [main:888] [PARENT: New event 25 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:22]] 08/16/20 12:51:48.043296 zmeventnotification[4405].INF [main:888] [|----> FORK:Patio Med (7), eid:17 Event 17 for Monitor 7 has finished] 08/16/20 12:51:54.100023 zmeventnotification[4405].INF [main:888] [|----> FORK:Patio Med (7), eid:17 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:51:58.626619 zmeventnotification[3947].INF [main:888] [PARENT: New event 27 reported for Monitor:8 (Name:Patio) Linked[last processed eid:26]] 08/16/20 12:52:03.307076 zmeventnotification[5101].INF [main:888] [|----> FORK:Patio (8), eid:23 Event 23 for Monitor 8 has finished] 08/16/20 12:52:09.377371 zmeventnotification[5101].INF [main:888] [|----> FORK:Patio (8), eid:23 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:52:32.610174 zmeventnotification[5718].INF [main:888] [|----> FORK:Patio (8), eid:27 Event 27 for Monitor 8 has finished] 08/16/20 12:52:32.610530 zmeventnotification[5565].INF [main:888] [|----> FORK:Patio (8), eid:26 Event 26 for Monitor 8 has finished] 08/16/20 12:52:34.474905 zmeventnotification[3947].INF [main:888] [PARENT: New event 28 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:25]] 08/16/20 12:52:35.427626 zmeventnotification[5566].INF [main:888] [|----> FORK:Patio Med (7), eid:25 Event 25 for Monitor 7 has finished] 08/16/20 12:52:39.200457 zmeventnotification[5718].INF [main:888] [|----> FORK:Patio (8), eid:27 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:52:39.385696 zmeventnotification[5565].INF [main:888] [|----> FORK:Patio (8), eid:26 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:52:41.617233 zmeventnotification[5566].INF [main:888] [|----> FORK:Patio Med (7), eid:25 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:52:43.114697 zmeventnotification[5250].INF [main:888] [|----> FORK:Garage med (5), eid:24 Event 24 for Monitor 5 has finished] 08/16/20 12:52:48.603912 zmeventnotification[3947].INF [main:888] [PARENT: New event 30 reported for Monitor:8 (Name:Patio) Linked[last processed eid:27]] 08/16/20 12:52:48.610265 zmeventnotification[3947].INF [main:888] [PARENT: New event 29 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:28]] 08/16/20 12:52:49.502532 zmeventnotification[5250].INF [main:888] [|----> FORK:Garage med (5), eid:24 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:53:18.760833 zmeventnotification[3947].INF [main:888] [PARENT: New event 31 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:29]] 08/16/20 12:53:28.650210 zmeventnotification[3947].INF [main:888] [PARENT: New event 32 reported for Monitor:8 (Name:Patio) Linked[last processed eid:30]] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:54:35.395622 zmeventnotification[3947].INF [main:888] [PARENT: Re-loading monitors] 08/16/20 12:54:40.185257 zmeventnotification[3947].INF [main:888] [PARENT: New event 35 reported for Monitor:8 (Name:Patio) Linked[last processed eid:32]] 08/16/20 12:54:40.218251 zmeventnotification[3947].INF [main:888] [PARENT: New event 34 reported for Monitor:5 (Name:Garage med) Motion All[last processed eid:24]] 08/16/20 12:54:40.219545 zmeventnotification[3947].INF [main:888] [PARENT: New event 36 reported for Monitor:6 (Name:Garage) Linked[last processed eid:]] 08/16/20 12:54:40.234281 zmeventnotification[3947].INF [main:888] [PARENT: New event 33 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:31]] 08/16/20 12:54:40.741819 zmeventnotification[6091].INF [main:888] [|----> FORK:Patio Med (7), eid:29 Event 29 for Monitor 7 has finished] 08/16/20 12:54:49.656614 zmeventnotification[6091].INF [main:888] [|----> FORK:Patio Med (7), eid:29 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:54:53.668352 zmeventnotification[3947].INF [main:888] [PARENT: New event 37 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:33]] 08/16/20 12:55:03.153774 zmeventnotification[6233].INF [main:888] [|----> FORK:Patio Med (7), eid:31 Event 31 for Monitor 7 has finished] 08/16/20 12:55:12.389174 zmeventnotification[6233].INF [main:888] [|----> FORK:Patio Med (7), eid:31 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:55:12.470152 zmeventnotification[5957].INF [main:888] [|----> FORK:Patio Med (7), eid:28 Event 28 for Monitor 7 has finished] 08/16/20 12:55:23.307468 zmeventnotification[3947].INF [main:888] [PARENT: New event 38 reported for Monitor:5 (Name:Garage med) Motion All[last processed eid:34]] 08/16/20 12:55:31.856205 zmeventnotification[5957].INF [main:888] [|----> FORK:Patio Med (7), eid:28 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:55:34.846563 zmeventnotification[6371].INF [main:888] [|----> FORK:Patio (8), eid:32 Event 32 for Monitor 8 has finished] 08/16/20 12:55:35.079429 zmeventnotification[6090].INF [main:888] [|----> FORK:Patio (8), eid:30 Event 30 for Monitor 8 has finished] 08/16/20 12:55:35.457540 zmeventnotification[6554].INF [main:888] [|----> FORK:Garage (6), eid:36 Event 36 for Monitor 6 has finished] 08/16/20 12:55:39.103368 zmeventnotification[3947].INF [main:888] [PARENT: New event 39 reported for Monitor:6 (Name:Garage) Linked[last processed eid:36]] 08/16/20 12:55:39.325955 zmeventnotification[6553].INF [main:888] [|----> FORK:Garage med (5), eid:34 Event 34 for Monitor 5 has finished] 08/16/20 12:55:41.404514 zmeventnotification[6371].INF [main:888] [|----> FORK:Patio (8), eid:32 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:55:42.096975 zmeventnotification[6554].INF [main:888] [|----> FORK:Garage (6), eid:36 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:55:42.108483 zmeventnotification[6090].INF [main:888] [|----> FORK:Patio (8), eid:30 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:55:43.391078 zmeventnotification[6552].INF [main:888] [|----> FORK:Patio (8), eid:35 Event 35 for Monitor 8 has finished] 08/16/20 12:55:43.636703 zmeventnotification[3947].INF [main:888] [PARENT: New event 41 reported for Monitor:8 (Name:Patio) Linked[last processed eid:35]] 08/16/20 12:55:43.641726 zmeventnotification[3947].INF [main:888] [PARENT: New event 40 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:37]] 08/16/20 12:55:45.590062 zmeventnotification[6553].INF [main:888] [|----> FORK:Garage med (5), eid:34 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:55:49.746247 zmeventnotification[6552].INF [main:888] [|----> FORK:Patio (8), eid:35 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:55:53.620656 zmeventnotification[3947].INF [main:888] [PARENT: New event 42 reported for Monitor:5 (Name:Garage med) Motion All[last processed eid:38]] 08/16/20 12:56:07.976253 zmeventnotification[6555].INF [main:888] [|----> FORK:Patio Med (7), eid:33 Event 33 for Monitor 7 has finished] 08/16/20 12:56:30.428777 zmeventnotification[7257].INF [main:888] [|----> FORK:Garage (6), eid:39 Event 39 for Monitor 6 has finished] 08/16/20 12:56:30.523088 zmeventnotification[6806].INF [main:888] [|----> FORK:Patio Med (7), eid:37 Event 37 for Monitor 7 has finished] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:56:32.221648 zmeventnotification[6555].INF [main:888] [|----> FORK:Patio Med (7), eid:33 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:56:33.845954 zmeventnotification[3947].INF [main:888] [PARENT: New event 43 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:40]] 08/16/20 12:56:35.171246 zmeventnotification[7323].INF [main:888] [|----> FORK:Patio Med (7), eid:40 Event 40 for Monitor 7 has finished] 08/16/20 12:56:36.880126 zmeventnotification[7257].INF [main:888] [|----> FORK:Garage (6), eid:39 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:56:36.985004 zmeventnotification[7322].INF [main:888] [|----> FORK:Patio (8), eid:41 Event 41 for Monitor 8 has finished] 08/16/20 12:56:39.391860 zmeventnotification[6806].INF [main:888] [|----> FORK:Patio Med (7), eid:37 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:56:40.871484 zmeventnotification[7192].INF [main:888] [|----> FORK:Garage med (5), eid:38 Event 38 for Monitor 5 has finished] 08/16/20 12:56:41.220410 zmeventnotification[7323].INF [main:888] [|----> FORK:Patio Med (7), eid:40 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:56:43.836415 zmeventnotification[7322].INF [main:888] [|----> FORK:Patio (8), eid:41 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:56:47.370999 zmeventnotification[7192].INF [main:888] [|----> FORK:Garage med (5), eid:38 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:57:13.990627 zmeventnotification[3947].INF [main:888] [PARENT: New event 44 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:43]] 08/16/20 12:57:38.262593 zmeventnotification[7534].INF [main:888] [|----> FORK:Garage med (5), eid:42 Event 42 for Monitor 5 has finished] 08/16/20 12:57:43.783840 zmeventnotification[3947].INF [main:888] [PARENT: New event 46 reported for Monitor:8 (Name:Patio) Linked[last processed eid:41]] 08/16/20 12:57:43.815498 zmeventnotification[3947].INF [main:888] [PARENT: New event 45 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:44]] 08/16/20 12:57:48.608896 zmeventnotification[3947].INF [main:888] [PARENT: New event 47 reported for Monitor:8 (Name:Patio) Linked[last processed eid:46]] 08/16/20 12:58:51.243505 zmeventnotification[8275].INF [main:888] [|----> FORK:Patio (8), eid:47 Event 47 for Monitor 8 has finished] 08/16/20 12:58:56.032376 zmeventnotification[3947].INF [main:888] [PARENT: New event 49 reported for Monitor:8 (Name:Patio) Linked[last processed eid:47]] 08/16/20 12:58:57.488055 zmeventnotification[3947].INF [main:888] [PARENT: New event 48 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:45]] 08/16/20 12:58:57.591385 zmeventnotification[8178].INF [main:888] [|----> FORK:Patio (8), eid:46 Event 46 for Monitor 8 has finished] 08/16/20 12:58:59.584859 zmeventnotification[8275].INF [main:888] [|----> FORK:Patio (8), eid:47 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:59:03.622265 zmeventnotification[3947].INF [main:888] [PARENT: New event 50 reported for Monitor:8 (Name:Patio) Linked[last processed eid:49]] 08/16/20 12:59:03.688494 zmeventnotification[8178].INF [main:888] [|----> FORK:Patio (8), eid:46 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 12:59:18.607466 zmeventnotification[3947].INF [main:888] [PARENT: New event 51 reported for Monitor:8 (Name:Patio) Linked[last processed eid:50]] 08/16/20 12:59:33.068737 zmeventnotification[8179].INF [main:888] [|----> FORK:Patio Med (7), eid:45 Event 45 for Monitor 7 has finished] 08/16/20 12:59:39.651281 zmeventnotification[8179].INF [main:888] [|----> FORK:Patio Med (7), eid:45 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 12:59:45.707978 zmeventnotification[3947].INF [main:888] [PARENT: Re-loading monitors] 08/16/20 12:59:47.222274 zmeventnotification[8046].INF [main:888] [|----> FORK:Patio Med (7), eid:44 Event 44 for Monitor 7 has finished] 08/16/20 12:59:57.871578 zmeventnotification[8046].INF [main:888] [|----> FORK:Patio Med (7), eid:44 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 13:00:03.923116 zmeventnotification[8614].INF [main:888] [|----> FORK:Patio (8), eid:49 Event 49 for Monitor 8 has finished] 08/16/20 13:00:11.538401 zmeventnotification[8614].INF [main:888] [|----> FORK:Patio (8), eid:49 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 13:00:18.621428 zmeventnotification[3947].INF [main:888] [PARENT: New event 52 reported for Monitor:5 (Name:Garage med) Motion All[last processed eid:42]] 08/16/20 13:00:18.661759 zmeventnotification[3947].INF [main:888] [PARENT: New event 53 reported for Monitor:6 (Name:Garage) Linked[last processed eid:39]] 08/16/20 13:00:18.674150 zmeventnotification[8855].INF [main:888] [|----> FORK:Patio (8), eid:51 Event 51 for Monitor 8 has finished] 08/16/20 13:00:21.983266 zmeventnotification[8615].INF [main:888] [|----> FORK:Patio Med (7), eid:48 Event 48 for Monitor 7 has finished] 08/16/20 13:00:24.815460 zmeventnotification[8855].INF [main:888] [|----> FORK:Patio (8), eid:51 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 13:00:28.365456 zmeventnotification[8615].INF [main:888] [|----> FORK:Patio Med (7), eid:48 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 13:00:35.915115 zmeventnotification[7868].INF [main:888] [|----> FORK:Patio Med (7), eid:43 Event 43 for Monitor 7 has finished] 08/16/20 13:00:38.604011 zmeventnotification[3947].INF [main:888] [PARENT: New event 55 reported for Monitor:8 (Name:Patio) Linked[last processed eid:51]] 08/16/20 13:00:38.615237 zmeventnotification[3947].INF [main:888] [PARENT: New event 54 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:48]] 08/16/20 13:00:42.142552 zmeventnotification[7868].INF [main:888] [|----> FORK:Patio Med (7), eid:43 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 13:00:49.935495 zmeventnotification[3947].INF [main:888] [PARENT: New event 56 reported for Monitor:8 (Name:Patio) Linked[last processed eid:55]] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 13:01:29.746764 zmeventnotification[9223].INF [main:888] [|----> FORK:Garage (6), eid:53 Event 53 for Monitor 6 has finished] 08/16/20 13:01:37.029044 zmeventnotification[3947].INF [main:888] [PARENT: New event 57 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:54]] 08/16/20 13:01:38.615149 zmeventnotification[3947].INF [main:888] [PARENT: New event 59 reported for Monitor:8 (Name:Patio) Linked[last processed eid:56]] 08/16/20 13:01:43.098181 zmeventnotification[9223].INF [main:888] [|----> FORK:Garage (6), eid:53 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 13:01:48.790647 zmeventnotification[3947].INF [main:888] [PARENT: New event 60 reported for Monitor:5 (Name:Garage med) Motion All[last processed eid:52]] 08/16/20 13:02:03.626371 zmeventnotification[3947].INF [main:888] [PARENT: New event 61 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:57]] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 13:02:08.750606 zmeventnotification[3947].INF [main:888] [PARENT: New event 62 reported for Monitor:8 (Name:Patio) Linked[last processed eid:59]] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 13:02:12.764751 zmeventnotification[9383].INF [main:888] [|----> FORK:Patio (8), eid:55 Event 55 for Monitor 8 has finished] 08/16/20 13:02:36.143083 zmeventnotification[9651].INF [main:888] [|----> FORK:Patio (8), eid:59 Event 59 for Monitor 8 has finished] 08/16/20 13:02:36.213884 zmeventnotification[9222].INF [main:888] [|----> FORK:Garage med (5), eid:52 Event 52 for Monitor 5 has finished] 08/16/20 13:02:36.279536 zmeventnotification[9384].INF [main:888] [|----> FORK:Patio Med (7), eid:54 Event 54 for Monitor 7 has finished] 08/16/20 13:02:36.889086 zmeventnotification[9383].INF [main:888] [|----> FORK:Patio (8), eid:55 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc 08/16/20 13:02:44.485709 zmeventnotification[9651].INF [main:888] [|----> FORK:Patio (8), eid:59 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 13:02:44.508357 zmeventnotification[9384].INF [main:888] [|----> FORK:Patio Med (7), eid:54 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 13:02:44.509297 zmeventnotification[9222].INF [main:888] [|----> FORK:Garage med (5), eid:52 Not sending event end alarm, as we did not send a start alarm for this, or start hook processing failed] 08/16/20 13:02:44.808279 zmeventnotification[3947].INF [main:888] [PARENT: New event 63 reported for Monitor:5 (Name:Garage med) Motion All[last processed eid:60]] 08/16/20 13:02:48.633478 zmeventnotification[3947].INF [main:888] [PARENT: New event 64 reported for Monitor:7 (Name:Patio Med) Motion All[last processed eid:61]] 08/16/20 13:02:56.565364 zmeventnotification[9492].INF [main:888] [|----> FORK:Patio (8), eid:56 Event 56 for Monitor 8 has finished] Traceback (most recent call last): File "/var/lib/zmeventnotification/bin/zm_detect.py", line 402, in <module> 08/16/20 13:02:58.721526 zmeventnotification[3947].INF [main:888] [PARENT: New event 66 reported for Monitor:8 (Name:Patio) Linked[last processed eid:62]] b, l, c = m.detect(image) File "/usr/local/lib/python3.6/dist-packages/zmes_hook_helpers/face.py", line 102, in detect number_of_times_to_upsample=self.upsample_times) File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 119, in face_locations return [_trim_css_to_bounds(_rect_to_css(face.rect), img.shape) for face in _raw_face_locations(img, number_of_times_to_upsample, "cnn")] File "/usr/local/lib/python3.6/dist-packages/face_recognition/api.py", line 103, in _raw_face_locations return cnn_face_detector(img, number_of_times_to_upsample) MemoryError: std::bad_alloc

zmesdetect_m5.log zmesdetect_m6.log zmesdetect_m7.log zmesdetect_m8.log zmeventnotification.log

pliablepixels commented 4 years ago

So I'm not going to go through all the debug logs you posted. It is helpful if you posted a reduced test case - that is, only related to one monitor, one use-case (face), one set of logs (ES+detect) and make sure DBG logs are on.

In general however: Train the faces first using /var/lib/zm_train_faces.py and then try zm_detect - if zm_detect calls train faces, your memory may run out

peste85 commented 4 years ago

I will try to isolate it and post them but yes i agree, i feel like it doesnt have enough memory.

For face recognition, what is the minimum amount of ram needed?

pliablepixels commented 4 years ago

I'm not sure if you are using GPU or CPU. But like I said, do this instead:

a) Train faces first before you run detect (see docs) b) Then run detect

I don't remember how much memory the model takes up

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.