Skip to content

Commit 35fb735

Browse files
authored
update the model param request to properly fail (#1523)
1 parent c077aea commit 35fb735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/dive_tasks/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def train_pipeline(self: Task, params: TrainingJob):
357357
config = params['config']
358358
annotated_frames_only = params['annotated_frames_only']
359359
label_text = params['label_txt']
360-
model = params['model']
360+
model = params.get('model', None)
361361
force_transcoded = params.get('force_transcoded', False)
362362

363363
pipeline_base_path = Path(conf.get_extracted_pipeline_path())

0 commit comments

Comments
 (0)