Skip to content

Commit

Permalink
Fix referenced var
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenAnpu committed Jul 12, 2024
1 parent bd9ef56 commit 53686ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions supervisely/train/src/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def add_input(self, project_info: sly.ProjectInfo, state: dict):
if project_version_id is None:
project_version_id = project_info.version.get("id", None) if project_info.version else None
self.api.app.workflow.add_input_project(project_info.id, version_id=project_version_id)
file_info = False
if state["weightsInitialization"] is not None and state["weightsInitialization"] == "custom":
file_info = self.api.file.get_info_by_path(sly.env.team_id(), state["_weightsPath"])
self.api.app.workflow.add_input_file(file_info, model_weight=True)
Expand Down

0 comments on commit 53686ba

Please sign in to comment.