Hello,
I have a problem with the event notification server.
I get an error message
09/13/2021 11:43:42zmesdetect_m11025ERRError model in execution: invalid index for variable scalar.detect_sequence.py713
com zoneminder 1.36.5
Here are my records.
Any suggestion?
With best wishes
root@ProxNAS:~# pkg-config --modversion opencv4
4.5.3
root@ProxNAS:~# python3 -c "importar cv2; imprimir(cv2.__version__)"
4.5.3-development
root@ProxNAS:~# cola -F /var/log/zm/zmesdetect*.log /var/log/zm/zmeventnotification.log
==> /var/log/zm/zmesdetect_m1.log <==
I dated "/usr/local/lib/python3.9/dist-packages/pyzm/ml/yolo.py", Zeile 156, on detection
ln = [ln[i[0] - 1] for myself.net.getUnconnectedOutLayers()]
File "/usr/local/lib/python3.9/dist-packages/pyzm/ml/yolo.py", line 156, in <listcomp>
ln = [ln[i[0] - 1] for myself.net.getUnconnectedOutLayers()]
IndexError: invalid index for scalar variable.
]
09/13/21 11:41:12 zmesdetect_m1[924] DBG2 detect_sequence.py:770 [No object match found in frame: alert]
13/09/21 11:41:12 zmesdetect_m1[924] DBG2 yolo.py:63 [pyzm_uid33_gpu_lock portalock ya lanzado]
09/13/21 11:41:12 zmesdetect_m1 [924] DBG1 detect_sequence.py: 827 [perf: TOTAL detection sequence (with image payloads) took: 162.95 ms to process 89650]
09/13/21 11:41:12 zmesdetect_m1[924] DBG1 zm_detect.py:557 [close logs]
==> /var/log/zm/zmeventnotification.log <==
9/13/21 11:43:11.411610 zmeventnotification[656].DB1[main:1036] [PARENTAL: There are 0 active child branches and 0 zm_detect processes running...]
09/13/21 11:43:11.411705 zmeventnotification[656].DB1 [principal:1036] [PARENT: checkEvents() new events found=0]
09.13.21 11:43:11.411728 zmeventnotification[656].DB1 [principal:1036] [PARENT: There are 0 new events to process]
09.13.21 11:43:11.411757 zmeventnotification[656].DB1 [main:1036] [PARENT: ---------->Check FIN (active branches: 0, total branches: 3, active hooks: 0 )<------]
09/13/21 11:43:16.411504 zmeventnotification[656].DB1[main:1036] [PARENT: ----------> Check START (active branches: 0, total branches: 3, hooks active : 0 running for: 12 min)<--------------]
09/13/21 11:43:16.411569 zmeventnotification[656].DB1 [main:1036] [PARENT: After dialing: TOTAL: 3, ES_CONTROL: 0, FCM+WEB: 0, FCM: 3, WEB: 0, MQTT :0 , invalid WEB: 0, PENDING: 0]
9/13/21 11:43:16.411595 zmeventnotification[656].DB1[main:1036] [PARENT: There are 0 active child branches and 0 zm_detect processes running...]
09/13/21 11:43:16.411688 zmeventnotification[656].DB1 [principal:1036] [PARENT: checkEvents() new events found=0]
09.13.21 11:43:16.411711 zmeventnotification[656].DB1 [principal:1036] [PARENT: There are 0 new events to process]
09.13.21 11:43:16.411740 zmeventnotification[656].DB1 [main:1036] [PARENT: ---------->Check FIN (active branches: 0, total branches: 3, active hooks: 0 )<------]
9/13/21 11:43:21.411487 zmeventnotification[656].DB1[main:1036] [PARENT: ----------> Check START (active branches: 0, total branches: 3, hooks active : 0 running for: 12 min)<--------------]
09/13/21 11:43:21.411563 zmeventnotification[656].DB1 [main:1036] [PARENT: After dialing: TOTAL: 3, ES_CONTROL: 0, FCM+WEB: 0, FCM: 3, WEB: 0, MQTT :0 , invalid WEB: 0, PENDING: 0]
9/13/21 11:43:21.411592 zmeventnotification[656].DB1[main:1036] [PARENT: There are 0 active child branches and 0 zm_detect processes running...]
09/13/21 11:43:21.411690 zmeventnotification[656].DB1 [principal:1036] [PARENT: checkEvents() new events found=0]
09.13.21 11:43:21.411743 zmeventnotification[656].DB1 [principal:1036] [PARENT: There are 0 new events to process]
09.13.21 11:43:21.411805 zmeventnotification[656].DB1 [main:1036] [PARENT: ---------->Check FIN (active branches: 0, total branches: 3, active hooks: 0 )<------]
09/13/21 11:43:26.413804 zmeventnotification[656].DB1[main:1036] [PARENT: ----------> Check START (active branches: 0, total branches: 3, hooks active : 0 running for: 12 min)<--------------]
09/13/21 11:43:26.413879 zmeventnotification[656].DB1 [main:1036] [PARENT: After dialing: TOTAL: 3, ES_CONTROL: 0, FCM+WEB: 0, FCM: 3, WEB: 0, MQTT :0 , invalid WEB: 0, PENDING: 0]
9/13/21 11:43:26.413922 zmeventnotification[656].DB1[main:1036] [PARENTAL: There are 0 active child branches and 0 zm_detect processes running...]
09/13/21 11:43:26.414025 zmeventnotification[656].DB1 [principal:1036] [PARENT: checkEvents() new events found=0]
09.13.21 11:43:26.414051 zmeventnotification[656].DB1 [principal:1036] [PARENT: There are 0 new events to process]
09.13.21 11:43:26.414085 zmeventnotification[656].DB1 [main:1036] [PARENT: ---------->Check FIN (active branches: 0, total branches: 3, active hooks: 0 )<------]
09/13/21 11:43:31.411472 zmeventnotification[656].DB1[main:1036] [PARENT: ----------> Check START (active branches: 0, total branches: 3, hooks active : 0 running for: 13 min)<--------------]
09/13/21 11:43:31.411550 zmeventnotification[656].DB1 [main:1036] [PARENT: After dialing: TOTAL: 3, ES_CONTROL: 0, FCM+WEB: 0, FCM: 3, WEB: 0, MQTT :0 , invalid WEB: 0, PENDING: 0]
9/13/21 11:43:31.411592 zmeventnotification[656].DB1[main:1036] [PARENTAL: There are 0 active child branches and 0 zm_detect processes running...]
09/13/21 11:43:31.411738 zmeventnotification[656].DB1 [principal:1036] [PARENT: checkEvents() new events found=0]
09.13.21 11:43:31.411767 zmeventnotification[656].DB1 [principal:1036] [PARENT: There are 0 new events to process]
09.13.21 11:43:31.411805 zmeventnotification[656].DB1 [parent:1036] [PARENT: ---------->Check FIN (active branches:0, total branches:3, active hooks: 0 )<------]
09/13/21 11:43:36.411474 zmeventnotification[656].DB1[main:1036] [PARENT: ----------> Check START (active branches: 0, total branches: 3, hooks active : 0 running for: 13 min)<--------------]
09/13/21 11:43:36.411545 zmeventnotification[656].DB1 [main:1036] [PARENT: After dialing: TOTAL: 3, ES_CONTROL: 0, FCM+WEB: 0, FCM: 3, WEB: 0, MQTT :0 , invalid WEB: 0, PENDING: 0]
9/13/21 11:43:36.411575 zmeventnotification[656].DB1[main:1036] [PARENT: There are 0 active child branches and 0 zm_detect processes running...]
09/13/21 11:43:36.411686 zmeventnotification[656].INF [principal:1048] [PARENT: New event 89651 reported to monitor: 1 (name: IPD-L26Y02-BS) motionzone_1 [last eid processed: 89650] ]
09/13/21 11:43:36.411713 zmeventnotification[656].DB1 [principal:1036] [PARENT: checkEvents() new events found=1]
09.13.21 11:43:36.411736 zmeventnotification[656].DB1 [principal:1036] [FATHER: There is 1 new event to process]
09.13.21 11:43:36.413804 zmeventnotification[656].DB1 [parent:1036] [PARENT: ---------->Check FIN (active branches:1, total branches:4, active hooks: 0 )<------]
13.09.21 11:43:36.414027 zmeventnotification[1021].DB1 [ZoneMinder::Logger:321] [LogOpts: level=DB1/DB1, screen=OFF, database=ERR, logfile=DB1->/var/log /zm /zmeventnotification.log, syslog=ERR]
09.13.21 11:43:36.414097 zmeventnotification[1021].DB1 [primary:1036] [PARENT: Forked process:1021 to handle alarm eid:89651]
13.09.21 11:43:36.414260 zmeventnotification[1021].DB1 [ZoneMinder::Object:125] [Cargando ZoneMinder::Event from Events WHERE Id = 89651]
09.13.21 11:43:36.414671 zmeventnotification[1021].DB1 [ZoneMinder::Object:125] [Carregando ZoneMinder::Storage from storage WHERE ID = 2]
09/13/21 11:43:36.415205 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 add event path:/Shares/ Recordings /1/ 2021-09-13/89651 to call to store images]
09/13/21 11:43:36.415238 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Hook call at event start: ' /var/lib/zmeventnotification/bin/zm_event_start.sh'89651 1 "IPD-L26Y02-BS" "MotionZone_1" "/Shares/Recordings/1/2021-09-13/89651"]
==> /var/log/zm/zmesdetect_m1.log <==
09/13/21 11:43:36 zmesdetect_m1[1025] INF ZMLog.py:292 [configure signal handler for logs]
09/13/21 11:43:36 zmesdetect_m1[1025] INF ZMLog.py:301 [change global logger to ZMLog]
09.13.21 11:43:36 zmesdetect_m1[1025] INF zm_detect.py:284 [---------| app: 6.1.27, Pyzm: 0.3.54, ES: 6.1.27
, OpenCV:4.5.3-development|------------]
09/13/21 11:43:36 zmesdetect_m1[1025] INF utils.py:405 [Read configuration from: /etc/zm/objectconfig.ini]
9/13/21 11:43:36 zmesdetect_m1[1025] INF utils.py:410 [reading secrets from: /etc/zm/secrets.ini]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG2 utils.py:382 [secret token found in config: !ZM_PORTAL]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG2 utils.py:382 [Secret token found in config: !ZM_USER]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG2 utils.py:382 [Secret token found in config: !ZM_PASSWORD]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG2 utils.py:382 [Secret token found in config: !ZM_API_PORTAL]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG2 utils.py:382 [Secret token found in config: !ML_USER]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG2 utils.py:382 [secret token found in config: !ML_PASSWORD]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG2 utils.py:382 [Secret token found in config: !PLATEREC_ALPR_KEY]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG1 utils.py:445 [make self-signed certificates work...]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG2 utils.py:455 [Now checks for monitor overrides]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG2 utils.py:491 [my_model_sequence is not a polygon, add it as an unknown string key]
09/13/21 11:43:36 zmesdetect_m1[1025] DBG3 utils.py:473 [[monitor-1] replace key: resize with value: no]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG3 utils.py:473 [[monitor-1] override key:match_past_detections with value: no]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG3 utils.py:473 [[monitor-1] replace key: wait with value: 5]
13/09/21 11:43:36 zmesdetect_m1[1025] DBG3 utils.py:473 [[monitor-1] sobrescribe key:frame_id con valor:bestmatch]
09.13.21 11:43:36 zmesdetect_m1[1025] DBG3 utils.py:473 [[monitor-1] überschreibt key:object_detection_pattern mit value:(person|cat|dog|bird)]
09/13/21 11:43:36 zmesdetect_m1[1025] DBG3 utils.py:473 [[monitor-1] replaces key: delete_after_analyze with value: yes]
9/13/21 11:43:36 zmesdetect_m1[1025] DBG3 utils.py:473 [[monitor-1] replaces key:import_zm_zones with value:no]
09/13/21 11:43:36 zmesdetect_m1[1025] DBG2 utils.py:487 [add polygon: perimeter[0,0 1919,0 1919,1079 0,1079]]
09/13/21 11:43:36 zmesdetect_m1[1025] DBG3 utils.py:522 [Parameter replacement at end]
09/13/21 11:43:36 zmesdetect_m1[1025] INF zm_detect.py:309 [Import local classes for object/surface]
9/13/21 11:43:37 zmesdetect_m1[1025] INF zm_detect.py:334 [Connect to ZM APIs]
9/13/21 11:43:37 zmesdetect_m1[1025] DBG2 api.py:72 [API SSL certificate check disabled]
9/13/21 11:43:37 zmesdetect_m1[1025] DBG1 api.py:181 [with login username/password]
09.13.21 11:43:37 zmesdetect_m1[1025] DBG2 api.py:210 [Using the new token API]
09/13/21 11:43:37 zmesdetect_m1[1025] DBG1 api.py:217 [access token expires: 09/13/2021 13:43:37.170258 [7200s]]
09/13/21 11:43:37 zmesdetect_m1[1025] DBG1 api.py:221 [refresh token expires on: 2021-09-14 11:43:37.170595 [86400s]]
13.09.21 11:43:37 zmesdetect_m1 [1025] DBG2 zm_detect.py: 342 [mit ml_sequence]
13.09.21 11:43:37 zmesdetect_m1 [1025] DBG2 zm_detect.py: 354 [mit stream_sequence]
09/13/21 11:43:37 zmesdetect_m1[1025] INF zm_detect.py:418 [Sleep for 5 seconds before inference]
==> /var/log/zm/zmeventnotification.log <==
09/13/21 11:43:41.411493 zmeventnotification[656].DB1[main:1036] [PARENT: ----------> Check START (active branches: 1, total branches: 4, hooks active : 0 running for: 13 min)<--------------]
09/13/21 11:43:41.411587 zmeventnotification[656].DB1 [main:1036] [PARENT: After dialing: TOTAL: 3, ES_CONTROL: 0, FCM+WEB: 0, FCM: 3, WEB: 0, MQTT :0 , invalid WEB: 0, PENDING: 0]
13.09.21 11:43:41.411725 zmeventnotification[656].DB1 [main:1036] [PRINCIPALES: TEXTO SIN PROCESAR-->update_parallel_hooks--TYPE--add]
9/13/21 11:43:41.411766 zmeventnotification[656].DB1[main:1036] [PARENT: There is 1 child branch active and 1 zm_detect process running...]
9/13/21 11:43:41.411905 zmeventnotification[656].DB1 [main:1036] [FATHER: Already working on Monitor:1, Event:89651, do nothing else]
09/13/21 11:43:41.411930 zmeventnotification[656].DB1 [principal:1036] [PARENT: checkEvents() new events found=0]
09.13.21 11:43:41.411954 zmeventnotification[656].DB1 [principal:1036] [PARENT: There are 0 new events to process]
09.13.21 11:43:41.411992 zmeventnotification[656].DB1 [main:1036] [PARENT: ---------->Check FIN (active branches: 1, total branches: 4, active hooks: 1)<------]
==> /var/log/zm/zmesdetect_m1.log <==
9/13/21 11:43:42 zmesdetect_m1 [1025] DBG1 detect_sequence.py: 160 [Reset templates, will load on next run]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG3 detect_sequence.py:637 [Use manual lock as we are only using one template]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG2 Media.py:51 [SSL certificate check for media has been disabled]
13.09.21 11:43:42 zmesdetect_m1[1025] DBG2 Media.py:99 [Using URL 89651 for streaming]
09/13/21 11:43:42 zmesdetect_m1[1025] DBG2 Media.py:114 [We only process frames: ['snapshot', 'alarm']]
09/13/21 11:43:42 zmesdetect_m1[1025] DBG2 Media.py:137 [No need to start streams, we select imageshttps://127.0.0.1/zm/index.php?view=image&eid=89651]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG3 Media.py:271 [Learnhttps://127.0.0.1/zm/index.php?view=ima ... d=snapshot]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG3 api.py:144 [No need to login again because access token has 119.91649486666667 minutes left]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG3 api.py:272 [make_request called with url=https://127.0.0.1/zm/index.php?view=ima ... d=snapshotpayload={} type=get query={'token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJab25lTWluZGVyIiwiaWF0IjoxNjMxNTI2MjE3LCJleHAiOjE2MzE1MzM0MTcsInVzZXIiOiJhZG1pbiIsInR5cGUiOiJhY2Nlc3MifQ.5Dm92e5hiWYCN8PjA8Cb5fT7Mr_P8fL6I-vhLIn5oFc'}]
09/13/21 11:43:42 zmesdetect_m1 [1025] DBG1 detect_sequence.py: 654 [perf: start to milestone: snapshot]
09/13/21 11:43:42 zmesdetect_m1[1025] DBG1 detect_sequence.py:664 [sequence of detection types to be performed: ['object']]
09/13/21 11:43:42 zmesdetect_m1 [1025] DBG1 detect_sequence.py: 669 [============= Frame: Snapshot Performing object detection type in sequence ===== == = ==== ======]
09/13/21 11:43:42 zmesdetect_m1[1025] DBG2 detect_sequence.py:174 [TPU object detection is ignored because it is disabled]
13.09.21 11:43:42 zmesdetect_m1[1025] DBG2 detect_sequence.py:178 [Ladesequenz: YoloV4 GPU/CPU]
13.09.21 11:43:42 zmesdetect_m1[1025] DBG2 detect_sequence.py:179 [Modelltyp wird initialisiert:Objekt mit Optionen:{'name': 'YoloV4 GPU/CPU', 'enabled': 'yes', ' object_config' : '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'object_labels': '/var/lib /zmeventnotification /models/yolov4/coco.names', 'object_min_trust': 0.3, 'object_framework': 'opencv', 'object_processor': 'gpu', 'gpu_max_processes': 1, 'gpu_max_lock_wait': 100, 'cpu_max_processes': 3, 'cpu_max_lock_wait': 100, 'max_detection_size': '90%', 'disable_locks': 'não'}]
09.13.21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:37 [Portallock: max:1, nome:pyzm_uid33_gpu_lock, tempo limite:100]
13/09/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:49 [esperando pyzm_uid33_gpu_lock portalock...]
13/09/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:51 [Pyzm_uid33_gpu_lock portalock obtido]
09/13/21 11:43:42 zmesdetect_m1 [1025] DBG3 detect_sequence.py: 689 [object has same_model_sequence strategy first]
13.09.21 11:43:42 zmesdetect_m1[1025] DBG1 detect_sequence.py:701 [--------- Frame:snapshot Laufvariante: #1 ------------ -]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:123 [detect extracted image dimensions as: 800wx450h]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:46 [pyzm_uid33_gpu_lock portalock you got]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG1 yolo.py:84 [|-------- Loading model "YoloV4 GPU/CPU" from disk ------- - - ----|]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG1 yolo.py:91 [Perf: Processor:GPU Initialization Yolo (load model /var/lib/zmeventnotification/models/yolov4/yolov4.weights from disk) took off : 82.48ms]
13/09/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:107 [definir back-end CUDA para OpenCV]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG3 yolo.py:108 [If you didn't set your CUDA_ARCH_BIN correctly during OpenCV compilation, you will get Invalid Device/Make_Policy errors during detection]
- ---------|]
13/09/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:67 [liberado pyzm_uid33_gpu_lock portalock]
9/13/21 11:43:42 zmesdetect_m1[1025] ERR detect_sequence.py:713 [Error running model: invalid index for scalar variable.]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG2 detect_sequence.py:714 [Trace(last call):
File "/usr/local/lib/python3.9/dist-packages/pyzm/ml/detect_sequence.py", line 710, in detect_stream
_b,_l,_c,_m = m.detect(imagen=marco)
I dated "/usr/local/lib/python3.9/dist-packages/pyzm/ml/object.py", Zeile 65, on detection
b,l,c,_model_names = self.model.detect(imagem)
I dated "/usr/local/lib/python3.9/dist-packages/pyzm/ml/yolo.py", Zeile 156, on detection
ln = [ln[i[0] - 1] for myself.net.getUnconnectedOutLayers()]
File "/usr/local/lib/python3.9/dist-packages/pyzm/ml/yolo.py", line 156, in <listcomp>
ln = [ln[i[0] - 1] for myself.net.getUnconnectedOutLayers()]
IndexError: invalid index for scalar variable.
]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG2 detect_sequence.py:770 [No matching object found in structure: snapshot]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG3 Media.py:271 [Learnhttps://127.0.0.1/zm/index.php?view=ima ... &fid=alarm]
09/13/21 11:43:42 zmesdetect_m1[1025] DBG3 api.py:144 [No need to login again because access token has 119.91440821666667 minutes left]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG3 api.py:272 [make_request called with url=https://127.0.0.1/zm/index.php?view=ima ... &fid=alarmpayload={} type=get query={'token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJab25lTWluZGVyIiwiaWF0IjoxNjMxNTI2MjE3LCJleHAiOjE2MzE1MzM0MTcsInVzZXIiOiJhZG1pbiIsInR5cGUiOiJhY2Nlc3MifQ.5Dm92e5hiWYCN8PjA8Cb5fT7Mr_P8fL6I-vhLIn5oFc'}]
9/13/21 11:43:42 zmesdetect_m1 [1025] DBG1 detect_sequence.py: 654 [perf: start to milestone: alarm]
09/13/21 11:43:42 zmesdetect_m1[1025] DBG1 detect_sequence.py:664 [sequence of detection types to be performed: ['object']]
09/13/21 11:43:42 zmesdetect_m1[1025] DBG1 detect_sequence.py:669 [====== frame: alarm execution sequence object detection type === == === ==== ======]
09/13/21 11:43:42 zmesdetect_m1 [1025] DBG3 detect_sequence.py: 689 [object has same_model_sequence strategy first]
13.09.21 11:43:42 zmesdetect_m1[1025] DBG1 detect_sequence.py:701 [-------- Frame:alarm Laufvariante: #1 ------------- -]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:123 [detect extracted image dimensions as: 800wx450h]
13/09/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:49 [esperando pyzm_uid33_gpu_lock portalock...]
13/09/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:51 [Pyzm_uid33_gpu_lock portalock obtido]
- ---------|]
13/09/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:67 [liberado pyzm_uid33_gpu_lock portalock]
9/13/21 11:43:42 zmesdetect_m1[1025] ERR detect_sequence.py:713 [Error running model: invalid index for scalar variable.]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG2 detect_sequence.py:714 [Trace(last last call):
File "/usr/local/lib/python3.9/dist-packages/pyzm/ml/detect_sequence.py", line 710, in detect_stream
_b,_l,_c,_m = m.detect(imagen=marco)
I dated "/usr/local/lib/python3.9/dist-packages/pyzm/ml/object.py", Zeile 65, on detection
b,l,c,_model_names = self.model.detect(imagem)
I dated "/usr/local/lib/python3.9/dist-packages/pyzm/ml/yolo.py", Zeile 156, on detection
ln = [ln[i[0] - 1] for myself.net.getUnconnectedOutLayers()]
File "/usr/local/lib/python3.9/dist-packages/pyzm/ml/yolo.py", line 156, in <listcomp>
ln = [ln[i[0] - 1] for myself.net.getUnconnectedOutLayers()]
IndexError: invalid index for scalar variable.
]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG2 detect_sequence.py:770 [No object match found in frame: alert]
13/09/21 11:43:42 zmesdetect_m1[1025] DBG2 yolo.py:63 [pyzm_uid33_gpu_lock portalock ya lanzado]
9/13/21 11:43:42 zmesdetect_m1[1025] DBG1 detect_sequence.py: 827 [perf: TOTAL detection sequence (with image payloads) took: 156.72 ms to process 89651]
09/13/21 11:43:42 zmesdetect_m1[1025] DBG1 zm_detect.py:557 [close logs]
==> /var/log/zm/zmeventnotification.log <==
09.13.21 11:43:42.433004 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 parsing hook: y []]
13/09/21 11:43:42.433065 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Hook start devuelto con texto: json: [] Salida: 1]
09/13/21 11:43:44.433564 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Rules: Audit rules for caused alarm by eid:89651, monitor:1, on: Mon 13 Sep 11:43:44 2021 with cause:Motion Zone_1]
09/13/21 11:43:44.433622 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Rules: No rule found for monitor , allowed: 1]
09/13/21 11:43:44.433668 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Connection rules matching alert . .. ]
09/13/21 11:43:44.433742 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Checking alarm conditions for tokens ending in : . ..EF3j5E6thf]
13.09.21 11:43:44.433799 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Event Monitor 1: must be sent as 149.542259931564 is > = range from ]
09/13/21 11:43:44.433826 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Token is unique, shouldSendEventToConn returned true , then calls sendEvent]
9/13/21 11:43:44.433884 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 child finished writing to parent]
09/13/21 11:43:44.433919 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Check alarm conditions for tokens that end in: . ..j4YV-wy1CZ]
09.13.21 11:43:44.433953 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Event Monitor 1: should be sent as 149.542000055313 en > = range of 10]
09/13/21 11:43:44.433978 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 The token is unique, shouldSendEventToConn returned true , then calls sendEvent]
9/13/21 11:43:44.434010 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 child finished writing to parent]
09/13/21 11:43:44.434066 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Checking alarm conditions for tokens ending in : . ..wE10R-TTLt]
9/13/21 11:43:44.434117 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Event Monitor 1: must be sent as 149.542000055313 is >= range 0]
09/13/21 11:43:44.434167 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 The token is unique, shouldSendEventToConn returned true , then calls sendEvent]
13.09.21 11:43:44.434230 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 isAllowedChannel: consiguió tipo:event_start resCode: 1]
09.13.21 11:43:44.434279 zmeventnotification[1021].INF [main:1048] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Do not send via FCM as notification filter on_success: all and on_fail: none]
9/13/21 11:43:44.434324 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 child finished writing to parent]
09/13/21 11:43:46.414869 zmeventnotification[656].DB1[main:1036] [PARENT: ----------> Check START (active branches: 1, total branches: 4, hooks active : 1 running for: 13 min)<--------------]
09/13/21 11:43:46.414944 zmeventnotification[656].DB1 [main:1036] [PARENT: After dialing: TOTAL: 3, ES_CONTROL: 0, FCM+WEB: 0, FCM: 3, WEB: 0, MQTT :0 , invalid WEB: 0, PENDING: 0]
13.09.21 11:43:46.415061 zmeventnotification[656].DB1 [main:1036] [PRENTE: RAW TEXT-->update_parallel_hooks--TYPE--del]
09.13.21 11:43:46.415152 zmeventnotification[656].DB1 [main:1036] [PRENT: RAW TEXT-->timestamp--TYPE--1631525486.40715--SPLIT--1--SPLIT--1631526224.43384]
13.09.21 11:43:46.415194 zmeventnotification[656].DB1 [principal:1036] [PARENT: Job: Update Last Monitor Send Timestamp: 1 to 1631526224.43384 for id: 1631525486.40715]
09.13.21 11:43:46.415293 zmeventnotification[656].DB1 [main:1036] [PRENT: RAW TEXT-->timestamp--TYPE--1631525486.40717--SPLIT--1--SPLIT--1631526224.43399]
09.13.21 11:43:46.415325 zmeventnotification[656].DB1 [principal:1036] [PARENT: Job: Update Last Monitor Send Timestamp: 1 to 1631526224.43399 for id: 1631525486.40717]
09.13.21 11:43:46.415454 zmeventnotification[656].DB1 [main:1036] [PRENT: RAW TEXT-->timestamp--TYPE--1631525486.40717--SPLIT--1--SPLIT--1631526224.4342]
09.13.21 11:43:46.415485 zmeventnotification[656].DB1 [principal:1036] [PARENT: Job: Update Last Send Monitor Timestamp: 1 to 1631526224.4342 for id: 1631525486.40717]
9/13/21 11:43:46.415515 zmeventnotification[656].DB1[main:1036] [PARENT: There is 1 child branch active and 0 zm_detect processes running...]
09/13/21 11:43:46.415605 zmeventnotification[656].DB1 [principal:1036] [PARENT: checkEvents() new events found=0]
09.13.21 11:43:46.415658 zmeventnotification[656].DB1 [principal:1036] [PARENT: There are 0 new events to process]
09.13.21 11:43:46.415691 zmeventnotification[656].DB1 [main:1036] [PARENT: ---------->Check FIN (active branches: 1, total branches: 4, active hooks: 0 )<------]
13/09/21 11:43:46.434668 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 para 1 (IPD-L26Y02-BS ), dado SHM: estado=0, eid=89651]
09/13/21 11:43:46.434716 zmeventnotification[1021].INF [main:1048] [|----> FORK:IPD-L26Y02-BS(1), eid:89651 event 89651 for monitor 1 ha ended]
09.13.21 11:43:46.435026 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Final event object is: status=> pending with reason= >Movement: Zone_1]
09/13/21 11:43:48.435519 zmeventnotification[1021].INF [main:1048] [|----> YOKE:IPD-L26Y02-BS (1), eid:89651 unused end hooks/use hooks , sends a notification directly if the checks pass]
09/13/21 11:43:50.435823 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Rules: Audit rules for caused alarm by eid:89651, monitor:1, on: Mon Sep 13 11:43:50 2021 with cause:Motion Zone_1]
09/13/21 11:43:50.435879 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Rules: No rule found for monitor , allowed: 1]
09.13.21 11:43:50.435908 zmeventnotification[1021].INF [main:1048] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 End of event alarm is not sent when 'doesn't have one for this initial alert sent or failed to process the initial hook]
09/13/21 11:43:51.411500 zmeventnotification[656].DB1[main:1036] [PARENT: ----------> Check START (active branches: 1, total branches: 4, hooks active : 0 running for: 13 min)<--------------]
09/13/21 11:43:51.411572 zmeventnotification[656].DB1 [main:1036] [PARENT: After dialing: TOTAL: 3, ES_CONTROL: 0, FCM+WEB: 0, FCM: 3, WEB: 0, MQTT :0 , invalid WEB: 0, PENDING: 0]
9/13/21 11:43:51.411599 zmeventnotification[656].DB1[main:1036] [PARENT: There is 1 child branch active and 0 zm_detect processes running...]
09/13/21 11:43:51.411695 zmeventnotification[656].DB1 [principal:1036] [PARENT: checkEvents() new events found=0]
09.13.21 11:43:51.411721 zmeventnotification[656].DB1 [main:1036] [PARENT: There are 0 new events to process]
09.13.21 11:43:51.411751 zmeventnotification[656].DB1 [parent:1036] [PARENT: ---------->Check FIN (active branches:1, total branches:4, active hooks: 0 )<------]
13/09/21 11:43:54.436275 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Sair]
09.13.21 11:43:54.436358 zmeventnotification[1021].DB1 [main:1036] [|----> FORK:IPD-L26Y02-BS (1), eid:89651 Process completion:1021 to handle alarms]
09/13/21 11:43:56.411480 zmeventnotification[656].DB1[main:1036] [PARENT: ----------> Check START (active branches: 1, total branches: 4, hooks active : 0 running for: 13 min)<--------------]
09/13/21 11:43:56.411549 zmeventnotification[656].DB1 [main:1036] [PARENT: After dialing: TOTAL: 3, ES_CONTROL: 0, FCM+WEB: 0, FCM: 3, WEB: 0, MQTT :0 , invalid WEB: 0, PENDING: 0]
13.09.21 11:43:56.411718 zmeventnotification[656].DB1 [main:1036] [PRENTE: RAW TEXT-->active_event_delete--TYPE--1--SPLIT--89651]
13/09/21 11:43:56.411797 zmeventnotification[656].DB1 [main:1036] [PARENT: Job: delete active_event eid:89651, mid:1]
9/13/21 11:43:56.411868 zmeventnotification[656].DB1[main:1036] [PARENT: There are 0 active child branches and 0 zm_detect processes running...]
09/13/21 11:43:56.412039 zmeventnotification[656].DB1 [principal:1036] [PARENT: checkEvents() new events found=0]
09.13.21 11:43:56.412066 zmeventnotification[656].DB1 [main:1036] [PARENT: There are 0 new events to process]
09.13.21 11:43:56.412135 zmeventnotification[656].DB1 [parent:1036] [PARENT: ---------->Check FIN (active branches:0, total branches:4, active hooks: 0 )<------]
FAQs
How do you fix an invalid index and a scalar variable? ›
To solve the invalid index to scalar variable error, programmers must keep a close eye at writing the index value and number of square brackets.
How do you fix an invalid index? ›- There are one or more indexes marked invalid when a database restarts. ...
- Someone access an index marked as invalid.
- Run classic REORG TABLE command.
- Run REORG INDEXES or REORG INDEX command.
- Run CREATE INDEX statement.
- Run LOAD command, and it uses REBUILD option as INDEXING MODE.
The solution to this indexerror is very simple. Make sure to identify the type of the array whether it is a scalar and single-dimensional or multi-dimensional array. Taking the same example as the above, you don't have to use the index in the square bracket to access the value.
How do you fix errors must declare the scalar variable? ›...
You can resolve that issue in two ways:
- Insert the code that uses the variable in the dynamic SQL.
- Insert the value in a temporary table (table will be seen outside the scope) and use it outside dynamic – execute SELECT against the temporary table.
You may get the IndexError: list index out of range error for the following reasons: Trying to access an index that doesn't exist in a list. Using invalid indexes in your loops. Specifying a range that exceeds the indexes in a list when using the range() function.
How do I reset indexing options? ›1: Delete and Rebuild from Indexing Options
Press the Windows Key + S and type in indexing and click on Indexing Options. Click on Advanced. Under Troubleshooting, click on Rebuild. You will be notified that "Rebuilding the index might take a long time to complete.
In the Advanced Options dialog box, on the Index Settings tab, under Troubleshooting, click Rebuild. Note: A Rebuild Index dialog box opens warning that the "index might take a long time to complete." Choose OK to start rebuilding the index.
How to rebuild an index in Oracle? ›Rebuilding an Index
In Oracle, you can use the Alter Index Rebuild command to rebuild indexes. It rebuilds a spatial index or a specified partition of a partitioned index.
Use DataFrame.reset_index() function
reset_index() to reset the index of the updated DataFrame. By default, it adds the current row index as a new column called 'index' in DataFrame, and it will create a new row index as a range of numbers starting at 0.
Scalar variables are used to represent individual fixed-size data objects, such as integers and pointers.
How do I check if an index is invalid? ›
Answer. An index of a list is valid only if that index can be accessed from the list, without causing some error. Generally, this means that the index must be a whole number, and it must be less than the length of the list, because any index greater than the list length is out of range.
How do you initialize a scalar variable? ›- Variables declared at the file-scope level can be initialized. ...
- A constant expression can be used to initialize any global variable declared with the static storage-class-specifier .
A scalar variable stores a value with no internal components. The value can change. A scalar variable declaration specifies the name and data type of the variable and allocates storage for it. The declaration can also assign an initial value and impose the NOT NULL constraint.
What makes a variable scalar? ›A scalar variable, or scalar field, is a variable that holds one value at a time. It is a single component that assumes a range of number or string values. A scalar value is associated with every point in a space.
How do you fix Undefined index? ›Undefined Index in PHP is a Notice generated by the language. The simplest way to ignore such a notice is to ask PHP to stop generating such notices. You can either add a small line of code at the top of the PHP page or edit the field error_reporting in the php. ini file.
What is the problem with indexing? ›Let's break these down. Quality issues include your pages being thin in content, misleading, or overly biased. If your page doesn't provide unique, valuable content that Google wants to show to users, you will have a hard time getting it indexed (and shouldn't be surprised).
What type of error is an index error? ›What does it mean? An IndexError means that your code is trying to access an index that is invalid. This is usually because the index goes out of bounds by being too large. For example, if you have a list with three items and you try to access the fourth item, you will get an IndexError.
How long does it take to rebuild indexing? ›The rebuild times usually should last less than 10 minutes, but depends on the database size. The index rebuild is atomic operation that is not considered a data corruption threat. When you create or rebuild an index, you can specify a fill factor, which is the amount the data pages in the index that are filled.
What happens if I disable indexing? ›Disabling indexing will increase the time it takes for Windows and other apps to return search results. So, if you have a fast CPU and a standard hard drive, you can keep indexing on. Since hard drives are slow to read, Windows will take longer searching for files without indexed data.
How do I re enable indexing? ›Click the Start button, then click Control Panel. In the search box, type Indexing Options, and then press Enter. In the Indexing Options dialog box, click Modify. Select the drives that you want to index, and then select OK.
Can I stop indexing? ›
Disabling search indexing
Type "services" in the Windows search bar to get to the Services app and open it. Scroll down the list until you find "Windows Search" and double-click on it to open the "Search Properties" menu. Under the "Service status:" section, click the "Stop" button to temporarily disable the service.
Determining if an Index Needs to Be Rebuilt
In Oracle, you can get an idea of the current state of the index by using the ANALYZE INDEX VALIDATE STRUCTURE command. Here's some sample output from the INDEX_STATS Table: SQL> ANALYZE INDEX IDX_GAM_ACCT VALIDATE STRUCTURE; Statement processed.
Oracle Usage
Oracle 19 introduces automatic indexing feature. This feature automates the index management tasks by automatically creating, rebuilding, and dropping indexes based on the changes in application workload, thus improving database performance.
Use the ALTER INDEX statement to change or rebuild an existing index. The index must be in your own schema or you must have ALTER ANY INDEX system privilege. To execute the MONITORING USAGE clause, the index must be in your own schema.
How do I fix index DataFrame in Python? ›Use DataFrame.reset_index() function
reset_index() to reset the index of the updated DataFrame. By default, it adds the current row index as a new column called 'index' in DataFrame, and it will create a new row index as a range of numbers starting at 0.
A scalar variable, or scalar field, is a variable that holds one value at a time. It is a single component that assumes a range of number or string values. A scalar value is associated with every point in a space.
What is a scalar variable in SQL? ›A scalar variable stores a value with no internal components. The value can change. A scalar variable declaration specifies the name and data type of the variable and allocates storage for it. The declaration can also assign an initial value and impose the NOT NULL constraint.
What is an example of scalar data? ›A scalar data type is something that has a finite set of possible values, following some scale, i.e. each value can be compared to any other value as either equal, greater or less. Numeric values (floating point and integer) are the obvious examples, while discrete/enumerated values can also be considered scalar.
Where do you initialize static variables? ›For the static variables, we have to initialize them after defining the class. To initialize we have to use the class name then scope resolution operator (::), then the variable name. Now we can assign some value.
How do I reset an index to a column in Python? ›To reset the index in pandas, you simply need to chain the function . reset_index() with the dataframe object. On applying the . reset_index() function, the index gets shifted to the dataframe as a separate column.
How do you reset the index of a series in Python? ›
The reset_index() function is used to generate a new DataFrame or Series with the index reset. For a Series with a MultiIndex, only remove the specified levels from the index. Removes all levels by default.
What are the two main types of scalar variables? ›PHP scalar variables contain values of the following types: Integers: whole numbers or numbers without decimals. (e.g., 1, 999, 325812841) Floating-point numbers (also known as floats or doubles): numbers that contain decimals.
What is a scalar response? ›The functional linear model with scalar response is a regression model where the predictor is a functional random variable and the response is a real random variable defined on the same probability space.
What is a scalar in code? ›1. Scalar is a single number or value. 2. In Perl 5 and above and most programming languages a scalar is a single value that is not an array. A scalar may be string, integer, or a floating-point.
Which data type is scalar? ›The five scalar data types are numeric, character, integer, logical, and complex.
What is scalar function in SQL with example? ›Scalar functions are the built-in functions in SQL, and whatever be the input provided to the scalar functions, the output returned by these functions will always be a single value. In SQL, each record is operated independently by the scalar functions. Some of the commonly used scalar functions in SQL includes: UCASE()
How many variables can a scalar variable hold at one time? ›Scalar variables can hold only one value at a time. Array variables can hold multiple values.