您好,我在运行训练模型时,报错如下:
test setup failed
file /home/ldy/state_of_art/Sliding-Convolution-master/dataloader.py, line 67
def test_fn(batch):
E fixture 'batch' not found
available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
use 'pytest --fixtures [testpath]' for help on them.
/home/ldy/state_of_art/Sliding-Convolution-master/dataloader.py:67
E
test setup failed
file /home/ldy/state_of_art/Sliding-Convolution-master/main.py, line 67
def test(model, test_loader):
E fixture 'model' not found
available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, monkeypatch, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
use 'pytest --fixtures [testpath]' for help on them.
您好,我在运行训练模型时,报错如下: test setup failed file /home/ldy/state_of_art/Sliding-Convolution-master/dataloader.py, line 67 def test_fn(batch): E fixture 'batch' not found
/home/ldy/state_of_art/Sliding-Convolution-master/dataloader.py:67 E test setup failed file /home/ldy/state_of_art/Sliding-Convolution-master/main.py, line 67 def test(model, test_loader): E fixture 'model' not found