Skip to content

Commit

Permalink
Add error logging in DINO
Browse files Browse the repository at this point in the history
  • Loading branch information
nik committed Apr 9, 2024
1 parent 8026f54 commit 5cb2c69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion label_studio_ml/examples/grounding_dino/dino.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ def one_task(self, task):
ls_host=LABEL_STUDIO_HOST,
task_id=task.get('id')
)
except:
except Exception as e:
logger.error(f"Error getting image path: {e}")
img_path = raw_img_path

src, img = load_image(img_path)
Expand Down

0 comments on commit 5cb2c69

Please sign in to comment.