Skip to content

Commit c5c60e5

Browse files
committed
Bugfix
1 parent d6764d8 commit c5c60e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rfdetr/detr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def deploy_to_roboflow(self, workspace: str, project_ids: List[str], api_key: st
329329
outpath = os.path.join(tmp_out_dir, "weights.pth")
330330
torch.save(
331331
{
332-
"model": self.model.model,
332+
"model": self.model.model.state_dict(),
333333
"args": self.model.args
334334
}, outpath
335335
)

0 commit comments

Comments
 (0)