Skip to content

Commit

Permalink
catch ex
Browse files Browse the repository at this point in the history
  • Loading branch information
gferraro committed Oct 1, 2024
1 parent f160436 commit ae4a81c
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/modelevaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,18 +379,22 @@ def load_clip_data(cptv_file):
thermal_medians = np.uint16(thermal_medians)
data = []
for track in clip.tracks:
frames, preprocessed, masses = worker_model.preprocess(
clip_db, track, frames_per_classify=25, dont_filter=True
)
data.append(
(
f"{track.clip_id}-{track.get_id()}",
track.label,
frames,
preprocessed,
masses,
try:
frames, preprocessed, masses = worker_model.preprocess(
clip_db, track, frames_per_classify=25, dont_filter=True
)
)

data.append(
(
f"{track.clip_id}-{track.get_id()}",
track.label,
frames,
preprocessed,
masses,
)
)
except:
logging.error("Could not load %s", clip.clip_id, exc_info=True)
return data


Expand Down

0 comments on commit ae4a81c

Please sign in to comment.