🖼️
Pixray
  • Docs for Pixray
  • Introduction
    • Introduction to Pixray
  • Quickstart
    • Installation
    • Generating an Image
    • Using demo colabs
    • Generating online (without installation)
    • FAQ
  • Docs
    • Primary settings
    • Fine settings
    • Image control settings
    • Drawer Settings
    • Misc/Display settings
    • Losses
    • Functional video movements
    • Image filters
  • Tutorial
    • Changing drawers
    • Changing primary settings
    • Guiding output with prompts
    • Guiding output with images
    • Guiding output with losses
    • Guiding output with image filters (ColorMapper)
    • Making a video using generation frames
    • Making a video using functional movements
    • Making a video using different prompts (story mode)
    • Working with weaker machines
  • Advanced
    • Empirical testing - comparing output quality
    • Developing a custom loss
    • Developing a custom drawer
    • Developing a custom image filter
    • Developing a function video movement
    • Modifying Pixray
  • Future
    • make Image Filter subclass - colormapper as subclass
    • Guide video (move/story) within pixray
    • Batch run for images and video
Powered by GitBook
On this page
  • Saturation Loss
  • saturation_weight
  • Smoothness Loss
  • smoothness_weight
  • Symmetry Loss
  • saturation_weight
  • Palette Loss
  • palette_weight
  1. Docs

Losses

PreviousMisc/Display settingsNextFunctional video movements

Last updated 3 years ago

For losses to be used, custom_loss must be specified for that particular class. Currently there can be a total of four classes, saturation, smoothness, symmetry, and palette. To enable all losses use this syntax: separate loss names by commas, using a big string.

custom_loss="saturation, smoothness, symmetry, palette"

Saturation Loss

custom_loss="saturation"

saturation_weight

Default: 1

Creates a loss based on how colorful the image is, encourages the image to become more colorful.

Smoothness Loss

custom_loss="smoothness"

smoothness_weight

Default: 1

Symmetry Loss

custom_loss="symmetry"

saturation_weight

Default: 1

Palette Loss

custom_loss="palette"

palette_weight

Default: 1

saturation
smoothness
symemtry
palette