File tree Expand file tree Collapse file tree 4 files changed +77
-4
lines changed Expand file tree Collapse file tree 4 files changed +77
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ push :
5+ tags :
6+ - " v[0-9]+.[0-9]+.[0-9]+"
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Set up Python
16+ uses : actions/setup-python@v4
17+ with :
18+ python-version : " 3.10"
19+
20+ - name : Install dependencies
21+ run : |
22+ make setup
23+
24+ - name : Build and publish
25+ run : |
26+ uv build
27+
28+ - name : Publish
29+ env :
30+ UV_PUBLISH_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
31+ run : |
32+ uv publish
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ tagpr :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - uses : actions/create-github-app-token@v1
13+ id : app-token
14+ with :
15+ app-id : ${{ vars.APP_ID }}
16+ private-key : ${{ secrets.PRIVATE_KEY }}
17+
18+ - uses : actions/checkout@v4
19+ with :
20+ token : ${{ steps.app-token.outputs.token }}
21+
22+ - uses : Songmu/tagpr@v1
23+ env :
24+ GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
Original file line number Diff line number Diff line change 22
33[ ![ CI] ( https://github.com/py-img-gen/diffusers-ncsn/actions/workflows/ci.yaml/badge.svg )] ( https://github.com/py-img-gen/diffusers-ncsn/actions/workflows/ci.yaml )
44[ ![ Document] ( https://github.com/py-img-gen/diffusers-ncsn/actions/workflows/gh-pages.yaml/badge.svg )] ( https://github.com/py-img-gen/diffusers-ncsn/actions/workflows/gh-pages.yaml )
5- [ ![ ermongroup/ncsn] ( https://img.shields.io/badge/Official_code-GitHub -green )] ( https://github.com/ermongroup/ncsn )
5+ [ ![ ermongroup/ncsn] ( https://img.shields.io/badge/Official_code-ermongroup%2Fncsn -green )] ( https://github.com/ermongroup/ncsn )
66[ ![ Model on HF] ( https://img.shields.io/badge/🤗%20Model%20on%20HF-py--img--gen/ncsn--mnist-D4AA00 )] ( https://huggingface.co/py-img-gen/ncsn-mnist )
7+ [ ![ PyPI] ( https://img.shields.io/pypi/v/diffusers-ncsn.svg )] ( https://pypi.org/project/diffusers-ncsn/ )
78
89[ ` 🤗 diffusers ` ] ( https://github.com/huggingface/diffusers ) implementation of the paper [ "Generative Modeling by Estimating Gradients of the Data Distribution" [ Yang+ NeurIPS'19]] ( https://arxiv.org/abs/1907.05600 ) .
910
@@ -45,7 +46,7 @@ image.save("output.png")
4546First, install the package from this repository:
4647
4748``` shell
48- pip install git+https://github.com/py-img-gen/ diffusers-ncsn
49+ pip install diffusers-ncsn
4950```
5051
5152Then, you can use the package as follows:
Original file line number Diff line number Diff line change 11[project ]
22name = " diffusers-ncsn"
3- version = " 0.1.0 "
3+ version = " 0.0.1 "
44description = " Diffusers implementation of Noise Conditional Score Networks (NCSN) [Yang+ NeuriPS'19]"
55authors = [
66 { name = " Shunsuke Kitada" , email = " shunsuke.kitada.0831@gmail.com" },
77 { name = " Image Generation with Python" , email = " python.image.generation@gmail.com" },
88]
99readme = " README.md"
10+ license = " Apache-2.0"
11+ keywords = [
12+ " python" ,
13+ " diffusers" ,
14+ " generative-model" ,
15+ " noise conditional score networks" ,
16+ " ncsn" ,
17+ ]
18+ classifiers = [
19+ # Audience
20+ " Intended Audience :: Developers" ,
21+ # Supported Python versions
22+ " Programming Language :: Python :: 3" ,
23+ " Programming Language :: Python :: 3.10" ,
24+ " Programming Language :: Python :: 3.11" ,
25+ ]
1026requires-python = " >=3.10"
1127dependencies = [
1228 " diffusers[torch]>=0.31.0" ,
@@ -37,5 +53,5 @@ build-backend = "hatchling.build"
3753packages = [" src/ncsn" ]
3854
3955[tool .mypy ]
40- python_version = " 3.11 "
56+ python_version = " 3.10 "
4157ignore_missing_imports = true
You can’t perform that action at this time.
0 commit comments