Skip to content

Commit

Permalink
Remove CoreML debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
matangover committed Jan 17, 2025
1 parent 53f6738 commit 68228a7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions basic_pitch/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ def predict(self, x: npt.NDArray[np.float32]) -> Dict[str, npt.NDArray[np.float3
if self.model_type == Model.MODEL_TYPES.TENSORFLOW:
return {k: v.numpy() for k, v in cast(tf.keras.Model, self.model(x)).items()}
elif self.model_type == Model.MODEL_TYPES.COREML:
print(f"isfinite: {np.all(np.isfinite(x))}", flush=True)
print(f"shape: {x.shape}", flush=True)
print(f"dtype: {x.dtype}", flush=True)
result = cast(ct.models.MLModel, self.model).predict({"input_2": x})
return {
"note": result["Identity_1"],
Expand Down

0 comments on commit 68228a7

Please sign in to comment.