File tree 4 files changed +77
-4
lines changed
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 2
2
3
3
[ ![ 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 )
4
4
[ ![ 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 )
6
6
[ ![ 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/ )
7
8
8
9
[ ` 🤗 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 ) .
9
10
@@ -45,7 +46,7 @@ image.save("output.png")
45
46
First, install the package from this repository:
46
47
47
48
``` shell
48
- pip install git+https://github.com/py-img-gen/ diffusers-ncsn
49
+ pip install diffusers-ncsn
49
50
```
50
51
51
52
Then, you can use the package as follows:
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " diffusers-ncsn"
3
- version = " 0.1.0 "
3
+ version = " 0.0.1 "
4
4
description = " Diffusers implementation of Noise Conditional Score Networks (NCSN) [Yang+ NeuriPS'19]"
5
5
authors = [
6
6
{ name = " Shunsuke Kitada" , email = " shunsuke.kitada.0831@gmail.com" },
7
7
{ name = " Image Generation with Python" , email = " python.image.generation@gmail.com" },
8
8
]
9
9
readme = " 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
+ ]
10
26
requires-python = " >=3.10"
11
27
dependencies = [
12
28
" diffusers[torch]>=0.31.0" ,
@@ -37,5 +53,5 @@ build-backend = "hatchling.build"
37
53
packages = [" src/ncsn" ]
38
54
39
55
[tool .mypy ]
40
- python_version = " 3.11 "
56
+ python_version = " 3.10 "
41
57
ignore_missing_imports = true
You can’t perform that action at this time.
0 commit comments