pub struct LoftrConfig {
pub backbone_type: BackboneType,
pub resolution: (i64, i64),
pub fine_window_size: i64,
pub fine_concat_coarse_feat: bool,
pub resnetfpn: ResNetFpnConfig,
pub coarse: TransformerConfig,
pub match_coarse: MatchCoarseConfig,
pub fine: FineConfig,
}Expand description
High-level LoFTR model configuration.
Most users should start from LoftrConfig::outdoor and only override
fields when matching a known reference setup.
Fields§
§backbone_type: BackboneTypeBackbone implementation to use.
resolution: (i64, i64)Output stride pair (coarse_stride, fine_stride).
fine_window_size: i64Fine-stage local window size in feature-grid cells.
fine_concat_coarse_feat: boolWhether fine matching concatenates coarse token features before projection.
resnetfpn: ResNetFpnConfigResNet-FPN backbone parameters.
coarse: TransformerConfigCoarse transformer parameters.
match_coarse: MatchCoarseConfigCoarse matching parameters.
fine: FineConfigFine transformer parameters.
Implementations§
Source§impl LoftrConfig
impl LoftrConfig
Sourcepub fn outdoor() -> Self
pub fn outdoor() -> Self
Returns the default outdoor LoFTR preset used by this crate.
This is also the Default configuration.
Sourcepub fn indoor() -> Self
pub fn indoor() -> Self
Returns the legacy indoor LoFTR preset used by Kornia’s shared fixtures.
Sourcepub fn indoor_new() -> Self
pub fn indoor_new() -> Self
Returns the indoor LoFTR preset with Kornia’s temperature fix enabled.
Trait Implementations§
Source§impl Clone for LoftrConfig
impl Clone for LoftrConfig
Source§fn clone(&self) -> LoftrConfig
fn clone(&self) -> LoftrConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoftrConfig
impl Debug for LoftrConfig
Source§impl Default for LoftrConfig
impl Default for LoftrConfig
Source§impl PartialEq for LoftrConfig
impl PartialEq for LoftrConfig
Source§fn eq(&self, other: &LoftrConfig) -> bool
fn eq(&self, other: &LoftrConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoftrConfig
Auto Trait Implementations§
impl Freeze for LoftrConfig
impl RefUnwindSafe for LoftrConfig
impl Send for LoftrConfig
impl Sync for LoftrConfig
impl Unpin for LoftrConfig
impl UnsafeUnpin for LoftrConfig
impl UnwindSafe for LoftrConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more