Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Ola path for GPUs #562

Merged
merged 3 commits into from
Mar 1, 2025
Merged

Fix Ola path for GPUs #562

merged 3 commits into from
Mar 1, 2025

Conversation

Devininthelab
Copy link
Collaborator

Before you open a pull-request, please check if a similar issue already exists or has been closed before.

When you open a pull-request, please be sure to include the following

  • A descriptive title: [xxx] XXXX
  • A detailed description

If you meet the lint warnings, you can use following scripts to reformat code.

pip install pre-commit
pre-commit install
pre-commit run --all-files

Thank you for your contributions!

@Devininthelab
Copy link
Collaborator Author

@kcz358 Hi I fixed the issue you mentioned. Please check again for me.

@@ -71,7 +71,7 @@
AutoConfig.register("ola_qwen", OlaConfigQwen)
except:
eval_logger.debug("")
from moviepy.video.io.VideoFileClip import VideoFileClip
import moviepy.editor as mp
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, may I ask which version of moviepy you are using. I think for higher level moviepy, it is better to import it with direct import. See issue

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi I'm using moviepy==1.0.3. I also encountered the same problem when first integrated videos for Ola, and solve by just reinstall it.

pip uninstall moviepy
pip install moviepy==1.0.3

I also fixed the import. Please help me check it.

@@ -354,7 +353,7 @@ def flatten(self, input):
return new_list

def extract_audio(self, videos_file_path):
my_clip = VideoFileClip(videos_file_path)
my_clip = mp.VideoFileClip(videos_file_path)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kindly check my comments above for moviepy

Copy link
Collaborator

@kcz358 kcz358 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Devininthelab , can you help me to check about the moviepy issue? Thanks!

@kcz358
Copy link
Collaborator

kcz358 commented Feb 28, 2025

Hi @Devininthelab , I changes a bit on the image and audio processing logic because I spotted some bugs in some cases. Feel free to check if it is correct and then I will merge the PR. Thanks!

@kcz358 kcz358 merged commit 9310d89 into main Mar 1, 2025
2 checks passed
@kcz358 kcz358 deleted the dev/fix/Ola branch March 1, 2025 02:30
@Devininthelab
Copy link
Collaborator Author

Hi I think it's okay. I got a hackathon yesterday so I forgot to check the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants