diff --git a/annolid/gui/app.py b/annolid/gui/app.py index beb6afc..0435541 100644 --- a/annolid/gui/app.py +++ b/annolid/gui/app.py @@ -1368,7 +1368,7 @@ def deleteAllFuturePredictions(self): if not prediction_file_path.endswith('.json'): continue - frame_number = int(prediction_file_path.split( + frame_number = int(prediction_file.split( '_')[-1].replace('.json', '')) is_future_frames = frame_number > self.frame_number is_manually_saved = os.path.exists(