Audio, VAD & Diarization
Collection
Voice Activity Detection, Diarization, and Audio Processing models • 28 items • Updated
FP16 (half-precision) quantized version of Resemble Enhance for mobile deployment.
This FP16 quantized model is optimized for:
import torch
# Load FP16 state dict
state_dict = torch.load("mp_rank_00_model_states_fp16.pt", map_location="cpu")
# Load into model (model must be converted to FP16 first)
model = YourResembleEnhanceModel()
model = model.half() # Convert to FP16
model.load_state_dict(state_dict)
model.eval()
For iOS deployment, convert to CoreML:
import coremltools as ct
# Convert PyTorch model to CoreML
mlmodel = ct.convert(
model,
inputs=[ct.TensorType(name="input", shape=input_shape)],
minimum_deployment_target=ct.target.iOS16
)
# Save as .mlmodel
mlmodel.save("ResembleEnhanceFP16.mlmodel")
This is a quantized version of ResembleAI/resemble-enhance.
For more information about the original model, please refer to the original repository.
This model follows the same license as the original Resemble Enhance model.
Base model
ResembleAI/resemble-enhance