Skip to content

Commit

Permalink
fix end2end export
Browse files Browse the repository at this point in the history
  • Loading branch information
shensheng272 authored Sep 14, 2022
1 parent 21e0f28 commit 16301c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yolov6/models/end2end.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ def forward(self, x):
if self.with_preprocess:
x = x[:,[2,1,0],...]
x = x * (1/255)
x, _ = self.model(x)
if isinstance(x, list):
x = x[0]
else:
x = x
x = self.end2end(x)
return x

0 comments on commit 16301c0

Please sign in to comment.