Compare commits
1 Commits
569c23e681
...
single_cha
Author | SHA1 | Date | |
---|---|---|---|
8473e4eb62 |
@ -176,7 +176,7 @@ class Exporter:
|
|||||||
raise SystemError('Edge TPU export only supported on Linux. See https://coral.ai/docs/edgetpu/compiler/')
|
raise SystemError('Edge TPU export only supported on Linux. See https://coral.ai/docs/edgetpu/compiler/')
|
||||||
|
|
||||||
# Input
|
# Input
|
||||||
im = torch.zeros(self.args.batch, 3, *self.imgsz).to(self.device)
|
im = torch.zeros(self.args.batch, 1, *self.imgsz).to(self.device)
|
||||||
file = Path(
|
file = Path(
|
||||||
getattr(model, 'pt_path', None) or getattr(model, 'yaml_file', None) or model.yaml.get('yaml_file', ''))
|
getattr(model, 'pt_path', None) or getattr(model, 'yaml_file', None) or model.yaml.get('yaml_file', ''))
|
||||||
if file.suffix in ('.yaml', '.yml'):
|
if file.suffix in ('.yaml', '.yml'):
|
||||||
|
Reference in New Issue
Block a user