Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .github/assets/example_1.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ jobs:

- name: Create artifact archive
run: |
zip -r embeddr-comfyui.zip __init__.py nodes/ js/ pyproject.toml README.md LICENSE.txt LICENSE.md components.json
mkdir comfyui-embeddr
cp -r __init__.py nodes js pyproject.toml README.md LICENSE.md components comfyui-embeddr/
zip -r comfyui-embeddr.zip comfyui-embeddr

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: embeddr-comfyui.zip
files: comfyui-embeddr.zip
generate_release_notes: true
make_latest: true

Expand Down
21 changes: 0 additions & 21 deletions LICENSE.txt

This file was deleted.

31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,33 @@
<img height="120" src="https://embeddr.net/embeddr_logo_transparent.png">

<h1>Embeddr ComfyUI Extension</h1>
</div>
</div>

> [!WARNING]
> Requires [embeddr-cli](https://github.com/embeddr-net/embeddr-cli) to be running.

![Example](.github/assets/example_1.webp)

## Installation

1. Download [latest release](https://github.com/embeddr-net/embeddr-comfyui/releases)
2. Extract into `comfyui/custom_nodes`
3. [Install Embeddr-CLI](https://github.com/embeddr-net/embeddr-cli?tab=readme-ov-file#installation)
4. Run Embeddr-CLI with `embeddr serve`
5. Run ComfyUI

## Development

To get a development version working.

```sh
git clone https://github.com/embeddr-net/embeddr-comfyui
cd embeddr-comfyui
pnpm install
pnpm build

# Link into ComfyUI custom_nodes
# Example:
ln -s /home/user/git/embeddr-comfyui \
/home/user/comfyui-dev/custom_nodes/embeddr-comfyui
```
4 changes: 2 additions & 2 deletions nodes/EmbeddrLoadImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
from PIL import Image, ImageOps
from io import BytesIO
from comfy_api.latest import io
from comfy_api.latest import io, ui


class EmbeddrLoadImageNode(io.ComfyNode):
Expand Down Expand Up @@ -56,7 +56,7 @@ def execute(cls, image_url):
mask = torch.zeros((64, 64), dtype=torch.float32, device="cpu")

cls._cache[image_url] = (image, mask)
return io.NodeOutput(image, mask)
return io.NodeOutput(image, mask, ui=ui.PreviewImage(image))

except Exception as e:
print(f"[Embeddr] Error loading image: {e}")
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
[project]
name = "embeddr-extension"
description = "Embeddr ComfyUI Extension"
version = "1.0.4"
license = { file = "LICENSE.txt" }
version = "1.0.5"
license = { file = "LICENSE.md" }
dependencies = []
requires-python = ">=3.8"

Expand Down
Loading