AIFSH / ComfyUI_V-Express

Other
80 stars 10 forks source link

Code does not work with user name that has space like "John Smith" #4

Closed BrawnyAi closed 4 months ago

BrawnyAi commented 4 months ago

"path\to\" refers to "C:\Users\John Smith\" I anonymized the error:

        [rgthree] Using rgthree's optimized recursive execution.
        [rgthree] First run patching recursive_output_delete_if_changed and recursive_will_execute.
        [rgthree] Note: If execution seems broken due to forward ComfyUI changes, you can disable the optimization from rgthree settings in ComfyUI.
        MoviePy - Writing audio in C:\path\to\ComfyUI_windows_portable\ComfyUI\input\IMG_0490.mp4.wav
        MoviePy - Done.
          File "C:\path\to\ComfyUI_windows_portable\python_embeded\python.exe" "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\V_Express/inference.py" --unet_config_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\model_ckpts\stable-diffusion-v1-5\unet\config.json" --vae_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\model_ckpts\sd-vae-ft-mse" --audio_encoder_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\model_ckpts\wav2vec2-base-960h" --insightface_model_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\model_ckpts\insightface_models" --denoising_unet_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\model_ckpts\v-express\denoising_unet.pth" --reference_net_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\model_ckpts\v-express\reference_net.pth" --v_kps_guider_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\model_ckpts\v-express\v_kps_guider.pth" --audio_projection_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\model_ckpts\v-express\audio_projection.pth" --motion_module_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\model_ckpts\v-express\motion_module.pth" --retarget_strategy naive_retarget --device cuda --gpu_id 0 --dtype fp16 --num_pad_audio_frames 2 --standard_audio_sampling_rate 16000 --reference_image_path tensor([[[[0.1882, 0.1647, 0.1412],
                  [0.1882, 0.1608, 0.1451],
                  [0.1843, 0.1569, 0.1373],
                  ...,
                  [0.8863, 0.9176, 0.9255],
                  [0.8784, 0.9059, 0.9176],
                  [0.8902, 0.9098, 0.9216]],

                 [[0.1961, 0.1804, 0.1451],
                  [0.1922, 0.1765, 0.1451],
                  [0.1882, 0.1686, 0.1451],
                  ...,
                  [0.8784, 0.9059, 0.9137],
                  [0.8706, 0.8941, 0.9059],
                  [0.8824, 0.9059, 0.9255]],

                 [[0.1961, 0.1725, 0.1490],
                  [0.1961, 0.1765, 0.1529],
                  [0.1922, 0.1686, 0.1490],
                  ...,
                  [0.8824, 0.9059, 0.9137],
                  [0.8745, 0.9020, 0.9059],
                  [0.8902, 0.9176, 0.9294]],

                 ...,

                 [[0.4745, 0.5373, 0.4471],
                  [0.4745, 05294, 0.4471],
                  [0.4745, 0.5255, 0.4392],
                  ...,
                  [0.3490, 0.3882, 0.2196],
                  [0.3529, 0.3922, 0.2196],
                  [0.3529, 0.4000, 0.2353]],

                 [[0.4706, 0.5412, 0.4471],
                  [0.4667, 0.5333, 0.4431],
                  [0.4706, 0.5294, 0.4392],
                  ...,
                  [0.3490, 0.3843, 0.2157],
                  [0.3490, 0.3922, 0.2196],
                  [0.3569, 0.4039, 0.2353]],

                 [[0.4784, 0.5294, 0.4588],
                  [0.4627, 0.5216, 0.4431],
                  [0.4667, 0.5176, 0.4353],
                  ...,
                  [0.3569, 0.3882, 0.2275],
                  [0.3608, 0.3961, 0.2275],
                  [0.3647, 0.3882, 0.2353]]]])" --audio_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\input\IMG_0490.mp4.wav" --kps_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\input\IMG_0490_kps.pth" --output_path "C:\path\to\ComfyUI_windows_portable\ComfyUI\output\1717093009.9891467_vexpress.mp4" --image_width 512 --image_height 512 --fps 30.0 --seed 333 --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
          File "C:\path\to\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_V-Express\V_Express/inference.py", line 1
            [111C:2DC4][2023-06-21T18:43:21]i001: Burn v3.10.4.4718, Windows v10.0 (Build 22621: Service Pack 0), path: C:\WINDOWS\Temp\{3338A862-6A41-4DF8-A285-EE50887F1ABD}\.cr\VC_redist.x64.exe
               ^
        SyntaxError: invalid decimal literal
        Prompt executed in 0.52 seconds

Detailed Summary of the Issue:

1.  MoviePy Operation:
•   The process begins with MoviePy writing audio from a video file to a .wav file. This step completes successfully, as indicated by the message: “MoviePy - Done.”
2.  Execution Command:
•   The issue arises when attempting to execute a Python script (inference.py) with a command that includes various paths and parameters. The command includes paths to configuration files, model checkpoints, and input/output data.
3.  Filename and Directory Syntax Error:
•   The error message “The filename, directory name, or volume label syntax is incorrect” suggests that there is an issue with the syntax of one or more file paths or parameters in the command.
•   The command uses both forward slashes and backward slashes in paths, which can cause issues on Windows systems.
•   The path for the reference_image_path parameter appears to be problematic, as it contains tensor values instead of a valid file path.
4.  SyntaxError:
•   The specific Python error “SyntaxError: invalid decimal literal” is raised due to an attempt to execute a command with an invalid path or parameter.
•   This error indicates that the command syntax is incorrect, likely due to unescaped characters or improperly formatted paths.

Potential Causes:

•   Improper Handling of File Paths:
•   Paths that contain spaces or special characters need to be properly quoted.
•   Ensure consistency in using either forward slashes or backward slashes for paths on Windows.
•   Incorrect Parameter Values:
•   Ensure that all parameters, especially paths, are correctly formatted and quoted.
•   Verify that the reference_image_path parameter contains a valid file path and not tensor values.

Suggested Changes:

•   Properly quote all paths and parameters in the command.
•   Ensure
AIFSH commented 4 months ago

not loadimage node but loadimagepath,check your node again