Skip to content

Commit

Permalink
CVS-154056 Update training/optimization endpoint paths (#530)
Browse files Browse the repository at this point in the history
The /train and /optimize endpoints are deprecated, replaced by :train and :optimize, respectively
  • Loading branch information
leoll2 authored Dec 19, 2024
1 parent 0f0e573 commit 33b1c90
Show file tree
Hide file tree
Showing 82 changed files with 146 additions and 146 deletions.
2 changes: 1 addition & 1 deletion geti_sdk/rest_clients/model_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def optimize_model(self, model: Model, optimization_type: str = "pot") -> Job:
f"Invalid optimization type specified: `{optimization_type}`. Valid "
f"options are: {valid_optimization_types}"
)
optimize_model_url = model.base_url + "/optimize"
optimize_model_url = model.base_url + ":optimize"
payload = {
"enable_nncf_optimization": optimization_type == "nncf",
"enable_pot_optimization": optimization_type == "pot",
Expand Down
2 changes: 1 addition & 1 deletion geti_sdk/rest_clients/training_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def train_task(
self.monitor_jobs(jobs=task_training_jobs, timeout=timeout)

response = self.session.get_rest_response(
url=f"{self.base_url}/train", method="POST", data=data
url=f"{self.base_url}:train", method="POST", data=data
)

job_id = response["job_id"]
Expand Down
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions tests/fixtures/cassettes/DEVELOP/geti.cassette
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Loading

0 comments on commit 33b1c90

Please sign in to comment.