Skip to content

Execute default pipeline #8620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hugoross3000
Copy link

No description provided.

imgbot bot and others added 4 commits January 6, 2025 22:53
*Total -- 570.49kb -> 541.41kb (5.1%)

/comfy/comfy_types/examples/input_options.png -- 18.89kb -> 10.54kb (44.18%)
/comfy/comfy_types/examples/required_hint.png -- 18.83kb -> 11.26kb (40.21%)
/comfy/comfy_types/examples/input_types.png -- 16.42kb -> 10.20kb (37.86%)
/input/example.png -- 8.39kb -> 5.56kb (33.68%)
/web/assets/images/sad_girl.png -- 173.47kb -> 171.69kb (1.02%)
/web/assets/primeicons-Dr5RGzOO.svg -- 334.50kb -> 332.15kb (0.7%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
This commit introduces a new gallery feature that allows you to mark images
in your user data folder and view them in a dedicated gallery page.

Key changes:

Backend (`app/user_manager.py`):
- Added a `GALLERY_SUFFIX` constant (`.gallery`).
- Implemented `toggle_gallery_status` to add/remove the gallery suffix from
  filenames (e.g., `image.png` <-> `image.gallery.png`).
- Added a POST route `/userdata/{file}/gallery` to toggle an image's gallery
  status.
- Implemented `list_gallery_files` to retrieve all images marked for the
  gallery.
- Added a GET route `/gallery` to list gallery items for you.

Frontend:
- Created `web/gallery.html` as the main page for the gallery view.
- Created `web/css/gallery.css` for basic styling of the gallery.
- Created `web/scripts/gallery.js` to fetch and display gallery items,
  allowing you to remove items from the gallery.
- Created `web/scripts/gallery_integration.js` to dynamically add a "Gallery"
  button/link to the main application UI, which navigates to `gallery.html`.
- Updated `web/index.html` to include the gallery integration script.

Tests (`tests-unit/app_test/user_manager_gallery_routes_test.py`):
- Added comprehensive unit tests for the new backend routes, covering:
  - Listing gallery items (empty, single, multiple, subdirectories).
  - Toggling gallery status (add, remove, file not found, invalid params).
  - Correct filename transformations and path handling.
…DME.

This update introduces a new Python script, `script_examples/execute_default_pipeline.py`, that allows you to execute a predefined ComfyUI pipeline.

The script:
- Defines a default pipeline structure in JSON format.
- Sends the pipeline to a running ComfyUI server instance for execution.
- Prints a success message upon queuing the prompt.

The `README.md` has been updated to include:
- A new section "Running a Default Pipeline".
- Step-by-step instructions on how to run the new script.
- Information on where to find the generated output images.
- A note about the required checkpoint file (`v1-5-pruned-emaonly.safetensors`).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant