GenASL Setup Issue

0

Hello! I am trying to set up the GenASL solution using the steps available on https://aws.amazon.com/blogs/machine-learning/genasl-generative-ai-powered-american-sign-language-avatars/

Once I reach the step 2.b. which involves downloading the sign videos, segmenting them, and storing them in S3, I face the following error: Screenshot of Error

This happens when my code hits line 212 in the create_sign_videos.py file. I have already ensured the correct installation of the FFmpeg tool on my EC2 instance as well.

Any tip(s) on how I can resolve this would be greatly appreciated. Thank you!

2 Answers
0

Consider modifying the subprocess.run call within the run_bash_cmd function by setting the shell parameter to True.

After this change, lines 221 and 222 of create_sign_videos.py should appear as follows

def run_bash_cmd(cmd, dir=None):
   
     subprocess.run(cmd, shell=True, cwd=dir, capture_output=True, text=True)


AWS
answered 2 months ago
  • Hello, thanks for your response. I tried this, but still had the same issue. I have updated the original post with an image.

0

I apologize for the issue you're experiencing with the GenASL setup. Based on the error message, it appears that the system is unable to find a specific file during the video processing step. Here are some suggestions to help resolve this issue:

  1. Double-check that you have correctly cloned the entire GitHub repository for the GenASL project. Make sure all the necessary files and directories are present in your local environment.

  2. Verify that the file paths in the configuration files are correct and match your actual directory structure. The error suggests that the system is looking for files in a specific location, so ensure that the paths are accurately set for your EC2 instance.

  3. Confirm that you have the necessary permissions to access and modify files in the specified directories on your EC2 instance.

  4. Ensure that the dataset of sign videos has been properly downloaded and is accessible in the expected location on your EC2 instance.

  5. Check if there are any space characters in your file paths. Sometimes, spaces can cause issues with file handling in scripts. If possible, try using a path without spaces or enclose the paths in quotes in the configuration files.

  6. Review the create_sign_videos.py script, particularly around line 212, to see if there are any hardcoded paths that might need to be adjusted for your specific setup.

  7. Make sure that your EC2 instance has sufficient storage space to accommodate the video files and processing requirements.

If these steps don't resolve the issue, you may need to debug the create_sign_videos.py script further. Consider adding print statements or logging to track the file paths being used and ensure they align with your actual file structure.

Remember that the GenASL solution uses a Windows-based EC2 instance for video processing, so make sure you're using the correct operating system and have followed all the environment setup steps correctly.
Sources
GenASL: Generative AI-powered American Sign Language avatars | AWS Machine Learning Blog

profile picture
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions