代码拉取完成,页面将自动刷新
refresh: clean build install build_dist release
build:
python setup.py build
install:
python setup.py install
build_dist:
make clean
python setup.py sdist bdist_wheel
pip install dist/*.whl
release:
python -m twine upload dist/*
# lint:
# flake8 pyiqa/ --count --max-line-length=127 --ignore=W293,W503,W504,E126,E741
# test calibration and forward inference
test:
pytest tests/ -m calibration -v
pytest tests/test_metric_general.py::test_forward -v
pytest tests/test_metric_general.py::test_cpu_gpu_consistency -v
test_cs:
pytest tests/test_metric_general.py::test_cpu_gpu_consistency -v
test_grad:
pytest tests/test_metric_general.py::test_gradient_backward -v
test_dataset:
pytest tests/test_datasets_general.py -v
test_all:
pytest tests/ -v
clean:
rm -rf __pycache__
rm -rf pyiqa/__pycache__
rm -r pyiqa.egg-info
rm -rf build
rm -rf dist
pip uninstall -y pyiqa || true
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。