We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
burn_dino/crates/bevy_burn_dino/src/main.rs
Line 189 in 0a59eb7
} // TODO: benchmark process_frame async fn process_frame<B: Backend>( input: RgbImage, dino_config: DinoVisionTransformerConfig, dino_model: Arc<Mutex<DinoVisionTransformer<B>>>, pca_model: Arc<Mutex<PcaTransform<B>>>, device: B::Device, ) -> Vec<u8> { let input_tensor: Tensor<B, 4> = preprocess_image(input, &dino_config, &device); let dino_features = { let model = dino_model.lock().unwrap(); model.forward(input_tensor.clone(), None).x_norm_patchtokens }; let batch = dino_features.shape().dims[0]; let elements = dino_features.shape().dims[1];
The text was updated successfully, but these errors were encountered:
mosure
No branches or pull requests
burn_dino/crates/bevy_burn_dino/src/main.rs
Line 189 in 0a59eb7
The text was updated successfully, but these errors were encountered: