hello2


Namehello2 JSON
Version 2.0.16 PyPI version JSON
download
home_pageNone
SummaryA collection of useful tools!
upload_time2024-03-23 06:29:24
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Hello
A collection of useful tools!

## Publish
[hello2 · PyPI](https://pypi.org/project/hello2/)
```sh
# https://github.com/pypa/flit
flit publish
```

## Installation
```sh
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
```sh
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
```sh
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](https://www.sphinx-doc.org/en/master/),安装指令为`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 .
```

目录结构如下:
```textile
.
├── 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/](https://github.com/flystarhe/hello/blob/main/hello/fiftyone/examples)

### hello-onnx
- For examples: [hello/onnx/examples/](https://github.com/flystarhe/hello/tree/main/hello/onnx/examples)

### 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`
    - 为X3M量化步骤生成校准数据
- `hello-x3m config -h`
    - 为X3M编译步骤生成配置文件

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "hello2",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Hejian <flystarhe@qq.com>",
    "download_url": "https://files.pythonhosted.org/packages/88/ef/be8657033a6d9364e1c6f5c864faa95cce437682a73008eedf8d2f6b4b04/hello2-2.0.16.tar.gz",
    "platform": null,
    "description": "# Hello\nA collection of useful tools!\n\n## Publish\n[hello2 \u00b7 PyPI](https://pypi.org/project/hello2/)\n```sh\n# https://github.com/pypa/flit\nflit publish\n```\n\n## Installation\n```sh\npip install -U hello2\npip install -U hello2 -i https://pypi.org/simple\npip install -U hello2 -i https://pypi.tuna.tsinghua.edu.cn/simple\npip install -U 'git+https://github.com/flystarhe/hello'\n```\n\n## Environment\n```sh\nconda info -e\nconda create -y -n myenv python=3.9\nconda activate myenv\n\n# pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple\npip install notebook\n\nconda deactivate\nconda remove -y -n myenv --all\nconda info -e\n```\n\n## Requirements\n```sh\npip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple\npip install opencv-python Pillow scikit-image scikit-learn simplejson onnx prettytable pycocotools\n\n# FFmpeg\napt install -y ffmpeg\nconda install -c pytorch ffmpeg\nconda install -c conda-forge ffmpeg\n\n# OpenCV\npip uninstall -y opencv-python-headless\npip install opencv-python --ignore-installed\n\n# fiftyone\npip install --upgrade fiftyone\npip install fiftyone>=0.21.0\n\n# pyomniunwarp\npip install -U pyomniunwarp>=0.2.4\n\n# onnxruntime (optional)\npip install onnx onnx-simplifier onnxruntime  # CPU\npip install onnx onnx-simplifier onnxruntime-gpu  # GPU\n\n# PyTorch 1.10.2 (optional)\npip install torch==1.10.2+cu113 torchvision==0.11.3+cu113 -f https://download.pytorch.org/whl/torch_stable.html\n\n# PyTorch 1.12.1 (optional)\npip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113\n```\n\n## Docs\n\u9996\u5148\u5b89\u88c5Python\u6587\u6863\u751f\u6210\u5de5\u5177[Sphinx](https://www.sphinx-doc.org/en/master/)\uff0c\u5b89\u88c5\u6307\u4ee4\u4e3a`pip install -U sphinx`\u3002\n\nPDF\u6587\u6863\u4f9d\u8d56\uff1a`apt-get update && apt-get install texlive-full`\u3002\nPDF\u6587\u6863\u4f9d\u8d56\uff1a`apt-get install texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra`\u3002\nPDF\u6587\u6863\u4f9d\u8d56\uff1a`apt-get install texlive-xetex texlive-fonts-recommended texlive-plain-generic`\u3002\n\n- `cd docs`\u8fdb\u5165\u6587\u6863\u76ee\u5f55\n- `sphinx-quickstart`\u521d\u59cb\u5316\n- `docs/source/conf.py`\u5b8c\u5584\u914d\u7f6e\n- `sphinx-apidoc -o source -f -e ..`\u751f\u6210API\u6587\u6863\n- `make html/make help`\u751f\u6210\u6587\u6863\n- `make clean`\u6e05\u7a7a\u6587\u6863\u76ee\u5f55\n\n\u5728\u9879\u76ee\u6839\u76ee\u5f55\u6267\u884c\u65f6\uff0c\u9700\u8981\u4fee\u6539\u6587\u6863\u8f93\u51fa\u8def\u5f84\u53ca\u6a21\u5757\u8def\u5f84\uff1a\n```\nsphinx-apidoc -o docs/source -f -e .\n```\n\n\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b\uff1a\n```textile\n.\n\u251c\u2500\u2500 Makefile\n\u251c\u2500\u2500 build  # \u5b58\u653e`make html`\u751f\u6210\u7684\u6587\u6863\u7684\u76ee\u5f55\n\u251c\u2500\u2500 make.bat\n\u2514\u2500\u2500 source  # \u5b58\u653e\u7528\u4e8e\u751f\u6210\u6587\u6863\u7684\u6e90\u6587\u4ef6\n    \u251c\u2500\u2500 _static\n    \u251c\u2500\u2500 _templates\n    \u251c\u2500\u2500 conf.py  # \u914d\u7f6e\u6587\u4ef6\n    \u2514\u2500\u2500 index.rst\n```\n\n## Usage\n\n### hello-data\n- `hello-data coco2yolo -h`\n    - COCO format to YOLOv5\n\n### hello-fiftyone\n- For examples: [hello/fiftyone/examples/](https://github.com/flystarhe/hello/blob/main/hello/fiftyone/examples)\n\n### hello-onnx\n- For examples: [hello/onnx/examples/](https://github.com/flystarhe/hello/tree/main/hello/onnx/examples)\n\n### hello-video\n- `hello-video clip -h`\n- `hello-video fisheye -h`\n- `hello-video info -h`\n- `hello-video resize -h`\n- `hello-video unwarp -h`\n\n### hello-x3m\n- `hello-x3m preprocess -h`\n    - \u4e3aX3M\u91cf\u5316\u6b65\u9aa4\u751f\u6210\u6821\u51c6\u6570\u636e\n- `hello-x3m config -h`\n    - \u4e3aX3M\u7f16\u8bd1\u6b65\u9aa4\u751f\u6210\u914d\u7f6e\u6587\u4ef6\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A collection of useful tools!",
    "version": "2.0.16",
    "project_urls": {
        "Home": "https://github.com/flystarhe/hello"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2d028ba8de1a6ef5b9198313d95e9795ad6011a4b64e31af2e03188cff0816b8",
                "md5": "56eaaa4c4ad55983fd548ca00804cbc5",
                "sha256": "b54dbb7fcdbadfd9f4aa285017bb1ea83a23d87ce056d0f27c1da3e2a3721e6c"
            },
            "downloads": -1,
            "filename": "hello2-2.0.16-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "56eaaa4c4ad55983fd548ca00804cbc5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 126616,
            "upload_time": "2024-03-23T06:29:17",
            "upload_time_iso_8601": "2024-03-23T06:29:17.761080Z",
            "url": "https://files.pythonhosted.org/packages/2d/02/8ba8de1a6ef5b9198313d95e9795ad6011a4b64e31af2e03188cff0816b8/hello2-2.0.16-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "88efbe8657033a6d9364e1c6f5c864faa95cce437682a73008eedf8d2f6b4b04",
                "md5": "7729f35792dbfa3623f00239fc2a22c7",
                "sha256": "894749fe9e2a6a7fe7b033457155a6dba4abb272a863bddf4af5b33c8ebcf560"
            },
            "downloads": -1,
            "filename": "hello2-2.0.16.tar.gz",
            "has_sig": false,
            "md5_digest": "7729f35792dbfa3623f00239fc2a22c7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 89238,
            "upload_time": "2024-03-23T06:29:24",
            "upload_time_iso_8601": "2024-03-23T06:29:24.315648Z",
            "url": "https://files.pythonhosted.org/packages/88/ef/be8657033a6d9364e1c6f5c864faa95cce437682a73008eedf8d2f6b4b04/hello2-2.0.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-23 06:29:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "flystarhe",
    "github_project": "hello",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "hello2"
}
        
Elapsed time: 0.58281s