Add pyproject.toml and requirements.txt for ColorImageDetection package

This commit is contained in:
Marvin Weigand
2024-07-15 15:19:43 +02:00
parent 3fbaf29367
commit 8989bf43ff
3 changed files with 49 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
name: Publish to Comfy registry
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "pyproject.toml"
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@main
with:
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} ## Add your own personal access token to your Github Repository secrets and reference it here.
+26
View File
@@ -0,0 +1,26 @@
# pyproject.toml
[project]
name = "ColorImageDetection" # Unique identifier for your node. Immutable after creation.
description = """
A Python package for detecting whether images are colored or black and white using two different color spaces: RGB and LAB.
The package includes two classes:
- `ColorDetection`: Analyzes images in the RGB color space, calculating mean deviation from pixel color mean to determine color presence.
- `LABColorDetection`: Analyzes images in the LAB color space, assessing color presence by analyzing differences between the A and B channels.
Features:
- Detects colored vs. black and white images.
- Supports analysis of image tensors.
- Adjustable thresholds for color detection.
- Uses a percentage of highest deviations for more robust detection.
- Efficient processing with PyTorch and OpenCV integration.
"""
version = "1.0.0" # Custom Node version. Must be semantically versioned.
dependencies = [] # Filled in from requirements.txt
[project.urls]
Repository = "https://github.com/..."
[tool.comfy]
PublisherId = "drunreal" # TODO (fill in Publisher ID from Comfy Registry Website).
DisplayName = "Color Image Detection" # Display name for the Custom Node. Can be changed later.
Icon = "https://www.mws.biz/wp-content/uploads/2021/02/cropped-MWSoftwareFavicon-1-180x180.png" # SVG, PNG, JPG or GIF (MAX. 800x400px)
+3
View File
@@ -0,0 +1,3 @@
numpy
torch
opencv-python