Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cb33994

Browse files
committedDec 27, 2022
add border mode to args and docs
1 parent a142aeb commit cb33994

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎javascript/deforum-hints.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ deforum_titles = {
4040
"border": "controls handling method of pixels to be generated when the image is smaller than the frame.",
4141
"wrap": "pulls pixels from the opposite edge of the image",
4242
"replicate": "repeats the edge of the pixels, and extends them. Animations with quick motion may yield lines where this border function was attempting to populate pixels into the empty space created.",
43+
"smart": "makes a second 'inpaint' pass to fill empty space when zooming out or shifting the frame; useful to fix the 'border stripes' and make the 'sidespace' feel more open; overrides padding_mode",
4344
"angle": "2D operator to rotate canvas clockwise/anticlockwise in degrees per frame",
4445
"zoom": "2D operator that scales the canvas size, multiplicatively. [static = 1.0]",
4546
"translation_x": "2D & 3D operator to move canvas left/right in pixels per frame",

‎scripts/deforum_helpers/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def DeforumAnimArgs():
2222
#@markdown ####**Animation:**
2323
animation_mode = '2D' #@param ['None', '2D', '3D', 'Video Input', 'Interpolation'] {type:'string'}
2424
max_frames = 120 #@param {type:"number"}
25-
border = 'replicate' #@param ['wrap', 'replicate'] {type:'string'}
25+
border = 'replicate' #@param ['wrap', 'replicate', 'smart'] {type:'string'}
2626

2727
#@markdown ####**Motion Parameters:**
2828
angle = "0:(0)"#@param {type:"string"}

0 commit comments

Comments
 (0)
Please sign in to comment.