Skip to content

Commit

Permalink
Merge pull request #161 from matangover/remove-debug-prints
Browse files Browse the repository at this point in the history
Remove CoreML debug prints
  • Loading branch information
psobot authored Jan 17, 2025
2 parents 53f6738 + 68228a7 commit f423902
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 f423902

Please sign in to comment.