mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-24 06:14:55 +08:00
Remove PNNX debug files (#3677)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
b239246452
commit
44aa18c99a
@ -445,6 +445,8 @@ class Exporter:
|
|||||||
f.mkdir(exist_ok=True) # make ncnn_model directory
|
f.mkdir(exist_ok=True) # make ncnn_model directory
|
||||||
LOGGER.info(f"{prefix} running '{' '.join(cmd)}'")
|
LOGGER.info(f"{prefix} running '{' '.join(cmd)}'")
|
||||||
subprocess.run(cmd, check=True)
|
subprocess.run(cmd, check=True)
|
||||||
|
for f in 'debug.bin', 'debug.param', 'debug2.bin', 'debug2.param': # remove debug files
|
||||||
|
Path(f).unlink(missing_ok=True)
|
||||||
|
|
||||||
yaml_save(f / 'metadata.yaml', self.metadata) # add metadata.yaml
|
yaml_save(f / 'metadata.yaml', self.metadata) # add metadata.yaml
|
||||||
return str(f), None
|
return str(f), None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user