Skip to content

Added support for layerDiffuse, hiresFix, watermark and Region Prompting#253

Open
Sirsho1997 wants to merge 4 commits intomainfrom
feature-advancedFeatures-hiresfix/watermark/layerDiffuse
Open

Added support for layerDiffuse, hiresFix, watermark and Region Prompting#253
Sirsho1997 wants to merge 4 commits intomainfrom
feature-advancedFeatures-hiresfix/watermark/layerDiffuse

Conversation

@Sirsho1997
Copy link
Collaborator

@Sirsho1997 Sirsho1997 commented Mar 10, 2026

Added

  • Image IAdvancedFeatures: layerDiffuse, hiresfix, watermark (IWatermark), and regionalPrompting (IRegionalPrompting with regions: List[IRegion]).
  • Video IVideoAdvancedFeatures: IWatermark (text/image, position, opacity, colors) and watermark field.
  • Serializable advanced features: IFluxKontext, IRegion, IRegionalPrompting, IWatermark, IAdvancedFeatures, and IVideoAdvancedFeatures use SerializableMixin for request serialization.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds new “advanced features” payload fields for image/video requests and moves them onto the common SerializableMixin request-serialization path.

Changes:

  • Convert IFluxKontext and IAdvancedFeatures to SerializableMixin and add layerDiffuse / hiresfix flags.
  • Introduce IWatermark and add watermark support to IVideoAdvancedFeatures, updating video advanced-feature serialization.
  • Update image request building to rely on _addOptionalField(..., advancedFeatures) instead of manual dict construction.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
runware/types.py Adds/updates advanced-feature dataclasses and serialization (IAdvancedFeatures, IWatermark, IVideoAdvancedFeatures.serialize).
runware/base.py Switches image advancedFeatures injection to _addOptionalField; adds a debug print(json.dumps(...)) in video request flow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Sirsho1997 Sirsho1997 changed the title Added support for layerDiffuse, hiresFix, and watermark Added support for layerDiffuse, hiresFix, watermark and Region Prompting Mar 12, 2026
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.

2 participants