File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -156,3 +156,11 @@ A response code of 200 indicates successful deletion.
156
156
``` python
157
157
client.delete_model_run(" model_run_id" )
158
158
```
159
+
160
+ ## For Developers
161
+
162
+ Please install the pre-commit hooks by running the following commands:
163
+ ``` python
164
+ pip install pre- commit
165
+ pre- commit install
166
+ ```
Original file line number Diff line number Diff line change @@ -723,7 +723,6 @@ def predict(
723
723
724
724
for s_batch in s_batches :
725
725
payload = construct_segmentation_payload (s_batch , update )
726
- print ("PAYLOAD: " , payload )
727
726
response = self ._make_request (
728
727
payload , f"modelRun/{ model_run_id } /predict_segmentation"
729
728
)
@@ -921,9 +920,7 @@ def get_slice(self, slice_id: str) -> Slice:
921
920
"""
922
921
return Slice (slice_id , self )
923
922
924
- def slice_info (
925
- self , slice_id : str
926
- ) -> dict :
923
+ def slice_info (self , slice_id : str ) -> dict :
927
924
"""
928
925
This endpoint provides information about specified slice.
929
926
Original file line number Diff line number Diff line change @@ -152,6 +152,8 @@ def assert_polygon_annotation_matches_dict(
152
152
def assert_segmentation_annotation_matches_dict (
153
153
annotation_instance , annotation_dict
154
154
):
155
+ print ("RETURNED: " , str (annotation_instance ))
156
+ print ("ORIG: " , annotation_dict )
155
157
assert annotation_instance .mask_url == annotation_dict ["mask_url" ]
156
158
assert (
157
159
annotation_instance .annotation_id == annotation_dict ["annotation_id" ]
You can’t perform that action at this time.
0 commit comments