A collection of useful tools!
Project description
Hello
A collection of useful tools!
Publish
# https://github.com/pypa/flit
flit publish
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
Installation
# requirements.txt
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 fiftyone>=0.17.2
pip install fiftyone[desktop]>=0.17.2
## $ conda list | grep voxel
## $ conda list | grep fiftyone
# 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
# hello
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'
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 -h
hello-video frames -h
hello-video info -h
hello-video resize -h
hello-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
hello2-1.3.1.tar.gz
(71.1 kB
view details)
Built Distribution
hello2-1.3.1-py3-none-any.whl
(95.6 kB
view details)
File details
Details for the file hello2-1.3.1.tar.gz
.
File metadata
- Download URL: hello2-1.3.1.tar.gz
- Upload date:
- Size: 71.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f910ad7750d14a7c99a67926b922114b289579b2f13297a253d43dcf52f4bdce |
|
MD5 | 34b8c8c280b5c2ce07b355652205f582 |
|
BLAKE2b-256 | f9287cc882fcfcc443d0b5dc824eb0cb7c83ea98e1cb2a4d2d8ea18f787c4c9d |
File details
Details for the file hello2-1.3.1-py3-none-any.whl
.
File metadata
- Download URL: hello2-1.3.1-py3-none-any.whl
- Upload date:
- Size: 95.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f967af5c6a0c21c1b45fed561daf9e3a812b97df480ad721becc31d29b809bd |
|
MD5 | 9d86b2c4468787069250270640e42aa8 |
|
BLAKE2b-256 | fb3dc50f86b6e27a70440e71fb0b0655daaf14c3afe222f7f319df0f082370b1 |