Skip to content

Commit

Permalink
improve accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
deng232 committed Aug 23, 2023
1 parent 8f9f6b5 commit afbe25d
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 109 deletions.
212 changes: 106 additions & 106 deletions DINO_SAM_Zoe.ipynb

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions segdepth.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@

depth_map = model_zoe_nk.infer_pil(image, output_type="numpy")

# list of pixles of a masked region in depth_map
masklist = [depth_map[mask] for mask in detections[0].mask]

#depth_map = model_zoe_nk.infer_pil(image, output_type="numpy")
depth_map = model_zoe_nk.infer_pil(image, output_type="numpy",pad_input=False) # "pad_input = False" increase accuracy

box_annotator = sv.BoxAnnotator(text_scale=1.5)
mask_annotator = sv.MaskAnnotator()
Expand Down

0 comments on commit afbe25d

Please sign in to comment.