angadsingh / argos

a spacial-temporal pattern detection system for home automation
135 stars 12 forks source link

Extend base config for stream example #7

Closed edalquist closed 3 years ago

edalquist commented 3 years ago

I cloned the example stream config and then get errors like the following

(argos-venv) edalquist@argos:~/argos$ python stream.py --ip 0.0.0.0 --port 8080 --config configs.driveway_stream
INFO:__main__:package import START
INFO:__main__:package import END
INFO:notifier:mqtt init
INFO:__main__:flask init..
INFO:__main__:start reading video file
INFO:__main__:TFObjectDetector init START
 * Serving Flask app "stream" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
INFO:werkzeug: * Running on http://0.0.0.0:8080/ (Press CTRL+C to quit)
INFO:input.rtmpstream:rtmp capture init START
2021-01-24 22:11:31.078193: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-01-24 22:11:31.078223: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
INFO:detection.door_detect:stateHistory: []
INFO:detection.door_detect:stateHistory: []
INFO:input.rtmpstream:rtmp capture init END
INFO:__main__:TFObjectDetector init END
INFO:__main__:detect_objects init..
INFO:detection.door_detect:door state changed: DoorStates.DOOR_CLOSED
INFO:detection.door_detect:motion state changed: MotionStates.NO_MOTION
INFO:__main__:od=0.00/md=0.00/st=0.00 fps
INFO:lib.ha_mqtt:mqttPublish: MotionStates.NO_MOTION
INFO:werkzeug:192.168.0.233 - - [24/Jan/2021 22:11:33] "GET /image HTTP/1.1" 200 -
INFO:detection.door_detect:stateHistory: [DoorStates.DOOR_CLOSED[1], MotionStates.NO_MOTION[1]]
Exception in thread Thread-13:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "stream.py", line 92, in detect_objects
    output_frame, crop, motion_outside = self.motion_detector.detect(output_frame)
  File "/home/edalquist/argos/detection/motion_detector.py", line 65, in detect
    if self.config.md_enable_erode:
AttributeError: 'Config' object has no attribute 'md_enable_erode'