🖼️
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
  • output_name
  • display_every
  • display_clear
  • make_video
  1. Docs

Misc/Display settings

output_name

Default: output.png

Specifies name of output, note that for command line its actually just --output

display_every

Default: 20

Display frequency. Sometimes displays at half the frequency. IDK why.

display_clear

Default: False

If on the colab it clears the output whenever there is a new image. I'd recommend keep this False and check the init variables and intermediate steps for good measure.

make_video

Default: False

Make a 15 second video with intermediate frames. Currently its hard coded for now. Here's a code snippet you can use to specify fps.

#@title frames->video (make_video custom fps)

import cv2
import numpy as np
import glob
import os
from tqdm.notebook import tqdm
from PIL import Image

fps =    24#@param 
folder_name = "steps/" #@param
video_name = "output.mp4" #@param 
frames = glob.glob(folder_name+"*.png")
frames.sort()
frames = [cv2.imread(fn) for fn in frames]

height, width, layers = frames[0].shape
size = (width,height)
out = cv2.VideoWriter(video_name,cv2.VideoWriter_fourcc(*'MP4V'),fps,size)
 
for i in tqdm(frames):
    out.write(i)
out.release()

import warnings
from moviepy.editor import *
warnings.filterwarnings('ignore')
clip=VideoFileClip(video_name)
ipython_display(clip)
PreviousDrawer SettingsNextLosses

Last updated 3 years ago