Compare commits
7 Commits
3b2d23adcf
...
28bb2e9757
Author | SHA1 | Date |
---|---|---|
|
28bb2e9757 | |
|
28109e93bb | |
|
fc312516e3 | |
|
677a4dd096 | |
|
647c5f250f | |
|
ae88412aae | |
|
b7e011f5e7 |
|
@ -0,0 +1,46 @@
|
||||||
|
{
|
||||||
|
"Source x Target Mapper": "Mapeador de fuente x destino",
|
||||||
|
"select a source image": "Seleccionar imagen fuente",
|
||||||
|
"Preview": "Vista previa",
|
||||||
|
"select a target image or video": "elegir un video o una imagen fuente",
|
||||||
|
"save image output file": "guardar imagen final",
|
||||||
|
"save video output file": "guardar video final",
|
||||||
|
"select a target image": "elegir una imagen objetiva",
|
||||||
|
"source": "fuente",
|
||||||
|
"Select a target": "Elegir un destino",
|
||||||
|
"Select a face": "Elegir una cara",
|
||||||
|
"Keep audio": "Mantener audio original",
|
||||||
|
"Face Enhancer": "Potenciador de caras",
|
||||||
|
"Many faces": "Varias caras",
|
||||||
|
"Show FPS": "Mostrar fps",
|
||||||
|
"Keep fps": "Mantener fps",
|
||||||
|
"Keep frames": "Mantener frames",
|
||||||
|
"Fix Blueish Cam": "Corregir tono azul de video",
|
||||||
|
"Mouth Mask": "Máscara de boca",
|
||||||
|
"Show Mouth Mask Box": "Mostrar área de la máscara de boca",
|
||||||
|
"Start": "Iniciar",
|
||||||
|
"Live": "En vivo",
|
||||||
|
"Destroy": "Borrar",
|
||||||
|
"Map faces": "Mapear caras",
|
||||||
|
"Processing...": "Procesando...",
|
||||||
|
"Processing succeed!": "¡Proceso terminado con éxito!",
|
||||||
|
"Processing ignored!": "¡Procesamiento omitido!",
|
||||||
|
"Failed to start camera": "No se pudo iniciar la cámara",
|
||||||
|
"Please complete pop-up or close it.": "Complete o cierre el pop-up",
|
||||||
|
"Getting unique faces": "Buscando caras únicas",
|
||||||
|
"Please select a source image first": "Primero, seleccione una imagen fuente",
|
||||||
|
"No faces found in target": "No se encontró una cara en el destino",
|
||||||
|
"Add": "Agregar",
|
||||||
|
"Clear": "Limpiar",
|
||||||
|
"Submit": "Enviar",
|
||||||
|
"Select source image": "Seleccionar imagen fuente",
|
||||||
|
"Select target image": "Seleccionar imagen destino",
|
||||||
|
"Please provide mapping!": "Por favor, proporcione un mapeo",
|
||||||
|
"At least 1 source with target is required!": "Se requiere al menos una fuente con un destino.",
|
||||||
|
"At least 1 source with target is required!": "Se requiere al menos una fuente con un destino.",
|
||||||
|
"Face could not be detected in last upload!": "¡No se pudo encontrar una cara en el último video o imagen!",
|
||||||
|
"Select Camera:": "Elegir cámara:",
|
||||||
|
"All mappings cleared!": "¡Todos los mapeos fueron borrados!",
|
||||||
|
"Mappings successfully submitted!": "Mapeos enviados con éxito!",
|
||||||
|
"Source x Target Mapper is already open.": "El mapeador de fuente x destino ya está abierto."
|
||||||
|
}
|
|
@ -28,11 +28,21 @@ models_dir = os.path.join(
|
||||||
|
|
||||||
|
|
||||||
def pre_check() -> bool:
|
def pre_check() -> bool:
|
||||||
download_directory_path = abs_dir
|
# Use models_dir instead of abs_dir to save to the correct location
|
||||||
|
download_directory_path = models_dir
|
||||||
|
|
||||||
|
# Make sure the models directory exists, catch permission errors if they occur
|
||||||
|
try:
|
||||||
|
os.makedirs(download_directory_path, exist_ok=True)
|
||||||
|
except OSError as e:
|
||||||
|
logging.error(f"Failed to create directory {download_directory_path} due to permission error: {e}")
|
||||||
|
return False
|
||||||
|
|
||||||
|
# Use the direct download URL from Hugging Face
|
||||||
conditional_download(
|
conditional_download(
|
||||||
download_directory_path,
|
download_directory_path,
|
||||||
[
|
[
|
||||||
"https://huggingface.co/hacksider/deep-live-cam/blob/main/inswapper_128_fp16.onnx"
|
"https://huggingface.co/hacksider/deep-live-cam/resolve/main/inswapper_128_fp16.onnx"
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue