Skip to content

Commit

Permalink
move part table insert after insert into facemapProcessing
Browse files Browse the repository at this point in the history
  • Loading branch information
sidhulyalkar committed Nov 1, 2023
1 parent 8281f6a commit bc4f6d6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions element_facemap/facemap_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,6 @@ def make(self, key):
model_id, refined_model_name, model_description, model_output_path
)

self.RetrainedModelFile.insert1(
dict(
train_model_time=train_model_time,
retrain_file=model_output_path,
),
)

train_model_time = datetime.fromtimestamp(
model_output_path.stat().st_mtime
).strftime("%Y-%m-%d %H:%M:%S")
Expand All @@ -442,3 +435,10 @@ def make(self, key):
train_model_time=train_model_time,
)
)

self.RetrainedModelFile.insert1(
dict(
train_model_time=train_model_time,
retrain_file=model_output_path,
),
)

0 comments on commit bc4f6d6

Please sign in to comment.