Skip to content

Commit cd84fd8

Browse files
committed
Scaffold
1 parent 1776985 commit cd84fd8

File tree

8 files changed

+132
-0
lines changed

8 files changed

+132
-0
lines changed

.github/workflows/publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
paths:
8+
- "pyproject.toml"
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
if: |
14+
github.event_name == 'workflow_dispatch' ||
15+
(github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main') ||
16+
(github.event_name == 'push' && github.ref == 'refs/heads/main')
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.x"
25+
26+
- name: Install build dependencies
27+
run: python -m pip install build
28+
29+
- name: Setup package
30+
run: |
31+
mkdir -p comfyui_embedded_docs/docs/
32+
cp -r docs/* comfyui_embedded_docs/docs/
33+
34+
- name: Build package
35+
run: python -m build
36+
37+
- name: Publish to PyPI
38+
uses: pypa/gh-action-pypi-publish@release/v1
39+
with:
40+
password: ${{ secrets.PYPI_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.venv
2+
dist
3+
*.egg-info

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include LICENSE
2+
include README.md
3+
recursive-include comfyui_embedded_docs/docs *.md *.jpg *.png *.gif *.webp

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# comfyui_embedded_docs
2+
3+
## Updating Documentation
4+
5+
Documentation files are stored in the `docs/` directory. Each node has its own subdirectory containing:
6+
- `en.md` - English documentation
7+
- `assets/` - Images and other assets used in the documentation
8+
9+
To update documentation, simply add or edit the relevant markdown files in the `docs/` directory.
10+
11+
## Publishing
12+
13+
The package is automatically published to PyPI when:
14+
1. You manually trigger the workflow (Actions → Publish to PyPI → Run workflow)
15+
2. You push changes to `pyproject.toml` on the main branch
16+
3. A pull request that modifies `pyproject.toml` is merged to main
17+
18+
The publishing workflow:
19+
1. Copies documentation from `docs/` to `comfyui_embedded_docs/docs/`
20+
2. Builds the package using `python -m build`
21+
3. Publishes to PyPI using the configured PYPI_TOKEN secret

comfyui_embedded_docs/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# comfyui_embedded_docs package
105 KB
Loading

docs/FluxProUltraImageNode/en.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
![ComfyUI Native Flux 1.1 [pro] Ultra Image node](assets/flux-1-1-pro-ultra-image.jpg)
2+
3+
The Flux 1.1 [pro] Ultra Image node allows you to generate ultra-high-resolution images through text prompts, directly connecting to Black Forest Labs' latest image generation API.
4+
5+
This node supports two main usage modes:
6+
1. **Text-to-Image**: Generate high-quality images from text prompts (when no image input is used)
7+
2. **Image-to-Image**: Combine existing images with prompts to create new images that blend features from both (Remix mode)
8+
9+
This node supports Ultra mode through API calls, capable of generating images at 4 times the resolution of standard Flux 1.1 [pro] (up to 4MP), without sacrificing prompt adherence, and maintaining super-fast generation times of just 10 seconds. Compared to other high-resolution models, it's more than 2.5 times faster.
10+
11+
## Parameter Description
12+
13+
### Basic Parameters
14+
15+
| Parameter | Type | Default | Description |
16+
| ----------------- | ------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
17+
| prompt | String | "" | Text description for generating the image |
18+
| prompt_upsampling | Boolean | False | Whether to use prompt upsampling technique to enhance details. When enabled, automatically modifies prompts for more creative generation, but results become non-deterministic (same seed won't produce exactly the same result) |
19+
| seed | Integer | 0 | Random seed value, controls generation randomness |
20+
| aspect_ratio | String | "16:9" | Width-to-height ratio of the image, must be between 1:4 and 4:1 |
21+
| raw | Boolean | False | When set to True, generates less processed, more natural-looking images |
22+
23+
### Optional Parameters
24+
25+
| Parameter | Type | Default | Description |
26+
| --------------------- | ----- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
27+
| image_prompt | Image | None | Optional input, used for Image-to-Image (Remix) mode |
28+
| image_prompt_strength | Float | 0.1 | Active when `image_prompt` is input, adjusts the blend between prompt and image prompt. Higher values make output closer to input image, range is 0.0-1.0 |
29+
30+
### Output
31+
32+
| Output | Type | Description |
33+
| ------ | ----- | -------------------------------------- |
34+
| IMAGE | Image | Generated high-resolution image result |
35+
36+
## How It Works
37+
38+
Flux 1.1 [pro] Ultra mode uses optimized deep learning architecture and efficient GPU acceleration technology to achieve high-resolution image generation without sacrificing speed. When a request is sent to the API, the system parses the prompt, applies appropriate parameters, then computes the image in parallel, finally generating and returning the high-resolution result.
39+
40+
Compared to regular models, Ultra mode particularly focuses on detail preservation and consistency at large scales, ensuring impressive quality even at 4MP high resolution.

pyproject.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "comfyui-embedded-docs"
7+
version = "0.1.0"
8+
description = "Embedded documentation for ComfyUI nodes"
9+
readme = "README.md"
10+
requires-python = ">=3.9"
11+
license = "GPL-3.0"
12+
authors = [
13+
{name = "Comfy-Org"}
14+
]
15+
classifiers = [
16+
"Programming Language :: Python :: 3",
17+
"Operating System :: OS Independent",
18+
]
19+
20+
[project.urls]
21+
repository = "https://github.com/Comfy-Org/comfyui-embedded-docs"
22+
23+
[tool.setuptools.package-data]
24+
comfyui_embedded_docs = ["docs/**/*.md", "docs/**/*.jpg", "docs/**/*.png", "docs/**/*.gif", "docs/**/*.webp"]

0 commit comments

Comments
 (0)