mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
Use float
This commit is contained in:
parent
86baac1b85
commit
aa31c8a7c9
@ -403,7 +403,7 @@ def motion_activity():
|
|||||||
df.set_index(["start_time"], inplace=True)
|
df.set_index(["start_time"], inplace=True)
|
||||||
|
|
||||||
# normalize data
|
# normalize data
|
||||||
df = df.resample(f"{scale}S").sum().fillna(0)
|
df = df.resample(f"{scale}S").sum().fillna(0.0)
|
||||||
mean = df["motion"].mean()
|
mean = df["motion"].mean()
|
||||||
std = df["motion"].std()
|
std = df["motion"].std()
|
||||||
df["motion"] = (df["motion"] - mean) / std
|
df["motion"] = (df["motion"] - mean) / std
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user