Support both *.yml and *.yaml files (#4086)
Co-authored-by: ChristopherRogers1991 <ChristopherRogers1991@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sungjoo(Dennis) Hwang <48212469+Denny-Hwang@users.noreply.github.com>
This commit is contained in:
parent
f2ed85790f
commit
b507e3a032
10 changed files with 17 additions and 17 deletions
|
|
@ -177,7 +177,7 @@ class Exporter:
|
|||
im = torch.zeros(self.args.batch, 3, *self.imgsz).to(self.device)
|
||||
file = Path(
|
||||
getattr(model, 'pt_path', None) or getattr(model, 'yaml_file', None) or model.yaml.get('yaml_file', ''))
|
||||
if file.suffix == '.yaml':
|
||||
if file.suffix in ('.yaml', '.yml'):
|
||||
file = Path(file.name)
|
||||
|
||||
# Update model
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue