Skip to content

Commit

Permalink
adjust postprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayof committed Sep 30, 2024
1 parent 1dade30 commit 13e415d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,9 @@ def florence2_sam2_image(
task=PromptTask.PHRASE_GROUNDING,
tool="florencev2_fine_tuning",
prompt=prompt,
postprocessing="sam2",
fine_tuning=FineTuning(
job_id=UUID(fine_tune_id),
postprocessing="sam2",
),
)
req_data = req_data_obj.model_dump(by_alias=True)
Expand Down
2 changes: 1 addition & 1 deletion vision_agent/tools/tools_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class FineTuning(BaseModel):
model_config = ConfigDict(populate_by_name=True)

job_id: UUID = Field(alias="jobId")
postprocessing: Optional[str] = None

@field_serializer("job_id")
def serialize_job_id(self, job_id: UUID, _info: SerializationInfo) -> str:
Expand All @@ -42,6 +41,7 @@ class Florence2FtRequest(BaseModel):
task: PromptTask
tool: str
prompt: Optional[str] = ""
postprocessing: Optional[str] = None
fine_tuning: Optional[FineTuning] = Field(None, alias="fineTuning")


Expand Down

0 comments on commit 13e415d

Please sign in to comment.