Skip to content

Commit

Permalink
fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Dec 16, 2022
1 parent 95784ab commit a6bba73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Melt/identify_bird.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def classify(file, model_file):
samples, length = load_samples(file)
model, meta = load_model(model_file)
labels = meta.get("labels")
predictions = model.predict(samples)
predictions = model.predict(samples, verbose=0)

track = None
tracks = []
Expand Down Expand Up @@ -104,7 +104,6 @@ def classify(file, model_file):
track.confidences.append(best_p)
tracks.append((track))

logging.info("Got tracks %s", [t.get_meta() for t in tracks])
return [t.get_meta() for t in tracks]


Expand Down
4 changes: 2 additions & 2 deletions Melt/identify_species.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def build_entry(begin, end, species, activation):
entry["begin_s"] = begin
entry["end_s"] = end
entry["species"] = species
entry["liklihood"] = round(activation * 0.01, 2)
entry["likelihood"] = round(activation * 0.01, 2)
return entry


Expand Down Expand Up @@ -156,7 +156,7 @@ def identify_species(recording, metadata, models):
model_paths = _model_paths(models)
for path in model_paths:
model = tf.keras.models.load_model(path)
activations = model.predict(samples).flatten()
activations = model.predict(samples, verbose=0).flatten()
activations_sum += activations

# generate labels from summed activations
Expand Down

0 comments on commit a6bba73

Please sign in to comment.