feat: implement the facenet implementation for ort
This commit is contained in:
@@ -142,14 +142,6 @@ impl EmbeddingGenerator {
|
||||
.change_context(Error)?;
|
||||
Ok(output)
|
||||
}
|
||||
|
||||
// pub fn embedding(&self, roi: ArrayView3<u8>) -> Result<Array1<u8>> {
|
||||
// todo!()
|
||||
// }
|
||||
|
||||
// pub fn embeddings(&self, roi: ArrayView4<u8>) -> Result<Array2<u8>> {
|
||||
// todo!()
|
||||
// }
|
||||
}
|
||||
|
||||
impl FaceNetEmbedder for EmbeddingGenerator {
|
||||
@@ -160,7 +152,7 @@ impl FaceNetEmbedder for EmbeddingGenerator {
|
||||
|
||||
// Main trait implementation for backward compatibility
|
||||
impl crate::faceembed::FaceEmbedder for EmbeddingGenerator {
|
||||
fn run_models(&self, faces: ArrayView4<u8>) -> Result<Array2<f32>> {
|
||||
self.run_models(faces)
|
||||
fn run_models(&mut self, faces: ArrayView4<u8>) -> Result<Array2<f32>> {
|
||||
EmbeddingGenerator::run_models(self, faces)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user