Some checks failed
Linux Build / Linux cpu (push) Has been cancelled
Linux Build / Linux cpu-clang (push) Has been cancelled
Linux Build / Linux vulkan (push) Has been cancelled
mac-build / macOS CPU (push) Has been cancelled
Nix Build / Nix (cpu) (push) Has been cancelled
Nix Build / Nix (vulkan) (push) Has been cancelled
windows-build / Windows CPU (push) Has been cancelled
25 lines
596 B
C++
25 lines
596 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <filesystem>
|
|
#include <memory>
|
|
|
|
namespace engine::assets {
|
|
class TensorSource;
|
|
}
|
|
|
|
namespace engine::models::silero_vad {
|
|
|
|
struct SileroWeights {
|
|
std::shared_ptr<const assets::TensorSource> source;
|
|
};
|
|
|
|
struct SileroAssetPaths {
|
|
std::filesystem::path model_root;
|
|
std::filesystem::path checkpoint_path;
|
|
};
|
|
|
|
SileroAssetPaths resolve_silero_assets(const std::filesystem::path & model_path);
|
|
std::shared_ptr<const SileroWeights> load_silero_weights_cached(const std::filesystem::path & checkpoint_path);
|
|
|
|
} // namespace engine::models::silero_vad
|