A collection of useful tools!
Project description
Hello
A collection of useful tools!
Publish
# https://github.com/pypa/flit
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 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
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
# FFmpeg
apt install -y ffmpeg
conda install -c pytorch ffmpeg
conda install -c conda-forge ffmpeg
# OpenCV
pip uninstall -y opencv-python-headless
pip install opencv-python --ignore-installed
# fiftyone
pip install --upgrade fiftyone
pip install fiftyone>=0.21.0
# pyomniunwarp
pip install -U pyomniunwarp>=0.2.4
# onnxruntime (optional)
pip install onnx onnx-simplifier onnxruntime # CPU
pip install onnx onnx-simplifier onnxruntime-gpu # GPU
# PyTorch 1.10.2 (optional)
pip install torch==1.10.2+cu113 torchvision==0.11.3+cu113 -f https://download.pytorch.org/whl/torch_stable.html
# PyTorch 1.12.1 (optional)
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-data coco2yolo -h- COCO format to YOLOv5
hello-fiftyone
- For examples: hello/fiftyone/examples/
hello-onnx
- For examples: hello/onnx/examples/
hello-video
hello-video clip -hhello-video fisheye -hhello-video info -hhello-video resize -hhello-video unwarp -h
hello-x3m
hello-x3m preprocess -h- 为X3M量化步骤生成校准数据
hello-x3m config -h- 为X3M编译步骤生成配置文件
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hello2-2.0.8.tar.gz.
File metadata
- Download URL: hello2-2.0.8.tar.gz
- Upload date:
- Size: 90.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a916064337a7bdf4701a370887c5f6ba84711f63de91405de7e2cf34cc0bf2fd
|
|
| MD5 |
5a9c3f54c7b63ff55f9ef197d7d5ff67
|
|
| BLAKE2b-256 |
acd94fc57af8f6890bbf11ea0b0ae43e57a6b6186cfac3a08ccf7f3a4577ba37
|
File details
Details for the file hello2-2.0.8-py3-none-any.whl.
File metadata
- Download URL: hello2-2.0.8-py3-none-any.whl
- Upload date:
- Size: 125.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32e1c20cc4e060a23168d2f7de325bd3a60bde64f872bcf23ffdee151584530f
|
|
| MD5 |
95d9e68bc5045ff06e10bb2ce74cd9ac
|
|
| BLAKE2b-256 |
b76fc2520385a33a504caa78eb54c9fd0781b1ed15edfcdac1ba9562e978cc24
|