forked from CompVis/stable-diffusion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
swap_config.yaml
61 lines (48 loc) · 1.91 KB
/
swap_config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
!!python/object:__main__.Namespace
ckpt_loc: models/ldm/stable-diffusion-v1/model.ckpt
config: configs/stable-diffusion/v1-inference.yaml
out_dir: D:/development/faceswap/videos/img
video_in: D:/development/faceswap/videos/dungeons_dragons.mp4
face_cascade: D:/development/stable-diffusion-gui/swap_test/haarcascade_frontalface_default.xml
# don't bother with any of these other face detect modes, not as good as mediapipe
deep_caffe_prototxt: C:/Users/gamma/Documents/development/stable-diffusion-gui/configs/swap/deploy.prototxt.txt
deep_caffe_model: C:/Users/gamma/Documents/development/stable-diffusion-gui/configs/swap/res10_300x300_ssd_iter_140000_fp16.caffemodel
deep_caffe_confidence: 0.3
dlib_detector: C:/Users/gamma/Documents/development/stable-diffusion-gui/configs/swap/mmod_human_face_detector.dat
fps: 30
# other options are cascade, deep, and dlib, but don't bother!
mode: 'mediapipe'
embeddings:
# - file: D:\development\textual_inversion\logs\mordred\checkpoints\embeddings.pt
# token: '*'
prompt: "a cartoon of *"
steps: 50
scale: 13
strength: 0.45
# write images instead of video
write_pics: true
# still write pics for no face frames
write_pics_no_face_frames: true
# How often to capture a frame
# 1 does every frame in the video
# 100 would only render every 100th frame
frame_skip: 1000
# only if you have tkinter
show_preview: false
# Use half precision on the model
half: true
# The starting frame to render from
skip_frames: 0
# Max number of frames to render. 0 renders them all
stop_after: 0
# Pastes the original face to the right of the modified one
include_originals: false
# how far to expand above the detected face box
# right now it needs to be the same as expand, or causes black lines
# (it's a bug... )
expand_up: 20
# How far to expand the face box to the left, right and down
expand: 20
# This swaps all faces in the image for every frame
# (right now it's gonna do that either way)
all_faces: true