Skip to content

Commit

Permalink
add "decode_type": "single_point" to header
Browse files Browse the repository at this point in the history
  • Loading branch information
yunica committed Jan 19, 2024
2 parents e47ba21 + 185c552 commit 0d763ee
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class DecondeRequestBody {
private int input_label;
private List<Integer> input_point;
private double zoom;
private String decode_type;

public DecondeRequestBody(List<Double> bbox, String image_embeddings, List<Integer> image_shape, List<Integer> input_point) {
this.bbox = bbox;
Expand All @@ -19,6 +20,7 @@ public DecondeRequestBody(List<Double> bbox, String image_embeddings, List<Integ
this.input_label = 1;
this.input_point = input_point;
this.zoom = 15;
this.decode_type = "single_point";
}


Expand Down Expand Up @@ -77,4 +79,12 @@ public double getZoom() {
public void setZoom(double zoom) {
this.zoom = zoom;
}

public String getDecode_type() {
return decode_type;
}

public void setDecode_type(String decode_type) {
this.decode_type = decode_type;
}
}

0 comments on commit 0d763ee

Please sign in to comment.