Hello
A collection of useful tools!
Publish
hello2 · PyPI
flit publish
Installation
pip install -U hello2
pip install -U hello2 -i https://pypi.org/simple
pip install -U hello2 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install -U 'git+https://github.com/flystarhe/hello'
Environment
conda info -e
conda create -y -n myenv python=3.9
conda activate myenv
pip install notebook
conda deactivate
conda remove -y -n myenv --all
conda info -e
Requirements
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip install opencv-python Pillow scikit-image scikit-learn simplejson onnx prettytable pycocotools
apt install -y ffmpeg
conda install -c pytorch ffmpeg
conda install -c conda-forge ffmpeg
pip uninstall -y opencv-python-headless
pip install opencv-python --ignore-installed
pip install --upgrade fiftyone
pip install fiftyone>=0.21.0
pip install -U pyomniunwarp>=0.2.4
pip install onnx onnx-simplifier onnxruntime
pip install onnx onnx-simplifier onnxruntime-gpu
pip install torch==1.10.2+cu113 torchvision==0.11.3+cu113 -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
Docs
首先安装Python文档生成工具Sphinx,安装指令为pip install -U sphinx
。
PDF文档依赖:apt-get update && apt-get install texlive-full
。
PDF文档依赖:apt-get install texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra
。
PDF文档依赖:apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic
。
cd docs
进入文档目录sphinx-quickstart
初始化docs/source/conf.py
完善配置sphinx-apidoc -o source -f -e ..
生成API文档make html/make help
生成文档make clean
清空文档目录
在项目根目录执行时,需要修改文档输出路径及模块路径:
sphinx-apidoc -o docs/source -f -e .
目录结构如下:
.
├── Makefile
├── build # 存放`make html`生成的文档的目录
├── make.bat
└── source # 存放用于生成文档的源文件
├── _static
├── _templates
├── conf.py # 配置文件
└── index.rst
Usage
hello-data
hello-fiftyone
hello-onnx
hello-video
hello-video clip -h
hello-video fisheye -h
hello-video info -h
hello-video resize -h
hello-video unwarp -h
hello-x3m
hello-x3m preprocess -h
hello-x3m config -h