Resnet variants #7
GitHub Actions / Test Results
failed
Feb 15, 2024 in 0s
1 fail, 31 pass in 36m 59s
6 files 6 suites 36m 59s ⏱️
32 tests 31 ✅ 0 💤 1 ❌
192 runs 186 ✅ 0 💤 6 ❌
Results for commit f2ed7dd.
Annotations
Check warning on line 0 in tests.integration.test_sanity
github-actions / Test Results
All 6 runs failed: test_sanity[resnet_model.yaml] (tests.integration.test_sanity)
artifacts/Test Results [macOS-latest] (Python 3.10)/pytest.xml [took 1m 29s]
artifacts/Test Results [macOS-latest] (Python 3.11)/pytest.xml [took 52s]
artifacts/Test Results [ubuntu-latest] (Python 3.10)/pytest.xml [took 46s]
artifacts/Test Results [ubuntu-latest] (Python 3.11)/pytest.xml [took 32s]
artifacts/Test Results [windows-latest] (Python 3.10)/pytest.xml [took 30s]
artifacts/Test Results [windows-latest] (Python 3.11)/pytest.xml [took 31s]
Raw output
AssertionError: assert 0 > 0
+ where 0 = len([])
+ where [] = list(<generator object Path.rglob at 0x15c491d20>)
+ where <generator object Path.rglob at 0x15c491d20> = <bound method Path.rglob of PosixPath('sanity_infer_save_dir')>('*.png')
+ where <bound method Path.rglob of PosixPath('sanity_infer_save_dir')> = PosixPath('sanity_infer_save_dir').rglob
config_file = 'resnet_model.yaml'
@pytest.mark.parametrize(
"config_file", [path for path in os.listdir("configs") if "model" in path]
)
def test_sanity(config_file):
opts = [
"trainer.epochs",
"1",
"trainer.validation_interval",
"1",
"trainer.callbacks",
"[]",
]
result = subprocess.run(
["luxonis_train", "train", "--config", f"configs/{config_file}", *opts],
)
assert result.returncode == 0
opts += ["model.weights", str(list(Path("output").rglob("*.ckpt"))[0])]
opts += ["exporter.onnx.opset_version", "11"]
result = subprocess.run(
["luxonis_train", "export", "--config", f"configs/{config_file}", *opts],
)
assert result.returncode == 0
result = subprocess.run(
["luxonis_train", "eval", "--config", f"configs/{config_file}", *opts],
)
assert result.returncode == 0
save_dir = Path("sanity_infer_save_dir")
shutil.rmtree(save_dir, ignore_errors=True)
result = subprocess.run(
[
"luxonis_train",
"infer",
"--save-dir",
str(save_dir),
"--config",
f"configs/{config_file}",
*opts,
],
)
assert result.returncode == 0
assert save_dir.exists()
> assert len(list(save_dir.rglob("*.png"))) > 0
E AssertionError: assert 0 > 0
E + where 0 = len([])
E + where [] = list(<generator object Path.rglob at 0x15c491d20>)
E + where <generator object Path.rglob at 0x15c491d20> = <bound method Path.rglob of PosixPath('sanity_infer_save_dir')>('*.png')
E + where <bound method Path.rglob of PosixPath('sanity_infer_save_dir')> = PosixPath('sanity_infer_save_dir').rglob
tests/integration/test_sanity.py:63: AssertionError
Loading