Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Consolidated Anomaly Detector with Batched TTA
This module provides a modern, consolidated implementation of anomaly detection
with DeCo-Diff using efficient batched Test-Time Augmentation (TTA).
Key Features:
- Combined Batch TTA: Processes B images × N shifts together (~6.6× speedup)
{ lib, config, options, pkgs, ... }:
with lib;
let cfg = config.services.chrome-remote-desktop;
in {
options.services.chrome-remote-desktop = {
enable = mkEnableOption "Chrome Remote Desktop";
user = mkOption {
type = types.str;
description = ''
A user which the service will run as.