AIFSH / ComfyUI_V-Express

Other
80 stars 10 forks source link

sh: 1: Syntax error: "(" unexpected #3

Closed karthikg-09 closed 4 months ago

karthikg-09 commented 4 months ago

Getting error gpu - nvidia 4090 24gb vram

[rgthree] Using rgthree's optimized recursive execution.
INFO:albumentations.check_version:A new version of Albumentations is available: 1.4.8 (you have 1.4.7). Upgrade using: pip install --upgrade albumentations
/python3.10/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py:69: UserWarning: Specified provider 'CUDAExecutionProvider' is not in available provider names.Available providers: 'AzureExecutionProvider, CPUExecutionProvider'
  warnings.warn(
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/insightface_models/models/buffalo_l/1k3d68.onnx landmark_3d_68 ['None', 3, 192, 192] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/insightface_models/models/buffalo_l/2d106det.onnx landmark_2d_106 ['None', 3, 192, 192] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/insightface_models/models/buffalo_l/det_10g.onnx detection [1, 3, '?', '?'] 127.5 128.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/insightface_models/models/buffalo_l/genderage.onnx genderage ['None', 3, 96, 96] 0.0 1.0
Applied providers: ['CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}}
find model: /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/insightface_models/models/buffalo_l/w600k_r50.onnx recognition ['None', 3, 112, 112] 127.5 127.5
set det-size: (512, 512)
ffmpeg version 4.2.2-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/ComfyUI/input/1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : EVCapture4.2.2软件录制
    encoder         : Lavf57.25.100
    comment         : 本视频由湖南一唯信息科技开发的EV录屏软件录制,www.ieway.cn
  Duration: 00:00:06.13, start: 0.000000, bitrate: 864 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 700x700, 628 kb/s, 22.13 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 231 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:1 -> #0:0 (aac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to '/ComfyUI/input/1_aud.mp3':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    TIT2            : EVCapture4.2.2软件录制
    comment         : 本视频由湖南一唯信息科技开发的EV录屏软件录制,www.ieway.cn
    TSSE            : Lavf58.29.100
    Stream #0:0(und): Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp (default)
    Metadata:
      handler_name    : SoundHandler
      encoder         : Lavc58.54.100 libmp3lame
size=      96kB time=00:00:06.11 bitrate= 129.2kbits/s speed= 170x    
video:0kB audio:96kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.502953%
/python3.10/site-packages/insightface/utils/transform.py:68: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.
To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.
  P = np.linalg.lstsq(X_homo, Y)[0].T # Affine matrix. 3 x 4
/python /ComfyUI/custom_nodes/ComfyUI_V-Express/V_Express/inference.py --unet_config_path /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/stable-diffusion-v1-5/unet/config.json --vae_path /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/sd-vae-ft-mse --audio_encoder_path /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/wav2vec2-base-960h         --insightface_model_path /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/insightface_models --denoising_unet_path /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/v-express/denoising_unet.pth --reference_net_path /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/v-express/reference_net.pth --v_kps_guider_path /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/v-express/v_kps_guider.pth         --audio_projection_path /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/v-express/audio_projection.pth --motion_module_path /ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/v-express/motion_module.pth --retarget_strategy naive_retarget --device cuda --gpu_id 1 --dtype fp16         --num_pad_audio_frames 2 --standard_audio_sampling_rate 16000 --reference_image_path tensor([[[[0.8471, 0.8039, 0.7255],
          [0.8471, 0.8039, 0.7255],
          [0.8471, 0.8039, 0.7255],
          ...,
          [0.8275, 0.8039, 0.7176],
          [0.8275, 0.8039, 0.7176],
          [0.8275, 0.8039, 0.7176]],

         [[0.8471, 0.8039, 0.7255],
          [0.8471, 0.8039, 0.7255],
          [0.8471, 0.8039, 0.7255],
          ...,
          [0.8275, 0.8039, 0.7176],
          [0.8275, 0.8039, 0.7176],
          [0.8275, 0.8039, 0.7176]],

         [[0.8471, 0.8039, 0.7255],
          [0.8471, 0.8039, 0.7255],
          [0.8471, 0.8039, 0.7255],
          ...,
          [0.8275, 0.8039, 0.7176],
          [0.8275, 0.8039, 0.7176],
          [0.8275, 0.8039, 0.7176]],

         ...,

         [[0.8353, 0.8000, 0.7725],
          [0.8353, 0.8000, 0.7725],
          [0.8275, 0.7922, 0.7647],
          ...,
          [0.6392, 0.6039, 0.5451],
          [0.6471, 0.6118, 0.5529],
          [0.6824, 0.6471, 0.5882]],

         [[0.8471, 0.8118, 0.7765],
          [0.8471, 0.8118, 0.7765],
          [0.8392, 0.8039, 0.7686],
          ...,
          [0.6627, 0.6275, 0.5686],
          [0.7059, 0.6706, 0.6118],
          [0.7255, 0.6902, 0.6314]],

         [[0.8549, 0.8196, 0.7843],
          [0.8549, 0.8196, 0.7843],
          [0.8471, 0.8118, 0.7765],
          ...,
          [0.6784, 0.6431, 0.5843],
          [0.7176, 0.6824, 0.6235],
          [0.7412, 0.7059, 0.6471]]]]) --audio_path /ComfyUI/input/1.mp4.wav --kps_path /ComfyUI/input/1_kps.pth         --output_path /ComfyUI/output/1717078557.2410054_vexpress.mp4 --image_width 512 --image_height 512 --fps 30.0 --seed 259 --num_inference_steps 30 --guidance_scale 3.5         --context_frames 12 --context_stride 1 --context_overlap 4 --reference_attention_weight 0.95 --audio_attention_weight 3.0
sh: 1: Syntax error: "(" unexpected
Prompt executed in 19.28 seconds
Alchemy-JPEG commented 4 months ago

Same error also. Thank you again for this work.

MoviePy - Writing audio in /content/drive/MyDrive/ComfyUIMay24/ComfyUI/input/Sonline-video-cutter.com_LIPSICK.mp4.wav MoviePy - Done. usage: extract_kps_sequence_and_audio.py [-h] [--video_path VIDEO_PATH] [--kps_sequence_save_path KPS_SEQUENCE_SAVE_PATH] [--audio_save_path AUDIO_SAVE_PATH] [--device DEVICE] [--gpu_id GPU_ID] [--insightface_model_path INSIGHTFACE_MODEL_PATH] [--height HEIGHT] [--width WIDTH] extract_kps_sequence_and_audio.py: error: unrecognized arguments: online-video-cutter.com_LIPSICK.mp4 online-video-cutter.com_LIPSICK_kps.pthonline-video-cutter.com_LIPSICK_aud.mp3 /usr/bin/python3 /content/drive/MyDrive/ComfyUIMay24/ComfyUI/custom_nodes/ComfyUI_V-Express/V_Express/inference.py --unet_config_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/stable-diffusion-v1-5/unet/config.json --vae_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/sd-vae-ft-mse --audio_encoder_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/wav2vec2-base-960h --insightface_model_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/insightface_models --denoising_unet_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/v-express/denoising_unet.pth --reference_net_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/v-express/reference_net.pth --v_kps_guider_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/v-express/v_kps_guider.pth --audio_projection_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/v-express/audio_projection.pth --motion_module_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/custom_nodes/ComfyUI_V-Express/model_ckpts/v-express/motion_module.pth --retarget_strategy fix_face --device cuda --gpu_id 0 --dtype fp16 --num_pad_audio_frames 2 --standard_audio_sampling_rate 16000 --reference_image_path tensor([[[[0.1490, 0.2353, 0.3255], [0.1137, 0.2039, 0.3098], [0.1137, 0.2039, 0.3020], ..., [0.0863, 0.0667, 0.0627], [0.0863, 0.0667, 0.0667], [0.0980, 0.0824, 0.0745]],

     [[0.1255, 0.2275, 0.3294],
      [0.1294, 0.2314, 0.3294],
      [0.1137, 0.2078, 0.2980],
      ...,
      [0.0863, 0.0667, 0.0824],
      [0.0824, 0.0784, 0.0745],
      [0.0863, 0.0745, 0.0706]],

     [[0.1294, 0.2314, 0.3294],
      [0.1333, 0.2314, 0.3255],
      [0.1176, 0.2118, 0.3059],
      ...,
      [0.0902, 0.0706, 0.0824],
      [0.0902, 0.0824, 0.0824],
      [0.0824, 0.0706, 0.0745]],

     ...,

     [[0.1569, 0.1216, 0.0863],
      [0.1490, 0.1137, 0.0863],
      [0.1490, 0.1137, 0.0824],
      ...,
      [0.0314, 0.0039, 0.0118],
      [0.0314, 0.0078, 0.0078],
      [0.0314, 0.0000, 0.0118]],

     [[0.1529, 0.1176, 0.0824],
      [0.1451, 0.1176, 0.0784],
      [0.1451, 0.1137, 0.0824],
      ...,
      [0.0275, 0.0039, 0.0078],
      [0.0275, 0.0000, 0.0078],
      [0.0353, 0.0000, 0.0118]],

     [[0.1529, 0.1216, 0.0902],
      [0.1490, 0.1137, 0.0824],
      [0.1490, 0.1098, 0.0902],
      ...,
      [0.0275, 0.0000, 0.0078],
      [0.0353, 0.0000, 0.0118],
      [0.0157, 0.0000, 0.0000]]]]) --audio_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/input/ElevenLabs_2024-05-30T10_59_07_Ryan Kurk_pvc_s30_sb80_m1.mp3 --kps_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/input/online-video-cutter.com_LIPSICK_kps.pth         --output_path /content/drive/MyDrive/ComfyUIMay24/ComfyUI/output/1717086004.8773644_vexpress.mp4 --image_width 816 --image_height 1456 --fps 30.0 --seed 1429 --num_inference_steps 30 --guidance_scale 3.5         --context_frames 12 --context_stride 1 --context_overlap 4 --reference_attention_weight 0.95 --audio_attention_weight 3.0

sh: 1: Syntax error: "(" unexpected Prompt executed in 4.12 seconds no pending upload

AIFSH commented 4 months ago

4

same issue

karthikg-09 commented 4 months ago

@AIFSH I don't have any special characters or white spaces in the file path, but I am still getting an error. The error is not related to the file name.

sleppyrobot commented 4 months ago

Hi just tested this for the first time an hour ago, getting this same issue as well.

AM using linux with an AMD GPU and my user name does not have white spaces nor does any part of the save output video path

sleppyrobot commented 4 months ago

I was using the load image instead of the load image path, it works now