Skip to content

Commit

Permalink
Remove problematic mutation of the perch tfhub config. (Running from_…
Browse files Browse the repository at this point in the history
…config again with the same config leads to an error, because both tfhub_version and model_path are set.)

PiperOrigin-RevId: 682670172
  • Loading branch information
sdenton4 authored and copybara-github committed Oct 8, 2024
1 parent a71b484 commit ae6aee9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion chirp/projects/zoo/taxonomy_model_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ def from_tfhub(cls, config: config_dict.ConfigDict) -> 'TaxonomyModelTF':

# Get the labels CSV from TFHub.
model_path = hub.resolve(model_url)
config.model_path = model_path
class_lists_glob = (epath.Path(model_path) / 'assets').glob('*.csv')
class_lists = cls.load_class_lists(class_lists_glob)
return cls(
Expand Down

0 comments on commit ae6aee9

Please sign in to comment.