Make label colors consistent (#4951)

This commit is contained in:
Nicolas Mowen 2023-01-07 11:05:11 -07:00 committed by GitHub
parent 0dbf909ca6
commit 57dce4ec38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -968,7 +968,7 @@ class FrigateConfig(FrigateBaseModel):
for _, camera in config.cameras.items(): for _, camera in config.cameras.items():
enabled_labels.update(camera.objects.track) enabled_labels.update(camera.objects.track)
config.model.create_colormap(enabled_labels) config.model.create_colormap(sorted(enabled_labels))
for key, detector in config.detectors.items(): for key, detector in config.detectors.items():
detector_config: DetectorConfig = parse_obj_as(DetectorConfig, detector) detector_config: DetectorConfig = parse_obj_as(DetectorConfig, detector)