- 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
20 lines
484 B
Rust
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,
|
|
}
|