Skip to content

Commit

Permalink
#49 - minor changes
Browse files Browse the repository at this point in the history
Signed-off-by: julianbollig <julian.bollig@tngtech.com>
  • Loading branch information
julianbollig committed Feb 13, 2025
1 parent 4c71396 commit 1f86177
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions WebUI/src/assets/js/store/imageGeneration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type StableDiffusionSettings = {
imageModel: string
inpaintModel: string
negativePrompt: string
imageCount: number // ~ modelSettings.generateNumber
imageCount: number
pickerResolution?: string
width: number
height: number
Expand Down Expand Up @@ -409,7 +409,7 @@ export const useImageGeneration = defineStore(
const seed = ref<number>(generalDefaultSettings.seed)
const imagePreview = ref<boolean>(generalDefaultSettings.imagePreview)
const safeCheck = ref<boolean>(generalDefaultSettings.safeCheck)
const imageCount = ref<number>(globalDefaultSettings.imageCount) // TODO this should be imageCount instead, as we only support imageCount 1 due to memory constraints
const imageCount = ref<number>(globalDefaultSettings.imageCount)

const resetActiveWorkflowSettings = () => {
prompt.value = generalDefaultSettings.prompt
Expand Down
30 changes: 15 additions & 15 deletions workflows-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@

## Structure of Workflow JSON Files

| Tag | Description|
| :---- | :---- |
| “name” |**Required**: Yes<br>**Value Type**: Text string in quotes <br>**Description**: name of workflow as it should show in the workflow dropdown|
| “displayPriority” | **Required**: No <br>**Value Type**: Integer <br>**Description**: If present will provide an order hierarchy for the workflow dropdown. Higher number is higher in the list</li></ui> |
| “tags” | **Required**: No <br>**Value Type**: String Array, <br>**Description:** List of tags in quotes separated by commas, these are listed in the Workflow list</li></ui> |
| “backend” | **Required**, yes set value to “comfyui” |
| “comfyuiRequirements” | **Required**, yes, this is where the dependecies for models and nodes are defined |
| “customNodes” | **Required**: yes if no custom nodes leave as empty brackets \[ \] <br>**Description**: A list of required custom nodes for this workflow <br>**Syntax**: \[“host/nodename@node-ID”\]<br> ie\["city96/ComfyUI-GGUF@65a7c895bb0ac9547ba2f89d55fbdb609aa2bfe7"\] |
| “requiredModels” | **Required**: yes, if no model dependencies leave as empty brackets \[ \] <br>**Description**: A list of required models for this workflow <br>**Syntax** <br>“**type**”: text string in quotes for the folder location for the model <br>ie “unet” <br>“**model**”: text string in quotes of the models huggingface id <br> ie "city96/FLUX.1-schnell-gguf/flux1-schnell-Q4\_K\_S.gguf" |
| “requirements” | **Required**: yes if nothing leave as empty brackets \[ \] Type: Text string in quotes Description: A tag that if used can trigger other information in the UI <br>**Allowed Values:** “high-vram” |
| Tag | Description |
| :---- |:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| “name” | **Required**: Yes<br>**Value Type**: Text string in quotes <br>**Description**: name of workflow as it should show in the workflow dropdown |
| “displayPriority” | **Required**: No <br>**Value Type**: Integer <br>**Description**: If present will provide an order hierarchy for the workflow dropdown. Higher number is higher in the list</li></ui> |
| “tags” | **Required**: No <br>**Value Type**: String Array, <br>**Description:** List of tags in quotes separated by commas, these are listed in the Workflow list</li></ui> |
| “backend” | **Required**, yes set value to “comfyui” |
| “comfyuiRequirements” | **Required**, yes, this is where the dependecies for models and nodes are defined |
| “customNodes” | **Required**: yes if no custom nodes leave as empty brackets \[ \] <br>**Description**: A list of required custom nodes for this workflow <br>**Syntax**: \[“host/nodename@node-ID”\]<br> ie\["city96/ComfyUI-GGUF@65a7c895bb0ac9547ba2f89d55fbdb609aa2bfe7"\] |
| “requiredModels” | **Required**: yes, if no model dependencies leave as empty brackets \[ \] <br>**Description**: A list of required models for this workflow <br>**Syntax** <br>“**type**”: text string in quotes for the folder location for the model <br>ie “unet” <br>“**model**”: text string in quotes of the models huggingface id <br> ie "city96/FLUX.1-schnell-gguf/flux1-schnell-Q4\_K\_S.gguf" |
| “requirements” | **Required**: yes if nothing leave as empty brackets \[ \] Type: Text string in quotes Description: A tag that if used can trigger other information in the UI <br>**Allowed Values:** “high-vram” |
| “inputs” | **Required**: yes if nothing leave as empty brackets \[ \] <br>**Description**: Add inputs to settings menu, such as number sliders, text strings, load image etc. <br>**Syntax**: <br>"_nodeTitle_": the name of the node this input will influence <br>"nodeInput": the name of the field in that node this input will influence <br>"_type_": the type of input ie: number, string, image <br>"_label_": text string for the label of this input in the settings menu <br>"_defaultValue_": the default value for this node, which will need to match the value type<br>If the input is an image use the value found at the bottom of this document <br>**Number Syntax**: additional values for a number input <br>"_step_": a float or integer value that will be the increment values between the minimum and maximum value <br>"_min_": the lowest value this number can be <br>"_max_": the highest value this number can be |
| “outputs” | **Required**: yes if nothing leave as empty brackets \[ \] <br>**Type**: Text string in quotes <br>**Description**: A tag that if used can trigger other information in the UI <br>**Allowed Values**: “high-vram” |
| “defaultSettings" | **Required**: yes <br>**Description**: data from ComfyUI that will come back to the AI Playground UI Syntax “name”: text string of the data being used for output <br> ie “output\_image” “type”: type of data <br>ie: “image” |
| "displayedSettings" | **Required**: yes if no default values need leave as empty brackets \[ \] <br>**Description**: Input types you’d like to show in settings, but are not modifiable such as: “resolution”, “seed”, prompt” “inferenceSteps”, “imageCount, “cfg”, “prompt”, “negativePrompt” <br>**Syntax**: “inputField” ie "scheduler", "cfg" |
| "modifiableSettings" | **Required**: yes if no default values need leave as empty brackets \[ \] <br>**Description**: Input types you’d like the user to adjust: “resolution”, “seed”, prompt” “inferenceSteps”, “imageCount, “cfg”, “negativePrompt” <br>**Syntax**: “inputField” ie "inferenceSteps", "seed" |
| "comfyUiApiWorkflow": | **Required**: yes <br>**Description**: This section should be a copy and paste of the API export of the workflow created in ComfyUI.
| “outputs” | **Required**: yes if nothing leave as empty brackets \[ \] <br>**Type**: Text string in quotes <br>**Description**: A tag that if used can trigger other information in the UI <br>**Allowed Values**: “high-vram” |
| “defaultSettings" | **Required**: yes <br>**Description**: data from ComfyUI that will come back to the AI Playground UI Syntax “name”: text string of the data being used for output <br> ie “output\_image” “type”: type of data <br>ie: “image” |
| "displayedSettings" | **Required**: yes if no default values need leave as empty brackets \[ \] <br>**Description**: Input types you’d like to show in settings, but are not modifiable such as: “resolution”, “seed”, prompt” “inferenceSteps”, “imageCount, “cfg”, “prompt”, “negativePrompt” <br>**Syntax**: “inputField” ie "scheduler", "cfg" |
| "modifiableSettings" | **Required**: yes if no default values need leave as empty brackets \[ \] <br>**Description**: Input types you’d like the user to adjust: “resolution”, “seed”, prompt” “inferenceSteps”, “imageCount, “cfg”, “negativePrompt” <br>**Syntax**: “inputField” ie "inferenceSteps", "seed" |
| "comfyUiApiWorkflow": | **Required**: yes <br>**Description**: This section should be a copy and paste of the API export of the workflow created in ComfyUI.

## Instructions

Expand Down

0 comments on commit 1f86177

Please sign in to comment.