pub mod backbone;
pub mod detector;
pub mod events;
pub mod tracker;
pub use detector::Phantom;
pub use events::{EventConfig, EventEncoder};
pub use tracker::FaceStateTracker;
use axonml_autograd::Variable;
pub struct PhantomTrainOutput {
pub face_cls: Variable,
pub face_bbox: Variable,
}
#[derive(Debug, Clone)]
pub struct PhantomConfig {
pub input_width: u32,
pub input_height: u32,
pub backbone_refresh_interval: u32,
pub tracker_hidden_size: usize,
pub detection_threshold: f32,
}
impl Default for PhantomConfig {
fn default() -> Self {
Self {
input_width: 128,
input_height: 128,
backbone_refresh_interval: 30,
tracker_hidden_size: 64,
detection_threshold: 0.5,
}
}
}