Skip to main content

streamlit components for image annotation

Project description

開発環境構築

フロントエンドを立ち上げ

NodeJS 16が必要

cd streamlit_image_annotation_customize/streamlit_image_annotation/Detection
yarn
yarn start

streamlit_image_annotation_customize/__init__.pyIS_RELEASE = False に設定する

annotation_tool コーロがローカル「streamlit_image_annotation_customize」ライブラリをインストールする

既存のライブラリを削除

pip uninstall streamlit_image_annotation_customize

streamlit_image_annotation_customizeのコードフォルダー(setup.pyファイルがあるフォルダー)で下記のコマンドで実行

pip install -e .

これでannotation_toolで利用できるようになり、フロントエンドの修正をしたら、すぐに反映される

pypiに公開

~/.pypirc を下記の内容で作成する (1回のみ)

[pypi]
  username = __token__
  password = ***

frontendビルド

cd streamlit_image_annotation_customize/Detection/frontend
yarn build

and set IS_RELEASE = True in streamlit_image_annotation_customize/__init__.py.

and setup.pyで公開バージョン番号を設定 version="xx.xx.xx"

make wheel

python setup.py sdist
python setup.py sdist bdist_wheel

upload

twine upload dist/*

利用

pip install streamlit_image_annotation_customize

Project details


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

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page