- NyxxWorks
- Contents
- What it does
- Requirements
- Install
- Quick start
- Compose: the request from cards
- Reference pictures
- Pick: sheets and choosing
- Finishing and details
- Fix: anatomy, text, any spot
- Letter
- Compare: sheets with axes
- Recipes
- Statistics
- ComfyUI
- Both hosts on one library
- Where things are kept
- Limits
- Troubleshooting
- For developers
- License
- Contents
NyxxWorks
Mirror of KazeKaze93/nyxxworks at branch
main. Install, updates and issues: GitHub.
An interface for image generation built around the path of a picture, not around a prompt form.
Make a sheet of cheap drafts, pick the best, and spend the expensive passes only on those: enlarge them, go over faces and hands, fix what the model got wrong, letter them. The whole way of working can be kept as a recipe and handed to someone else.
One repository, two hosts: an extension for AUTOMATIC1111 / Forge / reForge and a page of its own inside ComfyUI, with the same stations in both.
Status: in development. Every station works on both hosts and is described below as it is today. What was tried, with which models, is said where it matters, and what is missing is listed under Limits.
Contents
- What it does
- Requirements
- Install
- Quick start
- Compose: the request from cards
- Reference pictures
- Pick: sheets and choosing
- Finishing and details
- Fix: anatomy, text, any spot
- Letter
- Compare: sheets with axes
- Recipes
- Statistics
- ComfyUI
- Both hosts on one library
- Where things are kept
- Limits
- Troubleshooting
- For developers
- License
What it does
| Sheets instead of single pictures | A request makes a sheet of drafts. Click picks, X rejects, M makes more like one of them. |
| Finishing only what was picked | The picked drafts are enlarged with an upscaler and gone over by the model; faces and hands are then found and repainted large. |
| The request from cards | A card is one style of a styles CSV pack. Chosen cards and your own words are put together into the prompt by Style Grid's rules. |
| Reference pictures | A picture the model follows for its pose, for who is in it, or for its style. |
| Fixing | Three tools on a picked picture: anatomy (sd-anatomy-fix), text in the picture (sd-text-fix), and repainting any spot. |
| Lettering | Speech bubbles, captions and sound effects, drawn with no model (sd-comic-lettering). |
| Sheets with axes | One seed, one thing changed at a time: three outfits by three kinds of light, not nine chance seeds. |
| Recipes | Words, cards, settings and finishing as one .nyxx.json file that works for someone who does not have your packs. |
| Statistics | Which cards and settings get picked, and which never do. |
| One library | Every picture is a PNG with its generation parameters; picks survive a restart; both hosts can share one library. |
Requirements
| Host | AUTOMATIC1111, Forge or reForge; or ComfyUI |
| Models | SD and SDXL checkpoints on both hosts. In ComfyUI also Anima, Z-Image and FLUX.2 klein 4B, see ComfyUI |
| Python packages | numpy, scipy, opencv-python, Pillow 9.2 or newer. Both hosts already ship them |
| Node.js | Not needed. The page is shipped built |
| Optional | ultralytics and detector models, for going over details after finishing: it comes with ADetailer on the A1111 family and with the Impact Pack in ComfyUI. onnxruntime for the text tool's detector, which works without it by looks alone |
Install
AUTOMATIC1111 / Forge / reForge. Open Extensions β Install from URL, paste the address below and press Install. Then restart the web UI.
https://github.com/KazeKaze93/nyxxworks
Or from a terminal:
cd extensions
git clone https://github.com/KazeKaze93/nyxxworks.git
ComfyUI.
cd ComfyUI/custom_nodes
git clone https://github.com/KazeKaze93/nyxxworks.git
Restart ComfyUI. NyxxWorks adds no nodes: it is a page of its own beside the graph.
Update either one with git pull in the nyxxworks folder, then restart the host and refresh the browser page.
Quick start
- Open the page.
- A1111 family: press
NyxxWorksat the end of the host's row of tabs. NyxxWorks covers the host page in the same browser tab; the button at its far left hides it again, and the host page under it is as you left it. Or open/nyxxworks/uion the host's address as a page of its own; that is also there when the host runs with--nowebui. - ComfyUI: run the command
Open NyxxWorks(in theExtensionsmenu and in the command search): NyxxWorks covers the graph the same way. Or open/nyxxworks/uion its address.
- A1111 family: press
- On Pick, press the request at the left of the line under the top bar: the form opens. Write a prompt there, close it, and press
Make a sheet(Ctrl+Enterin the prompt does the same). - Click the drafts worth keeping. They go to the tray at the bottom and stay there, also after a restart.
- Press
Finishin the tray. Each picked draft is enlarged and gone over, and stands in the tray in place of its draft. - Point at a picture in the tray and send it to
FixorLetterfrom the small panel above it.Keepin the top bar puts the result back into the tray.
The stations in the top bar are the usual order of work: Compose βΊ Pick βΊ Fix βΊ Letter, with Compare beside them and Recipes and Statistics at the right. NyxxWorks opens on the station it was left on; the first time on Compose, or on Pick when there are sheets already. The button at the far left hides NyxxWorks over the host page and loses nothing; on /nyxxworks/ui as a page of its own it leaves, and asks first while a job runs or a tool holds work that was not kept. While a tool holds such work, closing or reloading the host page brings up the browser's own question.
Compose: the request from cards
A card is one style of a pack; a pack is a styles CSV file of the A1111 family (name, prompt, negative_prompt, and in the packs of Style Grid also description and category).
- On the left the packs and their categories, in the middle the cards with a search over names, descriptions and tags, on the right the request: the chosen cards, your own words, and the prompt as it will be.
- A card is a tile with its name. Tiles stand in groups by category, and a category has its color, worked out from its name the way Style Grid does it. What a card adds is read in the line under the grid, for the card under the pointer. A card that adds nothing and only holds back has a minus before its name.
- A click chooses a card, one more takes it out. A chosen tile and its chip in the request show a number: the card's place in the prompt.
- A card is known by its pack and its name together, so the same name in two packs is two cards.
- The prompt is put together by Style Grid's rules: your words first, then the cards in the order chosen; a card with
{prompt}in it takes what is before it into that place; a tag said twice is said once, with the higher weight; a negative tag that the prompt also asks for is left out. Make a sheet of Nmakes the sheet and goes to Pick. The settings of the sheet are one line above the button; pressing it opens the same form as on Pick.- A picture carries the whole prompt in its PNG text, so it can be opened anywhere, and the names of the cards it was made with.
Where packs are found:
| Host | Packs |
|---|---|
| A1111 family | The host's styles files and every CSV beside them in the host's folder, where Style Grid finds them; then styles/ of NyxxWorks |
| ComfyUI | style_grid in ComfyUI's user folder, where the ComfyUI Style Grid keeps them; then styles/ of NyxxWorks |
Packs are only read. The pack in the screenshots is a small demonstration pack, not one that comes with NyxxWorks.
Reference pictures
A reference card is a picture the model is asked to follow. Reference pictures at the top of the list on Compose: add pictures from your disk, or open any picture of a sheet large and press Use as a reference. A request follows three at most, each with a weight.
| Followed for | What comes over |
|---|---|
| Pose | The pose of the body. Who it is and where comes from the words and cards |
| Character | Who is in the picture: the hair, the face, how they are drawn. The words set the scene |
| Style | The palette and the light |
What a host and a model can follow, and with what:
| Pose | Character | Style | |
|---|---|---|---|
| Forge / reForge, SD and SDXL | The host's ControlNet with an openpose model |
reference_only, needs no model |
An IP-Adapter on the style layers; without one, reference_only at full fidelity |
| ComfyUI, SD and SDXL | DWPose (comfyui_controlnet_aux) with an openpose ControlNet |
The model's own attention, needs no model | Not offered |
| ComfyUI, Anima | The outlines of the reference, with Anima's control patch | Anima's IP-Adapter with SigLIP2 | Not offered |
| ComfyUI, Z-Image and FLUX.2 | Not offered | Not offered | Not offered |
What the host cannot do is not offered, and the page says with what each reference is followed. Nothing is downloaded: the models have to be on disk. Which files, where they go, and what came of trying each combination is in docs/REFERENCES.md.
Reference pictures are not part of a recipe: a recipe holds no pictures.
Pick: sheets and choosing
| A sheet | The request is one line above the sheets; pressing its words opens the form: prompt, negative, size, steps, CFG, sampler, schedule, seed and how many. The checkpoint can be the loaded one or another of the host's; a LoRA is found by typing a part of its name and added to the prompt as a tag. |
| Picking | Click or Space picks, X rejects, the arrows go from picture to picture. Picked pictures stay in the tray at the bottom, also after a restart. ? at the right of the line lists the keys. |
| Tiles | Three sizes, S M L. A sheet's heading says its time, your own words and how many were picked and rejected. |
| More like this | M on a picture makes a sheet of pictures like it: the same seed with a variation seed for each. A slider says how different they may be. |
| Looking closely | V or a double click opens a picture large. The wheel zooms, a drag moves, 1 : 1 shows it pixel for pixel. Beside it: how it was made (your words, the cards in their order, the settings). C keeps the picture on the left, and the arrows then bring the others beside it: both always show the same spot at the same size. |
| Taking a picture in | A PNG dropped on the page joins the library, and the settings it carries fill the form. |
| The queue | One job at a time, the rest wait their turn. A sheet that was asked for stands on the page at once, with a dashed tile for every picture to come, so nothing moves when they arrive. A cancelled job ends after the picture being made. |
Every picture is kept as a PNG with its generation parameters, in the form the A1111 family writes them. Changing the checkpoint changes it for the host too, as picking it on the host page would.
Finishing and details
The picked pictures are enlarged with an upscaler of the host and gone over by the model, from the picture itself. A finished picture stands in the tray in place of its draft and opens beside it for comparing. The pictures of the tray stand in groups by what was done to them last: draft, finished, fixed, lettered.
How pictures are finished is said in one line beside Finish; pressing it opens the panel with the upscaler, how much larger, the strength and the details. Everything there applies by itself.
On the A1111 family finishing starts from what you have set up there yourself, as saved in the host's ui-config.json (Settings β Defaults β Apply, or the host's own saving of its page): the hires fix of txt2img gives the upscaler, how much larger, the strength, the hires steps (run as given, whatever the strength), the hires CFG and, when not "Use same", the hires sampler and schedule; the tabs of ADetailer give the steps of Details, in their order, each with its detector, how sure, top k (by confidence or by area), dilation, mask blur, strength, padding, size, its own steps, CFG, sampler and schedule when the tab sets them, and its own prompt and negative prompt ([PROMPT] stands for the picture's). What you change in the panel wins over that and is remembered; As at first goes back to the host's settings. ComfyUI has no such settings: there finishing starts from NyxxWorks' own numbers below.
A whole figure leaves a face or a hand a handful of pixels, and they come out vague. With Details on, each finished picture is gone over once more: detectors find those places, and each is repainted large with the words of the picture and put back. It is what the ADetailer extension does on the page of the A1111 family; here it is a part of finishing, on every host, and needs no extension.
| Step | Detector file whose name has | How sure | Places at most | Strength |
|---|---|---|---|---|
| parts | ntd11 |
0.8 | 6 | 0.3 |
| face | face |
0.3 | 6 | 0.3 |
| hands | hand |
0.5 | 2 | 0.4 |
- The detectors are YOLO models (
.pt,.onnx) read throughultralytics. NyxxWorks looks where the host keeps them:models/adetaileron the A1111 family, and the models ADetailer brings itself (face_yolov8s.ptand the like) where it has already fetched them into the Hugging Face cache; theultralyticsfolders (bbox,segm) on ComfyUI, also those anextra_model_paths.yamlnames. It downloads none. A step with no file is left out; with no files at all, or withoutultralytics, there is noDetailsswitch. - A detector file runs code when it is loaded. Put only files you trust into those folders.
- Under
Detailsin the panel are the steps: each can be turned off, and how sure its detector must be and how strongly a place is repainted can be set.As at firstbrings back the host's settings, or the numbers of the table where the host has none. What is set is remembered and goes into a recipe. - Each step looks at the picture as the steps before it left it. What was found and done is kept with the picture.
- If a detector fails, the picture is kept as it was finished, and the job says what went wrong.
- Tried on reForge and ComfyUI with an SDXL checkpoint: on a small figure seen from afar, a face of scribbled lines and broken eyes came out clean. On a face that already fills a good part of the picture there was no gain, only a face a little changed. Finishing took about twice as long (15 seconds against 7 for a face and two hands).
Fix: anatomy, text, any spot
A picked picture is sent to Fix from the tray (Fix in the panel above a picture there, or Fix in the top bar). The station has three tools, switched right beside Fix in the top bar. The seed, undo and redo, Keep and Close of every tool are at the right of that bar, always in the same place.
| Tool | What it does |
|---|---|
| Anatomy | The editor of sd-anatomy-fix: you mark the spot and pick the tool (mask, bones, a fan of five, split, donor, eye, teeth, a posed 3D hand or foot), it draws a draft, and the model blends it in as several variants. |
| Text | The editor of sd-text-fix: it finds the gibberish text on clothes, signs and equipment, you click a line and type what it should say, and the model blends the new letters in. |
| Repaint | NyxxWorks' own: paint over any spot with the brush, write what should be there, and the model repaints only that spot as several variants. Nothing outside the spot changes. |
For Repaint, describe the spot, not the whole picture: red balloon, not a girl in a park with a red balloon. The strip of variants stands under the picture from the moment Repaint is pressed. Pick a variant and Keep it; Ctrl+Z takes back a stroke, Ctrl+Enter runs.
The repositories of the first two explain them in full.
Keep puts the result into the tray in place of the picture it was made from; the picture on the sheet stays as it was. Esc goes back to Pick.
NyxxWorks carries its own copies of the tools under its own address. The installed originals are not needed and are not disturbed: each keeps its own settings. The text tool's detector models are shared with an installed sd-text-fix, so they are downloaded once.
Letter
A picked picture is sent to Letter from the tray (Letter in the panel above a picture there, or Letter in the top bar). The station is the editor of sd-comic-lettering: speech bubbles, a caption, sound effects, marks, and areas drawn by hand, all drawn onto the picture with no model. Its repository explains it in full.
- Text is lettered when you leave the field or press
Ctrl+Enter. Keep, in the top bar, puts the lettered picture into the tray in place of the one it was made from. It is active once something is lettered.- Lettering always starts from the newest version of the picture that has no lettering on it, so keeping again replaces the letters instead of writing over them.
- What was written and placed is kept for each picture, in the browser, for the last 40 pictures: it is there again when you come back to the picture, also after the page is loaded anew. A picture that has changed its size since (finished after it was lettered) gets the texts back, not the places.
Escgoes back to Pick; the other keys are the editor's own (VBPEfor the tools,Fframes, holdCto compare).
Not taken from sd-comic-lettering: the automatic lettering of every new image, saving to the host's folders, and the ComfyUI node.
Fonts for the text tool and the Letter station: the ones in fonts/bundled/ come with NyxxWorks; put your own .ttf, .otf or .ttc files into fonts/.
Compare: sheets with axes
Every picture of such a sheet has the same seed and the same settings, and differs from the others only by its place on one or two named axes.
| Axis | Its values |
|---|---|
| Text added to the prompt | One piece on each line. A line with only - adds nothing: the picture to compare the others with |
| Chosen cards of a category | The cards of that category chosen on Compose, one at a time instead of all together. The cards of other categories are in every picture |
| CFG, Steps, Sampler | One value on each line |
The request is the one of Compose and Pick. An axis has 12 values at most, a sheet 36 pictures. The sheet is shown as a table with the first axis across and the second down; pictures are picked, rejected and opened large from it as on Pick, and C in the large view keeps one beside the next, zoomed together. The same sheet is also on Pick, as a plain one.
Tiles at the right of a sheet's heading has two sizes. Whole sheet makes the tiles as small as it takes to see every row and column at once; Large makes them as wide as the columns allow, and the headings of columns and rows stay in view while the sheet is scrolled.
Recipes
A recipe is a way of working kept as one file: your own words, the cards, the model and the settings, how the picked pictures are finished, and, if you want, the axes of Compare.
- Save the request the forms hold now, with a name and a note. Or open a picture large and press
Save as a recipe: that keeps how that picture was made, its seed included. - Use fills the forms and goes to Pick. It makes nothing by itself.
- Download gives the recipe as a
.nyxx.jsonfile to hand to someone else. Open a recipe file, or drop one on the page, takes one in. - The cards are written into the file whole, so a recipe works for someone who does not have your packs: a card they do not have, or have with other words, is written into the prompt instead. A model, a sampler or an upscaler they do not have is replaced by theirs. A sampler or a schedule that the other kind of host only calls by another name is kept, under the name of this host (
Euler aandeuler_ancestral), for the pairs the table of names knows; see Statistics. The page says each time what was replaced or renamed. - A recipe file is plain JSON and is read as a description only: anything in it that a recipe does not have is dropped when it is taken in.
On the same host a recipe with a seed gives the same picture again. (The very first picture after the host starts can differ by a hair from all later ones of the same request; that is the host warming up, with or without a recipe.)
Statistics
Statistics counts, over every picture on the sheets, how often each card and each value of a setting was used and how often the picture was then picked or rejected. Cards used four times or more and never picked are named at the top. Pictures taken in from outside are not counted, and finishing or fixing a picture is not a second choice.
A setting gets a table when the sheets have more than one value of it; the ones with a single value are listed in a box. With both hosts on one library, a checkpoint is counted by its file, and a sampler or a schedule that ComfyUI calls by another name is counted under the name of the A1111 family (euler_ancestral with Euler a). Which names are the same is taken from the lists of the A1111-family host itself, so that works once such a host has run on the data folder; a name it does not know is counted as it is.
ComfyUI
NyxxWorks is a page beside the graph. A pass of NyxxWorks waits its turn in ComfyUI's own queue, as one node, NyxxWorks (internal), which is not for workflows.
What works there: sheets, sheets with axes, "more like this", finishing with details, the three tools of Fix, reference pictures, and everything that needs no model (the library, Compose with its cards, Letter, recipes, statistics).
Models:
Checkpoints of ComfyUI's
checkpointsfolders: SD and SDXL, loaded whole.Models loaded in parts, of the families NyxxWorks knows how to put together. Such a model is a file of the
diffusion_modelsfolders; its family is told by the header of the file, not by its name. Beside it NyxxWorks loads a text encoder and a VAE, as ComfyUI's own workflow for that family does; without one of them the job says which is missing.Family Text encoder ( text_encoders)VAE ( vae)The form starts with Anima qwen_3_06b...qwen_image_vae...30 steps, CFG 4.5, euler,simpleZ-Image qwen_3_4b...ae25 steps, CFG 4, res_multistep,simple; a file withturboin its name: 8 steps, CFG 1FLUX.2 klein 4B qwen_3_4b...flux2-vae...4 steps, CFG 1, euler; a file withbasein its name: 20 steps, CFG 5All of them at 1024 by 1024.
Things that differ from ComfyUI's own nodes:
<lora:name:weight>tags in a prompt are taken out and the LoRAs loaded, since ComfyUI does not read such tags.- A pass over an existing picture (finishing, the tools of Fix) runs the share of the steps that its strength is, as on the A1111 family: 25 steps at strength 0.4 are 10 steps.
- The tools of Fix repaint a spot as the A1111 family's "only masked" does: a square around it, enlarged, repainted and put back, so nothing outside the spot changes.
What was tried with each family, the timings, and the rest of the details are in docs/COMFYUI.md.
Both hosts on one library
Give both hosts the same data folder: set the environment variable NYXXWORKS_DATA to it before each is started, or link the extension folder into both. They then keep one library and one set of reference cards, and both may run at once: each reads the index again when the other has changed it, and only one writes at a time.
Tried with reForge and ComfyUI running together: a mark made in one showed in the other, and two sheets made at the same moment were both kept. The screenshots here were made that way: Compose and the sheet with axes in ComfyUI, the rest on reForge, over one library.
Where things are kept
| What | Where |
|---|---|
| Pictures, their index, the last settings, recipes, reference cards | data/ inside the extension folder, or the folder NYXXWORKS_DATA names |
| Your own packs of cards | styles/ of NyxxWorks, beside the ones the host has |
| Your own fonts | fonts/ |
| What was written on Letter for each picture | The browser, for the last 40 pictures |
Pictures are kept as full PNG files, about 1.3 MB each at SDXL size. Pick shows the newest 12 sheets, and NyxxWorks throws away the drafts of older sheets on its own, when the host starts and each time a new sheet begins: so the folder holds the sheets you can see, not every sheet ever made. What you picked, and every picture finished, fixed or lettered from it, is never thrown away, also when its sheet is old. Statistics still counts the drafts that were thrown away. On Pick, the oldest sheet says how many of its drafts the next sheet deletes once there are 12; Statistics ends with On disk: how many picture files there are and how much room they take, the folder with a button to copy its path, and Open folder when the page is opened on the machine the host runs on (not on the A1111 family started with --hide-ui-dir-config). Deleting the extension folder deletes data/ with it: to keep the pictures apart from the extension, point NYXXWORKS_DATA at another folder.
Limits
- Compose has no previews on the cards, no editing of packs, no Style Grid
{sg:...}wildcards and no favorites. - AUTOMATIC1111 / Forge / reForge offer only checkpoints: the host also lists the diffusion models other programs keep under its checkpoints folder, which it cannot load, and NyxxWorks leaves those out.
- Reference pictures: no style in ComfyUI; nothing with Z-Image and FLUX.2; with Anima only models of the published depth (28 blocks). A model trained further from Anima with another number of blocks is offered none.
- Not put together in ComfyUI: FLUX.2 klein 9B and FLUX.2 dev, FLUX.1, Lumina Image 2.0, Qwen Image, video models. They are not listed.
- With models loaded in parts the Guide of the anatomy tool has no ControlNet to follow, and LoRAs made for SDXL do nothing.
- Tried with two SDXL checkpoints of the NoobAI line, two Anima models, Z-Image Turbo and FLUX.2 klein 4B. Plain SD 1.5 checkpoints were not tried.
Troubleshooting
| What you see | What to do |
|---|---|
No NyxxWorks button on the host page |
Restart the web UI after installing, then hard-refresh the page (Ctrl+F5). The page itself is at /nyxxworks/ui |
| The page looks old after an update | Hard-refresh the page (Ctrl+F5) |
Fix and Letter at the top are grey |
They work on a picked picture: pick one on a sheet first |
No Details beside Finish |
ultralytics is not installed, or the host's detector folder has no file with face, hand or ntd11 in its name |
| The model list is empty on the A1111 family | The host found no checkpoint in its checkpoints folder. Check the folder, or the links to it, and restart the host |
| A reference kind is not offered | The host or the model cannot follow it, or a file it needs is not on disk: see docs/REFERENCES.md |
| ComfyUI: a job says a text encoder or a VAE is missing | A model loaded in parts needs both beside it: see the table under ComfyUI |
For developers
| Document | What is in it |
|---|---|
| docs/ARCHITECTURE.md | The layers, the repository layout, how a job travels from a click to a picture, the data folder |
| docs/API.md | The HTTP routes of the page |
| docs/DEVELOPMENT.md | Building the page, the tests, conventions, running both hosts on scratch data |
| docs/REFERENCES.md | Reference pictures in full: files, folders and what came of trying each way |
| docs/ROADMAP.md | What comes next: regions, model cards, Civitai, control, sampling options, picture tools |
| docs/COMFYUI.md | ComfyUI in full: model families, what was tried, how passes are run |
| SOURCES.md | What was copied from which repository and commit |
License
The code is licensed under the GNU Affero General Public License v3.0.
The bundled fonts keep their own licenses, in fonts/bundled/licenses/. Code taken from other projects keeps its license, as SOURCES.md says. Pictures you make with this tool are yours: the license covers the program, not its output.














