Files
RustyUI/crates/stable-diffusion-burn/burn-crates/burn-vision/src/base.rs
Ben_Kosytorz 3a67c0979c feat: update workspace paths and enhance gitignore
- Updated stablediffusion crate path from "../stable-diffusion-burn" to "./crates/stable-diffusion-burn" for proper workspace resolution
- Enhanced .gitignore to include generated model files (.mpk, .pt, .bin, .safetensors, .ckpt) and user_data directory
- Added Cargo.lock to gitignore with appropriate comment
- Reorganized IDE files section in gitignore for better clarity
- Added newline at end of file for proper formatting
2026-03-05 19:39:14 +01:00

20 lines
484 B
Rust

use derive_new::new;
/// 2D size used for vision ops.
#[derive(new, Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub struct Size {
/// Width of the element
pub width: usize,
/// Height of the element
pub height: usize,
}
/// 2D Point used for vision ops. Coordinates start at the top left.
#[derive(new, Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub struct Point {
/// X (horizontal) coordinate
pub x: usize,
/// Y (vertical) coordinate
pub y: usize,
}