uploading image template processed faces works!

This commit is contained in:
Brandon Thomas committed 2021-05-24 19:37:04 -04:00
1 parent 6a07f5f91d
commit 46b613fef2
3 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -135,7 +135,9 @@ SET
original_download_url = ?,
private_bucket_hash = ?,
private_bucket_object_name = ?,
private_bucket_cached_faces_object_name = ?
private_bucket_cached_faces_object_name = ?,
public_bucket_hash = 'TODO',
public_bucket_object_name = 'TODO'
"#,
model_token,
template_type,
@@ -46,7 +46,7 @@ impl Wav2LipPreprocessClient {
command.push_str(&self.checkpoint_path);
command.push_str(" --image_or_video_filename ");
command.push_str(image_or_video_filename);
command.push_str(" --output_cached_faces_filename");
command.push_str(" --output_cached_faces_filename ");
command.push_str(output_cached_faces_filename);
if is_image {
+1 -1
View File
@@ -241,7 +241,7 @@ async fn process_job(downloader: &Downloader, job: &W2lTemplateUploadJobRecord)
let cached_faces_filename = format!("{}_detected_faces.pickle", &download_filename);
let is_image = false; // TODO: Don't always treat as video.
let spawn_process = true;
let spawn_process = false;
downloader.w2l_processor.execute(
&download_filename,