Compare commits
3 commits
407e5633b8
...
0448fd613f
| Author | SHA1 | Date | |
|---|---|---|---|
| 0448fd613f | |||
| 8bea9f88fa | |||
| 1b47a89c17 |
4 changed files with 8 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ User=pandora
|
||||||
Group=pandora
|
Group=pandora
|
||||||
Nice=19
|
Nice=19
|
||||||
WorkingDirectory=/srv/pandora/pandora
|
WorkingDirectory=/srv/pandora/pandora
|
||||||
ExecStart=/srv/pandora/pandora/manage.py infinity --config /etc/infinity.json
|
ExecStart=/srv/pandora/pandora/manage.py infinity
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
|
|
@ -372,8 +372,11 @@ def process_frame(item, prompt, character=None, position=0):
|
||||||
return img
|
return img
|
||||||
|
|
||||||
def replace_character(item, character, position=0):
|
def replace_character(item, character, position=0):
|
||||||
prompt = "Replace the foreground character in image 1 with the character in image 2, keep the posture, clothing, background, light, admosthere from image 1, but take the face and personality from image 2. Make sure the size of the character is adjusted since the new character is a child. The quality of the image should be the same between foreground and background, adjust the quality of the character to match the background"
|
prompt = "Replace the foreground character in image 1 with the character in image 2, keep the posture, clothing, background, light, admosthere from image 1, but take the facial features and personality from image 2. Make sure the size of the character is adjusted since the new character is a child and make sure the size of the head matches the body. The quality of the image should be the same between foreground and background, adjust the quality of the character to match the background. Use the style of image 1 for the character: if image 1 is a photo make the character a real person, if image 1 is a drawing make the character a drawn character, if image 1 is a comic use a comic character and so on"
|
||||||
if character in ("P1", "P2", "P3"):
|
prompt = "Replace the foreground character in image 1 with the character in image 2, keep the posture, clothing, background, light, admosthere from image 1, but take the facial features and personality from image 2. Make sure the size of the character is adjusted since the new character is a child and make sure the size of the head matches the body. The quality of the image should be the same between foreground and background, adjust the quality of the character to match the background. Use the style of image 1 for the character: if image 1 is a photo make the character a real person, if image 1 is a drawing make the character a drawn character, if image 1 is a comic use a comic character"
|
||||||
|
if character == "P5":
|
||||||
|
prompt = prompt.replace('child', 'teenager')
|
||||||
|
if character in ("P1", "P2", "P3", "P4", "P5"):
|
||||||
character = public_document_url(Document.objects.get(data__title="Character " + character))
|
character = public_document_url(Document.objects.get(data__title="Character " + character))
|
||||||
return process_frame(item, prompt, character, position)
|
return process_frame(item, prompt, character, position)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -717,6 +717,7 @@ def update_m3u(render_prefix, exclude=[]):
|
||||||
shutil.move(front_m3u_f + "_", front_m3u_f)
|
shutil.move(front_m3u_f + "_", front_m3u_f)
|
||||||
|
|
||||||
def render_infinity(options):
|
def render_infinity(options):
|
||||||
|
options = load_defaults(options)
|
||||||
prefix = options['prefix']
|
prefix = options['prefix']
|
||||||
duration = int(options['duration'])
|
duration = int(options['duration'])
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ import re
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import lxml.etree
|
import lxml.etree
|
||||||
|
import ox
|
||||||
|
|
||||||
from .render_kdenlive import melt_xml
|
from .render_kdenlive import melt_xml
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue