class_docstr: Helper object for computing CREPE-based f0 metrics.
  
  Note that batch operations are not possible when CREPE has viterbi argument
  set to True.
class_docstr_tok: ["Helper","object","for","computing","CREPE-based","f0","metrics",".","Note","that","batch","operations","are","not","possible","when","CREPE","has","viterbi","argument","set","to","True","."]
code: def __init__(self, sample_rate, frame_rate, name="f0_crepe"):
      super().__init__(
          sample_rate=sample_rate, frame_rate=frame_rate, name=name
      )
      self._metrics = {
          "f0_dist": tf.keras.metrics.Mean("f0_dist"),
          "outlier_ratio": tf.keras.metrics.Accuracy("outlier_ratio"),
      }
  
imports: import dataclasses
  from absl import logging
  import ddsp
  import librosa
  import mir_eval
  import note_seq
  from note_seq import sequences_lib
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 1 to create a new F0CrepeMetrics object from inherited base classes: BaseMetrics with example: obj = F0CrepeMetrics(sample_rate, frame_rate, name)