Skip to content

Commit

Permalink
allow for a single text prompt for VL cosine map
Browse files Browse the repository at this point in the history
  • Loading branch information
naokiyokoyamabd committed Aug 16, 2023
1 parent 49116cf commit c898a58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zsos/mapping/value_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ def get_value(point: np.ndarray) -> float:
pixel_value_within_radius(self.value_map[..., c], point_px, radius_px)
for c in range(self.value_channels)
]
if len(all_values) == 1:
return all_values[0]
value = reduce_fn(all_values)
return value

Expand Down

0 comments on commit c898a58

Please sign in to comment.