Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Refine User Scripts #2849

Merged
merged 15 commits into from
Dec 29, 2022
Prev Previous commit
Next Next commit
up
  • Loading branch information
juncaipeng committed Dec 15, 2022
commit 1331309987df7100d38c0c4d306888a82cccfb48
2 changes: 0 additions & 2 deletions tools/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def __init__(self, model, output_op):

def forward(self, x):
outs = self.model(x)

new_outs = []
for out in outs:
if self.output_op == 'argmax':
Expand Down Expand Up @@ -103,7 +102,6 @@ def main(args):
val_dataset_config = cfg.val_dataset_config
assert val_dataset_config != {}, 'No val_dataset specified in the configuration file.'
transforms = val_dataset_config.get('transforms', None)
assert transforms is not None, 'No transforms specified in val_dataset.'
output_dtype = 'int32' if args.output_op == 'argmax' else 'float32'

# TODO add test config
Expand Down