mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-12-03 16:48:05 +09:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4151650a90 | ||
|
|
2c1e9f38f7 | ||
|
|
164b0309ab | ||
|
|
ca080e53a0 | ||
|
|
7776365c80 | ||
|
|
ef3a2dfbe5 | ||
|
|
1b26fe9a46 |
No files matched your search
@@ -17,6 +17,9 @@ from googleapiclient.http import MediaFileUpload
|
||||
import subprocess
|
||||
import time
|
||||
from cdgmaker.lrc_to_cdg import generate_cdg
|
||||
from google.oauth2.credentials import Credentials
|
||||
import base64
|
||||
from email.mime.text import MIMEText
|
||||
|
||||
|
||||
class KaraokeFinalise:
|
||||
@@ -38,6 +41,7 @@ class KaraokeFinalise:
|
||||
rclone_destination=None,
|
||||
discord_webhook_url=None,
|
||||
non_interactive=False,
|
||||
email_template_file=None,
|
||||
):
|
||||
self.logger = logging.getLogger(__name__)
|
||||
self.logger.setLevel(log_level)
|
||||
@@ -117,6 +121,9 @@ class KaraokeFinalise:
|
||||
self.new_brand_code_dir_path = None
|
||||
self.brand_code_dir_sharing_link = None
|
||||
|
||||
self.email_template_file = email_template_file
|
||||
self.gmail_service = None
|
||||
|
||||
def check_input_files_exist(self, base_name, with_vocals_file, instrumental_audio_file):
|
||||
self.logger.info(f"Checking required input files exist...")
|
||||
|
||||
@@ -265,11 +272,11 @@ class KaraokeFinalise:
|
||||
def authenticate_youtube(self):
|
||||
"""Authenticate and return a YouTube service object."""
|
||||
credentials = None
|
||||
pickle_file = "/tmp/karaoke-finalise-token.pickle"
|
||||
youtube_token_file = "/tmp/karaoke-finalise-youtube-token.pickle"
|
||||
|
||||
# Token file stores the user's access and refresh tokens.
|
||||
if os.path.exists(pickle_file):
|
||||
with open(pickle_file, "rb") as token:
|
||||
# Token file stores the user's access and refresh tokens for YouTube.
|
||||
if os.path.exists(youtube_token_file):
|
||||
with open(youtube_token_file, "rb") as token:
|
||||
credentials = pickle.load(token)
|
||||
|
||||
# If there are no valid credentials, let the user log in.
|
||||
@@ -283,7 +290,7 @@ class KaraokeFinalise:
|
||||
credentials = flow.run_local_server(port=0) # This will open a browser for authentication
|
||||
|
||||
# Save the credentials for the next run
|
||||
with open(pickle_file, "wb") as token:
|
||||
with open(youtube_token_file, "wb") as token:
|
||||
pickle.dump(credentials, token)
|
||||
|
||||
return build("youtube", "v3", credentials=credentials)
|
||||
@@ -817,6 +824,69 @@ class KaraokeFinalise:
|
||||
|
||||
self.generate_organised_folder_sharing_link()
|
||||
|
||||
def authenticate_gmail(self):
|
||||
"""Authenticate and return a Gmail service object."""
|
||||
creds = None
|
||||
gmail_token_file = "/tmp/karaoke-finalise-gmail-token.pickle"
|
||||
|
||||
if os.path.exists(gmail_token_file):
|
||||
with open(gmail_token_file, "rb") as token:
|
||||
creds = pickle.load(token)
|
||||
|
||||
if not creds or not creds.valid:
|
||||
if creds and creds.expired and creds.refresh_token:
|
||||
creds.refresh(Request())
|
||||
else:
|
||||
flow = InstalledAppFlow.from_client_secrets_file(
|
||||
self.youtube_client_secrets_file, ["https://www.googleapis.com/auth/gmail.compose"]
|
||||
)
|
||||
creds = flow.run_local_server(port=0)
|
||||
with open(gmail_token_file, "wb") as token:
|
||||
pickle.dump(creds, token)
|
||||
|
||||
return build("gmail", "v1", credentials=creds)
|
||||
|
||||
def draft_completion_email(self, artist, title, youtube_url, dropbox_url):
|
||||
if not self.email_template_file:
|
||||
self.logger.info("Email template file not provided, skipping email draft creation.")
|
||||
return
|
||||
|
||||
with open(self.email_template_file, "r") as f:
|
||||
template = f.read()
|
||||
|
||||
email_body = template.format(youtube_url=youtube_url, dropbox_url=dropbox_url)
|
||||
|
||||
subject = f"{self.brand_code}: {artist} - {title}"
|
||||
|
||||
if self.dry_run:
|
||||
self.logger.info(f"DRY RUN: Would create email draft with subject: {subject}")
|
||||
self.logger.info(f"DRY RUN: Email body:\n{email_body}")
|
||||
else:
|
||||
if not self.gmail_service:
|
||||
self.gmail_service = self.authenticate_gmail()
|
||||
|
||||
message = MIMEText(email_body)
|
||||
message["subject"] = subject
|
||||
raw_message = base64.urlsafe_b64encode(message.as_bytes()).decode("utf-8")
|
||||
draft = self.gmail_service.users().drafts().create(userId="me", body={"message": {"raw": raw_message}}).execute()
|
||||
self.logger.info(f"Email draft created with ID: {draft['id']}")
|
||||
|
||||
def test_email_template(self):
|
||||
if not self.email_template_file:
|
||||
self.logger.error("Email template file not provided. Use --email_template_file to specify the file path.")
|
||||
return
|
||||
|
||||
fake_artist = "Test Artist"
|
||||
fake_title = "Test Song"
|
||||
fake_youtube_url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
|
||||
fake_dropbox_url = "https://www.dropbox.com/sh/fake/folder/link"
|
||||
fake_brand_code = "TEST-0001"
|
||||
|
||||
self.brand_code = fake_brand_code
|
||||
self.draft_completion_email(fake_artist, fake_title, fake_youtube_url, fake_dropbox_url)
|
||||
|
||||
self.logger.info("Email template test complete. Check your Gmail drafts for the test email.")
|
||||
|
||||
def process(self):
|
||||
if self.dry_run:
|
||||
self.logger.warning("Dry run enabled. No actions will be performed.")
|
||||
@@ -862,4 +932,7 @@ class KaraokeFinalise:
|
||||
if self.enable_txt:
|
||||
result["final_karaoke_txt_zip"] = output_files["final_karaoke_txt_zip"]
|
||||
|
||||
if self.email_template_file:
|
||||
self.draft_completion_email(artist, title, result["youtube_url"], result["brand_code_dir_sharing_link"])
|
||||
|
||||
return result
|
||||
+252
-79
@@ -11,6 +11,10 @@ import yt_dlp.YoutubeDL as ydl
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
from lyrics_transcriber import LyricsTranscriber
|
||||
from karaoke_lyrics_processor import KaraokeLyricsProcessor
|
||||
import json
|
||||
import subprocess
|
||||
from pydub import AudioSegment
|
||||
import numpy as np
|
||||
|
||||
|
||||
class KaraokePrep:
|
||||
@@ -23,11 +27,12 @@ class KaraokePrep:
|
||||
dry_run=False,
|
||||
log_level=logging.DEBUG,
|
||||
log_formatter=None,
|
||||
model_names=["UVR_MDXNET_KARA_2.onnx", "model_mel_band_roformer_ep_3005_sdr_11.4360.ckpt"],
|
||||
clean_instrumental_model="model_bs_roformer_ep_317_sdr_12.9755.ckpt",
|
||||
backing_vocals_models=["mel_band_roformer_karaoke_aufr33_viperx_sdr_10.1956.ckpt", "UVR-BVE-4B_SN-44100-1.pth"],
|
||||
other_stems_models=["htdemucs_6s.yaml"],
|
||||
model_file_dir=os.path.join(tempfile.gettempdir(), "audio-separator-models"),
|
||||
output_dir=".",
|
||||
lossless_output_format="FLAC",
|
||||
lossy_output_format="MP3",
|
||||
use_cuda=False,
|
||||
use_coreml=False,
|
||||
normalization_enabled=True,
|
||||
@@ -89,11 +94,12 @@ class KaraokePrep:
|
||||
self.artist = artist
|
||||
self.title = title
|
||||
self.filename_pattern = filename_pattern
|
||||
self.model_names = model_names
|
||||
self.clean_instrumental_model = clean_instrumental_model
|
||||
self.backing_vocals_models = backing_vocals_models
|
||||
self.other_stems_models = other_stems_models
|
||||
self.model_file_dir = model_file_dir
|
||||
self.output_dir = output_dir
|
||||
self.lossless_output_format = lossless_output_format.lower()
|
||||
self.lossy_output_format = lossy_output_format.lower()
|
||||
self.use_cuda = use_cuda
|
||||
self.use_coreml = use_coreml
|
||||
self.normalization_enabled = normalization_enabled
|
||||
@@ -288,6 +294,10 @@ class KaraokePrep:
|
||||
return output_filename
|
||||
|
||||
def write_lyrics_from_genius(self, artist, title, filename):
|
||||
if self._file_exists(filename):
|
||||
with open(filename, "r") as f:
|
||||
return f.read().split("\n")
|
||||
|
||||
genius = lyricsgenius.Genius(access_token=os.environ["GENIUS_API_TOKEN"], verbose=False, remove_section_headers=True)
|
||||
song = genius.search_song(title, artist)
|
||||
if song:
|
||||
@@ -428,6 +438,9 @@ class KaraokePrep:
|
||||
self.logger.info(f"MidiCo LRC output file: {transcriber_outputs['midico_lrc_filepath']}")
|
||||
|
||||
def write_processed_lyrics(self, lyrics_file, processed_lyrics_file):
|
||||
if self._file_exists(processed_lyrics_file):
|
||||
return processed_lyrics_file
|
||||
|
||||
self.logger.info(f"Processing lyrics from {lyrics_file} and writing to {processed_lyrics_file}")
|
||||
|
||||
if not self.dry_run:
|
||||
@@ -580,6 +593,9 @@ class KaraokePrep:
|
||||
extra_text_padding=600,
|
||||
fixed_gap=150,
|
||||
):
|
||||
if self._file_exists(output_video_filepath):
|
||||
return output_video_filepath
|
||||
|
||||
resolution = (3840, 2160) # 4K resolution
|
||||
self.logger.info(f"Creating video with format: {format}")
|
||||
self.logger.info(f"extra_text: {extra_text}, artist_text: {artist_text}, title_text: {title_text}")
|
||||
@@ -667,11 +683,40 @@ class KaraokePrep:
|
||||
self.logger.debug(f"Running command: {ffmpeg_command}")
|
||||
os.system(ffmpeg_command)
|
||||
|
||||
return output_video_filepath
|
||||
|
||||
def create_title_video(self, artist, title, format, output_image_filepath_noext, output_video_filepath):
|
||||
if self._file_exists(output_video_filepath):
|
||||
return output_video_filepath
|
||||
|
||||
title_text = title.upper()
|
||||
artist_text = artist.upper()
|
||||
return self.create_video(
|
||||
extra_text=None,
|
||||
title_text=title_text,
|
||||
artist_text=artist_text,
|
||||
format=format,
|
||||
output_image_filepath_noext=output_image_filepath_noext,
|
||||
output_video_filepath=output_video_filepath,
|
||||
existing_image=self.existing_title_image,
|
||||
title_color=format["title_color"],
|
||||
artist_color=format["artist_color"],
|
||||
duration=self.title_video_duration,
|
||||
initial_font_size=self.title_initial_font_size,
|
||||
top_padding=self.title_top_padding,
|
||||
title_padding=self.title_title_padding,
|
||||
artist_padding=self.title_artist_padding,
|
||||
fixed_gap=self.title_fixed_gap,
|
||||
)
|
||||
|
||||
def create_end_video(self, artist, title, format, output_image_filepath_noext, output_video_filepath):
|
||||
if self._file_exists(output_video_filepath):
|
||||
return output_video_filepath
|
||||
|
||||
extra_text = self.end_extra_text
|
||||
title_text = title.upper()
|
||||
artist_text = artist.upper()
|
||||
self.create_video(
|
||||
return self.create_video(
|
||||
extra_text=extra_text,
|
||||
title_text=title_text,
|
||||
artist_text=artist_text,
|
||||
@@ -691,32 +736,204 @@ class KaraokePrep:
|
||||
fixed_gap=self.end_fixed_gap,
|
||||
)
|
||||
|
||||
def create_title_video(self, artist, title, format, output_image_filepath_noext, output_video_filepath):
|
||||
title_text = title.upper()
|
||||
artist_text = artist.upper()
|
||||
self.create_video(
|
||||
extra_text=None,
|
||||
title_text=title_text,
|
||||
artist_text=artist_text,
|
||||
format=format,
|
||||
output_image_filepath_noext=output_image_filepath_noext,
|
||||
output_video_filepath=output_video_filepath,
|
||||
existing_image=self.existing_title_image,
|
||||
title_color=format["title_color"],
|
||||
artist_color=format["artist_color"],
|
||||
duration=self.title_video_duration,
|
||||
initial_font_size=self.title_initial_font_size,
|
||||
top_padding=self.title_top_padding,
|
||||
title_padding=self.title_title_padding,
|
||||
artist_padding=self.title_artist_padding,
|
||||
fixed_gap=self.title_fixed_gap,
|
||||
)
|
||||
|
||||
def hex_to_rgb(self, hex_color):
|
||||
"""Convert hex color to RGB tuple."""
|
||||
hex_color = hex_color.lstrip("#")
|
||||
return tuple(int(hex_color[i : i + 2], 16) for i in (0, 2, 4))
|
||||
|
||||
def process_audio_separation(self, audio_file, artist_title, track_output_dir):
|
||||
from audio_separator.separator import Separator
|
||||
|
||||
self.logger.info(f"Starting audio separation process for {artist_title}")
|
||||
|
||||
separator = Separator(
|
||||
log_level=self.log_level,
|
||||
log_formatter=self.log_formatter,
|
||||
model_file_dir=self.model_file_dir,
|
||||
output_format=self.lossless_output_format,
|
||||
)
|
||||
|
||||
stems_dir = self._create_stems_directory(track_output_dir)
|
||||
result = {"clean_instrumental": {}, "other_stems": {}, "backing_vocals": {}, "combined_instrumentals": {}}
|
||||
|
||||
result["clean_instrumental"] = self._separate_clean_instrumental(separator, audio_file, artist_title, track_output_dir, stems_dir)
|
||||
result["other_stems"] = self._separate_other_stems(separator, audio_file, artist_title, stems_dir)
|
||||
result["backing_vocals"] = self._separate_backing_vocals(separator, result["clean_instrumental"]["vocals"], artist_title, stems_dir)
|
||||
result["combined_instrumentals"] = self._generate_combined_instrumentals(
|
||||
result["clean_instrumental"]["instrumental"], result["backing_vocals"], artist_title, track_output_dir
|
||||
)
|
||||
self._normalize_audio_files(result, artist_title, track_output_dir)
|
||||
|
||||
self.logger.info("Audio separation, combination, and normalization process completed")
|
||||
return result
|
||||
|
||||
def _create_stems_directory(self, track_output_dir):
|
||||
stems_dir = os.path.join(track_output_dir, "stems")
|
||||
os.makedirs(stems_dir, exist_ok=True)
|
||||
self.logger.info(f"Created stems directory: {stems_dir}")
|
||||
return stems_dir
|
||||
|
||||
def _separate_clean_instrumental(self, separator, audio_file, artist_title, track_output_dir, stems_dir):
|
||||
self.logger.info(f"Separating using clean instrumental model: {self.clean_instrumental_model}")
|
||||
instrumental_path = os.path.join(
|
||||
track_output_dir, f"{artist_title} (Instrumental {self.clean_instrumental_model}).{self.lossless_output_format}"
|
||||
)
|
||||
vocals_path = os.path.join(stems_dir, f"{artist_title} (Vocals {self.clean_instrumental_model}).{self.lossless_output_format}")
|
||||
|
||||
result = {}
|
||||
if not self._file_exists(instrumental_path) or not self._file_exists(vocals_path):
|
||||
separator.load_model(model_filename=self.clean_instrumental_model)
|
||||
clean_output_files = separator.separate(audio_file)
|
||||
|
||||
for file in clean_output_files:
|
||||
if "(Vocals)" in file and not self._file_exists(vocals_path):
|
||||
os.rename(file, vocals_path)
|
||||
result["vocals"] = vocals_path
|
||||
elif "(Instrumental)" in file and not self._file_exists(instrumental_path):
|
||||
os.rename(file, instrumental_path)
|
||||
result["instrumental"] = instrumental_path
|
||||
else:
|
||||
result["vocals"] = vocals_path
|
||||
result["instrumental"] = instrumental_path
|
||||
|
||||
return result
|
||||
|
||||
def _separate_other_stems(self, separator, audio_file, artist_title, stems_dir):
|
||||
self.logger.info(f"Separating using other stems models: {self.other_stems_models}")
|
||||
result = {}
|
||||
for model in self.other_stems_models:
|
||||
self.logger.info(f"Processing with model: {model}")
|
||||
result[model] = {}
|
||||
|
||||
# Check if any stem files for this model already exist
|
||||
existing_stems = glob.glob(os.path.join(stems_dir, f"{artist_title} (*{model}).{self.lossless_output_format}"))
|
||||
|
||||
if existing_stems:
|
||||
self.logger.info(f"Found existing stem files for model {model}, skipping separation")
|
||||
for stem_file in existing_stems:
|
||||
stem_name = os.path.basename(stem_file).split("(")[1].split(")")[0].strip()
|
||||
result[model][stem_name] = stem_file
|
||||
else:
|
||||
separator.load_model(model_filename=model)
|
||||
other_stems_output = separator.separate(audio_file)
|
||||
|
||||
for file in other_stems_output:
|
||||
file_name = os.path.basename(file)
|
||||
stem_name = file_name[file_name.rfind("_(") + 2 : file_name.rfind(")_")]
|
||||
new_filename = f"{artist_title} ({stem_name} {model}).{self.lossless_output_format}"
|
||||
other_stem_path = os.path.join(stems_dir, new_filename)
|
||||
if not self._file_exists(other_stem_path):
|
||||
os.rename(file, other_stem_path)
|
||||
result[model][stem_name] = other_stem_path
|
||||
|
||||
return result
|
||||
|
||||
def _separate_backing_vocals(self, separator, vocals_path, artist_title, stems_dir):
|
||||
self.logger.info(f"Separating clean vocals using backing vocals models: {self.backing_vocals_models}")
|
||||
result = {}
|
||||
for model in self.backing_vocals_models:
|
||||
self.logger.info(f"Processing with model: {model}")
|
||||
result[model] = {}
|
||||
lead_vocals_path = os.path.join(stems_dir, f"{artist_title} (Lead Vocals {model}).{self.lossless_output_format}")
|
||||
backing_vocals_path = os.path.join(stems_dir, f"{artist_title} (Backing Vocals {model}).{self.lossless_output_format}")
|
||||
|
||||
if not self._file_exists(lead_vocals_path) or not self._file_exists(backing_vocals_path):
|
||||
separator.load_model(model_filename=model)
|
||||
backing_vocals_output = separator.separate(vocals_path)
|
||||
|
||||
for file in backing_vocals_output:
|
||||
if "(Vocals)" in file and not self._file_exists(lead_vocals_path):
|
||||
os.rename(file, lead_vocals_path)
|
||||
result[model]["lead_vocals"] = lead_vocals_path
|
||||
elif "(Instrumental)" in file and not self._file_exists(backing_vocals_path):
|
||||
os.rename(file, backing_vocals_path)
|
||||
result[model]["backing_vocals"] = backing_vocals_path
|
||||
else:
|
||||
result[model]["lead_vocals"] = lead_vocals_path
|
||||
result[model]["backing_vocals"] = backing_vocals_path
|
||||
return result
|
||||
|
||||
def _generate_combined_instrumentals(self, instrumental_path, backing_vocals_result, artist_title, track_output_dir):
|
||||
self.logger.info("Generating combined instrumental tracks with backing vocals")
|
||||
result = {}
|
||||
for model, paths in backing_vocals_result.items():
|
||||
backing_vocals_path = paths["backing_vocals"]
|
||||
combined_path = os.path.join(
|
||||
track_output_dir, f"{artist_title} (Instrumental with Backing {model}).{self.lossless_output_format}"
|
||||
)
|
||||
|
||||
if not self._file_exists(combined_path):
|
||||
ffmpeg_command = (
|
||||
f'{self.ffmpeg_base_command} -i "{instrumental_path}" -i "{backing_vocals_path}" '
|
||||
f'-filter_complex "[0:a][1:a]amix=inputs=2:duration=longest:weights=1 1" '
|
||||
f'-c:a {self.lossless_output_format.lower()} "{combined_path}"'
|
||||
)
|
||||
|
||||
self.logger.debug(f"Running command: {ffmpeg_command}")
|
||||
os.system(ffmpeg_command)
|
||||
|
||||
result[model] = combined_path
|
||||
return result
|
||||
|
||||
def _normalize_audio_files(self, separation_result, artist_title, track_output_dir):
|
||||
self.logger.info("Normalizing clean instrumental and combined instrumentals")
|
||||
|
||||
files_to_normalize = [
|
||||
("clean_instrumental", separation_result["clean_instrumental"]["instrumental"]),
|
||||
] + [("combined_instrumentals", path) for path in separation_result["combined_instrumentals"].values()]
|
||||
|
||||
for key, file_path in files_to_normalize:
|
||||
if self._file_exists(file_path):
|
||||
try:
|
||||
self._normalize_audio(file_path, file_path) # Normalize in-place
|
||||
|
||||
# Verify the normalized file
|
||||
if os.path.getsize(file_path) > 0:
|
||||
self.logger.info(f"Successfully normalized: {file_path}")
|
||||
else:
|
||||
raise Exception("Normalized file is empty")
|
||||
|
||||
except Exception as e:
|
||||
self.logger.error(f"Error during normalization of {file_path}: {e}")
|
||||
self.logger.warning(f"Normalization failed for {file_path}. Original file remains unchanged.")
|
||||
else:
|
||||
self.logger.warning(f"File not found for normalization: {file_path}")
|
||||
|
||||
self.logger.info("Audio normalization process completed")
|
||||
|
||||
def _normalize_audio(self, input_path, output_path, target_level=0.0):
|
||||
self.logger.info(f"Normalizing audio file: {input_path}")
|
||||
|
||||
# Load audio file
|
||||
audio = AudioSegment.from_file(input_path, format=self.lossless_output_format.lower())
|
||||
|
||||
# Calculate the peak amplitude
|
||||
peak_amplitude = float(audio.max_dBFS)
|
||||
|
||||
# Calculate the necessary gain
|
||||
gain_db = target_level - peak_amplitude
|
||||
|
||||
# Apply gain
|
||||
normalized_audio = audio.apply_gain(gain_db)
|
||||
|
||||
# Ensure the audio is not completely silent
|
||||
if normalized_audio.rms == 0:
|
||||
self.logger.warning(f"Normalized audio is silent for {input_path}. Using original audio.")
|
||||
normalized_audio = audio
|
||||
|
||||
# Export normalized audio, overwriting the original file
|
||||
normalized_audio.export(output_path, format=self.lossless_output_format.lower())
|
||||
|
||||
self.logger.info(f"Normalized audio saved, replacing: {output_path}")
|
||||
self.logger.debug(f"Original peak: {peak_amplitude} dB, Applied gain: {gain_db} dB")
|
||||
|
||||
def _file_exists(self, file_path):
|
||||
"""Check if a file exists and log the result."""
|
||||
exists = os.path.isfile(file_path)
|
||||
if exists:
|
||||
self.logger.info(f"File already exists, skipping creation: {file_path}")
|
||||
return exists
|
||||
|
||||
def prep_single_track(self):
|
||||
self.logger.info(f"Preparing single track: {self.artist} - {self.title}")
|
||||
|
||||
@@ -825,9 +1042,7 @@ class KaraokePrep:
|
||||
processed_track["title_image_jpg"] = f"{output_image_filepath_noext}.jpg"
|
||||
processed_track["title_video"] = os.path.join(track_output_dir, f"{artist_title} (Title).mov")
|
||||
|
||||
if os.path.exists(processed_track["title_video"]):
|
||||
self.logger.debug(f"Title video already exists, skipping render: {processed_track['title_video']}")
|
||||
else:
|
||||
if not self._file_exists(processed_track["title_video"]):
|
||||
self.logger.info(f"Creating title video...")
|
||||
self.create_title_video(self.artist, self.title, self.title_format, output_image_filepath_noext, processed_track["title_video"])
|
||||
|
||||
@@ -836,9 +1051,7 @@ class KaraokePrep:
|
||||
processed_track["end_image_jpg"] = f"{output_image_filepath_noext}.jpg"
|
||||
processed_track["end_video"] = os.path.join(track_output_dir, f"{artist_title} (End).mov")
|
||||
|
||||
if os.path.exists(processed_track["end_video"]):
|
||||
self.logger.debug(f"End screen video already exists, skipping render: {processed_track['end_video']}")
|
||||
else:
|
||||
if not self._file_exists(processed_track["end_video"]):
|
||||
self.logger.info(f"Creating end screen video...")
|
||||
self.create_end_video(self.artist, self.title, self.end_format, output_image_filepath_noext, processed_track["end_video"])
|
||||
|
||||
@@ -847,65 +1060,25 @@ class KaraokePrep:
|
||||
existing_instrumental_extension = os.path.splitext(self.existing_instrumental)[1]
|
||||
|
||||
instrumental_path = os.path.join(track_output_dir, f"{artist_title} (Instrumental Custom){existing_instrumental_extension}")
|
||||
instrumental_path_lossy = os.path.join(track_output_dir, f"{artist_title} (Instrumental Custom).{self.lossy_output_format}")
|
||||
|
||||
shutil.copy2(self.existing_instrumental, instrumental_path)
|
||||
self.convert_to_lossy(instrumental_path, instrumental_path_lossy)
|
||||
if not self._file_exists(instrumental_path):
|
||||
shutil.copy2(self.existing_instrumental, instrumental_path)
|
||||
|
||||
processed_track["separated_audio"]["Custom"] = {
|
||||
"instrumental": instrumental_path,
|
||||
"instrumental_lossy": instrumental_path_lossy,
|
||||
"vocals": None,
|
||||
"vocals_lossy": None,
|
||||
}
|
||||
else:
|
||||
self.logger.info(f"Separating audio for track: {self.title} by {self.artist} using models: {', '.join(self.model_names)}")
|
||||
for model_name in self.model_names:
|
||||
processed_track[f"separated_audio"][model_name] = {}
|
||||
instrumental_path = os.path.join(
|
||||
track_output_dir, f"{artist_title} (Instrumental {model_name}).{self.lossless_output_format}"
|
||||
)
|
||||
vocals_path = os.path.join(track_output_dir, f"{artist_title} (Vocals {model_name}).{self.lossless_output_format}")
|
||||
instrumental_path_lossy = os.path.join(
|
||||
track_output_dir, f"{artist_title} (Instrumental {model_name}).{self.lossy_output_format}"
|
||||
)
|
||||
vocals_path_lossy = os.path.join(track_output_dir, f"{artist_title} (Vocals {model_name}).{self.lossy_output_format}")
|
||||
|
||||
if not (os.path.isfile(instrumental_path) and os.path.isfile(vocals_path)):
|
||||
self.separate_audio(
|
||||
audio_file=processed_track["input_audio_wav"],
|
||||
model_name=model_name,
|
||||
track_output_dir=track_output_dir,
|
||||
artist_title=artist_title,
|
||||
instrumental_path=instrumental_path,
|
||||
vocals_path=vocals_path,
|
||||
)
|
||||
if os.path.isfile(instrumental_path):
|
||||
self.convert_to_lossy(instrumental_path, instrumental_path_lossy)
|
||||
if os.path.isfile(vocals_path):
|
||||
self.convert_to_lossy(vocals_path, vocals_path_lossy)
|
||||
|
||||
processed_track[f"separated_audio"][model_name]["instrumental"] = instrumental_path
|
||||
processed_track[f"separated_audio"][model_name]["vocals"] = vocals_path
|
||||
processed_track[f"separated_audio"][model_name]["instrumental_lossy"] = instrumental_path_lossy
|
||||
processed_track[f"separated_audio"][model_name]["vocals_lossy"] = vocals_path_lossy
|
||||
self.logger.info(f"Separating audio for track: {self.title} by {self.artist}")
|
||||
separation_results = self.process_audio_separation(
|
||||
audio_file=processed_track["input_audio_wav"], artist_title=artist_title, track_output_dir=track_output_dir
|
||||
)
|
||||
processed_track["separated_audio"] = separation_results
|
||||
|
||||
self.logger.info("Script finished, audio downloaded, lyrics fetched and audio separated!")
|
||||
|
||||
return processed_track
|
||||
|
||||
def convert_to_lossy(self, input_filename, output_filename):
|
||||
if input_filename is None or not os.path.isfile(input_filename):
|
||||
raise Exception(f"Error: Invalid input file provided for convert_to_lossy: {input_filename}")
|
||||
|
||||
self.logger.info(f"Converting {self.lossless_output_format} audio to lossy {self.lossy_output_format} format")
|
||||
|
||||
ffmpeg_extras = "-q:a 0" if self.lossy_output_format == "mp3" else ""
|
||||
|
||||
ffmpeg_command = f'{self.ffmpeg_base_command} -i "{input_filename}" {ffmpeg_extras} "{output_filename}"'
|
||||
self.logger.debug(f"Running command: {ffmpeg_command}")
|
||||
os.system(ffmpeg_command)
|
||||
|
||||
def process_playlist(self):
|
||||
if self.artist is None or self.title is None:
|
||||
raise Exception("Error: Artist and Title are required for processing a local file.")
|
||||
|
||||
@@ -107,6 +107,18 @@ def main():
|
||||
help="Optional: Discord webhook URL to send notifications to. Example: --discord_webhook_url='https://discord.com/api/webhooks/1234567890/TOKEN/messages",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--email_template_file",
|
||||
default=None,
|
||||
help="Optional: File path to email template for drafting completion email. Example: --email_template_file='/path/to/email_template.txt'",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--test_email_template",
|
||||
action="store_true",
|
||||
help="Optional: Test the email template functionality with fake data. Example: --test_email_template",
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
log_level = getattr(logging, args.log_level.upper())
|
||||
@@ -130,13 +142,18 @@ def main():
|
||||
youtube_description_file=args.youtube_description_file,
|
||||
rclone_destination=args.rclone_destination,
|
||||
discord_webhook_url=args.discord_webhook_url,
|
||||
email_template_file=args.email_template_file,
|
||||
)
|
||||
|
||||
try:
|
||||
track = kfinalise.process()
|
||||
except Exception as e:
|
||||
logger.error(f"An error occurred during finalisation, see stack trace below: {str(e)}")
|
||||
raise e
|
||||
if args.test_email_template:
|
||||
logger.info("Testing email template functionality...")
|
||||
kfinalise.test_email_template()
|
||||
else:
|
||||
try:
|
||||
track = kfinalise.process()
|
||||
except Exception as e:
|
||||
logger.error(f"An error occurred during finalisation, see stack trace below: {str(e)}")
|
||||
raise e
|
||||
|
||||
logger.info(f"Karaoke finalisation processing complete! Output files:")
|
||||
logger.info(f"")
|
||||
|
||||
@@ -56,17 +56,23 @@ def main():
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--model_names",
|
||||
"--clean_instrumental_model",
|
||||
default="model_bs_roformer_ep_317_sdr_12.9755.ckpt",
|
||||
help="Optional: Model for clean instrumental separation (default: %(default)s).",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--backing_vocals_models",
|
||||
nargs="+",
|
||||
default=[
|
||||
"UVR_MDXNET_KARA_2.onnx",
|
||||
"mel_band_roformer_karaoke_aufr33_viperx_sdr_10.1956.ckpt",
|
||||
"2_HP-UVR.pth",
|
||||
"model_bs_roformer_ep_317_sdr_12.9755.yaml",
|
||||
"MDX23C-8KFFT-InstVoc_HQ_2.ckpt",
|
||||
"htdemucs_6s.yaml",
|
||||
],
|
||||
help="Optional: list of model names to be used for separation (default: %(default)s). Example: --model_names UVR_MDXNET_KARA_2.onnx UVR-MDX-NET-Inst_HQ_4.onnx",
|
||||
default=["mel_band_roformer_karaoke_aufr33_viperx_sdr_10.1956.ckpt", "UVR-BVE-4B_SN-44100-1.pth"],
|
||||
help="Optional: List of models for backing vocals separation (default: %(default)s).",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--other_stems_models",
|
||||
nargs="+",
|
||||
default=["htdemucs_6s.yaml"],
|
||||
help="Optional: List of models for other stems separation (default: %(default)s).",
|
||||
)
|
||||
|
||||
default_model_dir_unix = "/tmp/audio-separator-models/"
|
||||
@@ -94,12 +100,6 @@ def main():
|
||||
help="Optional: lossless output format for separated audio (default: FLAC). Example: --lossless_output_format=WAV",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--lossy_output_format",
|
||||
default="MP3",
|
||||
help="Optional: lossy output format for separated audio (default: MP3). Example: --lossy_output_format=OGG",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--use_cuda",
|
||||
action="store_true",
|
||||
@@ -361,7 +361,9 @@ def main():
|
||||
logger.setLevel(log_level)
|
||||
|
||||
if args.existing_instrumental:
|
||||
args.model_names = ["Custom"]
|
||||
args.clean_instrumental_model = None
|
||||
args.backing_vocals_models = []
|
||||
args.other_stems_models = []
|
||||
|
||||
logger.info(f"KaraokePrep beginning with input_media: {input_media} artist: {artist} and title: {title}")
|
||||
|
||||
@@ -373,11 +375,12 @@ def main():
|
||||
dry_run=args.dry_run,
|
||||
log_formatter=log_formatter,
|
||||
log_level=log_level,
|
||||
model_names=args.model_names,
|
||||
clean_instrumental_model=args.clean_instrumental_model,
|
||||
backing_vocals_models=args.backing_vocals_models,
|
||||
other_stems_models=args.other_stems_models,
|
||||
model_file_dir=args.model_file_dir,
|
||||
output_dir=args.output_dir,
|
||||
lossless_output_format=args.lossless_output_format,
|
||||
lossy_output_format=args.lossy_output_format,
|
||||
use_cuda=args.use_cuda,
|
||||
use_coreml=args.use_coreml,
|
||||
normalization_enabled=args.normalize,
|
||||
@@ -429,11 +432,32 @@ def main():
|
||||
logger.info(f" Lyrics: {track['lyrics']}")
|
||||
logger.info(f" Processed Lyrics: {track['processed_lyrics']}")
|
||||
|
||||
for model_name in args.model_names:
|
||||
logger.info(f" Instrumental: {track['separated_audio'][model_name]['instrumental']}")
|
||||
logger.info(f" Instrumental (Lossy): {track['separated_audio'][model_name]['instrumental_lossy']}")
|
||||
logger.info(f" Vocals: {track['separated_audio'][model_name]['vocals']}")
|
||||
logger.info(f" Vocals (Lossy): {track['separated_audio'][model_name]['vocals_lossy']}")
|
||||
logger.info(f" Separated Audio:")
|
||||
|
||||
# Clean Instrumental
|
||||
logger.info(f" Clean Instrumental Model:")
|
||||
for stem_type, file_path in track["separated_audio"]["clean_instrumental"].items():
|
||||
logger.info(f" {stem_type.capitalize()}: {file_path}")
|
||||
|
||||
# Other Stems
|
||||
logger.info(f" Other Stems Models:")
|
||||
for model, stems in track["separated_audio"]["other_stems"].items():
|
||||
logger.info(f" Model: {model}")
|
||||
for stem_type, file_path in stems.items():
|
||||
logger.info(f" {stem_type.capitalize()}: {file_path}")
|
||||
|
||||
# Backing Vocals
|
||||
logger.info(f" Backing Vocals Models:")
|
||||
for model, stems in track["separated_audio"]["backing_vocals"].items():
|
||||
logger.info(f" Model: {model}")
|
||||
for stem_type, file_path in stems.items():
|
||||
logger.info(f" {stem_type.capitalize()}: {file_path}")
|
||||
|
||||
# Combined Instrumentals
|
||||
logger.info(f" Combined Instrumentals:")
|
||||
for model, file_path in track["separated_audio"]["combined_instrumentals"].items():
|
||||
logger.info(f" Model: {model}")
|
||||
logger.info(f" Combined Instrumental: {file_path}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Generated
+101
-105
@@ -2184,50 +2184,46 @@ files = [
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-cublas-cu12"
|
||||
version = "12.4.5.8"
|
||||
version = "12.1.3.1"
|
||||
description = "CUBLAS native runtime libraries"
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0f8aa1706812e00b9f19dfe0cdb3999b092ccb8ca168c0db5b8ea712456fd9b3"},
|
||||
{file = "nvidia_cublas_cu12-12.4.5.8-py3-none-manylinux2014_x86_64.whl", hash = "sha256:2fc8da60df463fdefa81e323eef2e36489e1c94335b5358bcb38360adf75ac9b"},
|
||||
{file = "nvidia_cublas_cu12-12.4.5.8-py3-none-win_amd64.whl", hash = "sha256:5a796786da89203a0657eda402bcdcec6180254a8ac22d72213abc42069522dc"},
|
||||
{file = "nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl", hash = "sha256:ee53ccca76a6fc08fb9701aa95b6ceb242cdaab118c3bb152af4e579af792728"},
|
||||
{file = "nvidia_cublas_cu12-12.1.3.1-py3-none-win_amd64.whl", hash = "sha256:2b964d60e8cf11b5e1073d179d85fa340c120e99b3067558f3cf98dd69d02906"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-cuda-cupti-cu12"
|
||||
version = "12.4.127"
|
||||
version = "12.1.105"
|
||||
description = "CUDA profiling tools runtime libs."
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:79279b35cf6f91da114182a5ce1864997fd52294a87a16179ce275773799458a"},
|
||||
{file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:9dec60f5ac126f7bb551c055072b69d85392b13311fcc1bcda2202d172df30fb"},
|
||||
{file = "nvidia_cuda_cupti_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:5688d203301ab051449a2b1cb6690fbe90d2b372f411521c86018b950f3d7922"},
|
||||
{file = "nvidia_cuda_cupti_cu12-12.1.105-py3-none-manylinux1_x86_64.whl", hash = "sha256:e54fde3983165c624cb79254ae9818a456eb6e87a7fd4d56a2352c24ee542d7e"},
|
||||
{file = "nvidia_cuda_cupti_cu12-12.1.105-py3-none-win_amd64.whl", hash = "sha256:bea8236d13a0ac7190bd2919c3e8e6ce1e402104276e6f9694479e48bb0eb2a4"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-cuda-nvrtc-cu12"
|
||||
version = "12.4.127"
|
||||
version = "12.1.105"
|
||||
description = "NVRTC native runtime libraries"
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:0eedf14185e04b76aa05b1fea04133e59f465b6f960c0cbf4e37c3cb6b0ea198"},
|
||||
{file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a178759ebb095827bd30ef56598ec182b85547f1508941a3d560eb7ea1fbf338"},
|
||||
{file = "nvidia_cuda_nvrtc_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:a961b2f1d5f17b14867c619ceb99ef6fcec12e46612711bcec78eb05068a60ec"},
|
||||
{file = "nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-manylinux1_x86_64.whl", hash = "sha256:339b385f50c309763ca65456ec75e17bbefcbbf2893f462cb8b90584cd27a1c2"},
|
||||
{file = "nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-win_amd64.whl", hash = "sha256:0a98a522d9ff138b96c010a65e145dc1b4850e9ecb75a0172371793752fd46ed"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-cuda-runtime-cu12"
|
||||
version = "12.4.127"
|
||||
version = "12.1.105"
|
||||
description = "CUDA Runtime native Libraries"
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:961fe0e2e716a2a1d967aab7caee97512f71767f852f67432d572e36cb3a11f3"},
|
||||
{file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:64403288fa2136ee8e467cdc9c9427e0434110899d07c779f25b5c068934faa5"},
|
||||
{file = "nvidia_cuda_runtime_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:09c2e35f48359752dfa822c09918211844a3d93c100a715d79b59591130c5e1e"},
|
||||
{file = "nvidia_cuda_runtime_cu12-12.1.105-py3-none-manylinux1_x86_64.whl", hash = "sha256:6e258468ddf5796e25f1dc591a31029fa317d97a0a94ed93468fc86301d61e40"},
|
||||
{file = "nvidia_cuda_runtime_cu12-12.1.105-py3-none-win_amd64.whl", hash = "sha256:dfb46ef84d73fababab44cf03e3b83f80700d27ca300e537f85f636fac474344"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2246,41 +2242,35 @@ nvidia-cublas-cu12 = "*"
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-cufft-cu12"
|
||||
version = "11.2.1.3"
|
||||
version = "11.0.2.54"
|
||||
description = "CUFFT native runtime libraries"
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_aarch64.whl", hash = "sha256:5dad8008fc7f92f5ddfa2101430917ce2ffacd86824914c82e28990ad7f00399"},
|
||||
{file = "nvidia_cufft_cu12-11.2.1.3-py3-none-manylinux2014_x86_64.whl", hash = "sha256:f083fc24912aa410be21fa16d157fed2055dab1cc4b6934a0e03cba69eb242b9"},
|
||||
{file = "nvidia_cufft_cu12-11.2.1.3-py3-none-win_amd64.whl", hash = "sha256:d802f4954291101186078ccbe22fc285a902136f974d369540fd4a5333d1440b"},
|
||||
{file = "nvidia_cufft_cu12-11.0.2.54-py3-none-manylinux1_x86_64.whl", hash = "sha256:794e3948a1aa71fd817c3775866943936774d1c14e7628c74f6f7417224cdf56"},
|
||||
{file = "nvidia_cufft_cu12-11.0.2.54-py3-none-win_amd64.whl", hash = "sha256:d9ac353f78ff89951da4af698f80870b1534ed69993f10a4cf1d96f21357e253"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
nvidia-nvjitlink-cu12 = "*"
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-curand-cu12"
|
||||
version = "10.3.5.147"
|
||||
version = "10.3.2.106"
|
||||
description = "CURAND native runtime libraries"
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_aarch64.whl", hash = "sha256:1f173f09e3e3c76ab084aba0de819c49e56614feae5c12f69883f4ae9bb5fad9"},
|
||||
{file = "nvidia_curand_cu12-10.3.5.147-py3-none-manylinux2014_x86_64.whl", hash = "sha256:a88f583d4e0bb643c49743469964103aa59f7f708d862c3ddb0fc07f851e3b8b"},
|
||||
{file = "nvidia_curand_cu12-10.3.5.147-py3-none-win_amd64.whl", hash = "sha256:f307cc191f96efe9e8f05a87096abc20d08845a841889ef78cb06924437f6771"},
|
||||
{file = "nvidia_curand_cu12-10.3.2.106-py3-none-manylinux1_x86_64.whl", hash = "sha256:9d264c5036dde4e64f1de8c50ae753237c12e0b1348738169cd0f8a536c0e1e0"},
|
||||
{file = "nvidia_curand_cu12-10.3.2.106-py3-none-win_amd64.whl", hash = "sha256:75b6b0c574c0037839121317e17fd01f8a69fd2ef8e25853d826fec30bdba74a"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-cusolver-cu12"
|
||||
version = "11.6.1.9"
|
||||
version = "11.4.5.107"
|
||||
description = "CUDA solver native runtime libraries"
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_aarch64.whl", hash = "sha256:d338f155f174f90724bbde3758b7ac375a70ce8e706d70b018dd3375545fc84e"},
|
||||
{file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-manylinux2014_x86_64.whl", hash = "sha256:19e33fa442bcfd085b3086c4ebf7e8debc07cfe01e11513cc6d332fd918ac260"},
|
||||
{file = "nvidia_cusolver_cu12-11.6.1.9-py3-none-win_amd64.whl", hash = "sha256:e77314c9d7b694fcebc84f58989f3aa4fb4cb442f12ca1a9bde50f5e8f6d1b9c"},
|
||||
{file = "nvidia_cusolver_cu12-11.4.5.107-py3-none-manylinux1_x86_64.whl", hash = "sha256:8a7ec542f0412294b15072fa7dab71d31334014a69f953004ea7a118206fe0dd"},
|
||||
{file = "nvidia_cusolver_cu12-11.4.5.107-py3-none-win_amd64.whl", hash = "sha256:74e0c3a24c78612192a74fcd90dd117f1cf21dea4822e66d89e8ea80e3cd2da5"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
@@ -2290,14 +2280,13 @@ nvidia-nvjitlink-cu12 = "*"
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-cusparse-cu12"
|
||||
version = "12.3.1.170"
|
||||
version = "12.1.0.106"
|
||||
description = "CUSPARSE native runtime libraries"
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_aarch64.whl", hash = "sha256:9d32f62896231ebe0480efd8a7f702e143c98cfaa0e8a76df3386c1ba2b54df3"},
|
||||
{file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-manylinux2014_x86_64.whl", hash = "sha256:ea4f11a2904e2a8dc4b1833cc1b5181cde564edd0d5cd33e3c168eff2d1863f1"},
|
||||
{file = "nvidia_cusparse_cu12-12.3.1.170-py3-none-win_amd64.whl", hash = "sha256:9bc90fb087bc7b4c15641521f31c0371e9a612fc2ba12c338d3ae032e6b6797f"},
|
||||
{file = "nvidia_cusparse_cu12-12.1.0.106-py3-none-manylinux1_x86_64.whl", hash = "sha256:f3b50f42cf363f86ab21f720998517a659a48131e8d538dc02f8768237bd884c"},
|
||||
{file = "nvidia_cusparse_cu12-12.1.0.106-py3-none-win_amd64.whl", hash = "sha256:b798237e81b9719373e8fae8d4f091b70a0cf09d9d85c95a557e11df2d8e9a5a"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
@@ -2305,35 +2294,36 @@ nvidia-nvjitlink-cu12 = "*"
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-nccl-cu12"
|
||||
version = "2.21.5"
|
||||
version = "2.20.5"
|
||||
description = "NVIDIA Collective Communication Library (NCCL) Runtime"
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_nccl_cu12-2.21.5-py3-none-manylinux2014_x86_64.whl", hash = "sha256:8579076d30a8c24988834445f8d633c697d42397e92ffc3f63fa26766d25e0a0"},
|
||||
{file = "nvidia_nccl_cu12-2.20.5-py3-none-manylinux2014_aarch64.whl", hash = "sha256:1fc150d5c3250b170b29410ba682384b14581db722b2531b0d8d33c595f33d01"},
|
||||
{file = "nvidia_nccl_cu12-2.20.5-py3-none-manylinux2014_x86_64.whl", hash = "sha256:057f6bf9685f75215d0c53bf3ac4a10b3e6578351de307abad9e18a99182af56"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-nvjitlink-cu12"
|
||||
version = "12.4.127"
|
||||
version = "12.6.85"
|
||||
description = "Nvidia JIT LTO Library"
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_nvjitlink_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:06b3b9b25bf3f8af351d664978ca26a16d2c5127dbd53c0497e28d1fb9611d57"},
|
||||
{file = "nvidia_nvjitlink_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:fd9020c501d27d135f983c6d3e244b197a7ccad769e34df53a42e276b0e25fa1"},
|
||||
{file = "nvidia_nvjitlink_cu12-12.6.85-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl", hash = "sha256:eedc36df9e88b682efe4309aa16b5b4e78c2407eac59e8c10a6a47535164369a"},
|
||||
{file = "nvidia_nvjitlink_cu12-12.6.85-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cf4eaa7d4b6b543ffd69d6abfb11efdeb2db48270d94dfd3a452c24150829e41"},
|
||||
{file = "nvidia_nvjitlink_cu12-12.6.85-py3-none-win_amd64.whl", hash = "sha256:e61120e52ed675747825cdd16febc6a0730537451d867ee58bee3853b1b13d1c"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nvidia-nvtx-cu12"
|
||||
version = "12.4.127"
|
||||
version = "12.1.105"
|
||||
description = "NVIDIA Tools Extension"
|
||||
optional = false
|
||||
python-versions = ">=3"
|
||||
files = [
|
||||
{file = "nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_aarch64.whl", hash = "sha256:7959ad635db13edf4fc65c06a6e9f9e55fc2f92596db928d169c0bb031e88ef3"},
|
||||
{file = "nvidia_nvtx_cu12-12.4.127-py3-none-manylinux2014_x86_64.whl", hash = "sha256:781e950d9b9f60d8241ccea575b32f5105a5baf4c2351cab5256a24869f12a1a"},
|
||||
{file = "nvidia_nvtx_cu12-12.4.127-py3-none-win_amd64.whl", hash = "sha256:641dccaaa1139f3ffb0d3164b4b84f9d253397e38246a4f2f36728b48566d485"},
|
||||
{file = "nvidia_nvtx_cu12-12.1.105-py3-none-manylinux1_x86_64.whl", hash = "sha256:dc21cf308ca5691e7c04d962e213f8a4aa9bbfa23d95412f452254c2caeb09e5"},
|
||||
{file = "nvidia_nvtx_cu12-12.1.105-py3-none-win_amd64.whl", hash = "sha256:65f4d98982b31b60026e0e6de73fbdfc09d08a96f4656dd3665ca616a11e1e82"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -3917,13 +3907,13 @@ files = [
|
||||
|
||||
[[package]]
|
||||
name = "sympy"
|
||||
version = "1.13.1"
|
||||
version = "1.13.3"
|
||||
description = "Computer algebra system (CAS) in Python"
|
||||
optional = false
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "sympy-1.13.1-py3-none-any.whl", hash = "sha256:db36cdc64bf61b9b24578b6f7bab1ecdd2452cf008f34faa33776680c26d66f8"},
|
||||
{file = "sympy-1.13.1.tar.gz", hash = "sha256:9cebf7e04ff162015ce31c9c6c9144daa34a93bd082f54fd8f12deca4f47515f"},
|
||||
{file = "sympy-1.13.3-py3-none-any.whl", hash = "sha256:54612cf55a62755ee71824ce692986f23c88ffa77207b30c1368eda4a7060f73"},
|
||||
{file = "sympy-1.13.3.tar.gz", hash = "sha256:b27fd2c6530e0ab39e275fc9b683895367e51d5da91baa8d3d64db2565fec4d9"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
@@ -4255,28 +4245,31 @@ files = [
|
||||
|
||||
[[package]]
|
||||
name = "torch"
|
||||
version = "2.5.1"
|
||||
version = "2.4.1"
|
||||
description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration"
|
||||
optional = false
|
||||
python-versions = ">=3.8.0"
|
||||
files = [
|
||||
{file = "torch-2.5.1-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:71328e1bbe39d213b8721678f9dcac30dfc452a46d586f1d514a6aa0a99d4744"},
|
||||
{file = "torch-2.5.1-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:34bfa1a852e5714cbfa17f27c49d8ce35e1b7af5608c4bc6e81392c352dbc601"},
|
||||
{file = "torch-2.5.1-cp310-cp310-win_amd64.whl", hash = "sha256:32a037bd98a241df6c93e4c789b683335da76a2ac142c0973675b715102dc5fa"},
|
||||
{file = "torch-2.5.1-cp310-none-macosx_11_0_arm64.whl", hash = "sha256:23d062bf70776a3d04dbe74db950db2a5245e1ba4f27208a87f0d743b0d06e86"},
|
||||
{file = "torch-2.5.1-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:de5b7d6740c4b636ef4db92be922f0edc425b65ed78c5076c43c42d362a45457"},
|
||||
{file = "torch-2.5.1-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:340ce0432cad0d37f5a31be666896e16788f1adf8ad7be481196b503dad675b9"},
|
||||
{file = "torch-2.5.1-cp311-cp311-win_amd64.whl", hash = "sha256:603c52d2fe06433c18b747d25f5c333f9c1d58615620578c326d66f258686f9a"},
|
||||
{file = "torch-2.5.1-cp311-none-macosx_11_0_arm64.whl", hash = "sha256:31f8c39660962f9ae4eeec995e3049b5492eb7360dd4f07377658ef4d728fa4c"},
|
||||
{file = "torch-2.5.1-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:ed231a4b3a5952177fafb661213d690a72caaad97d5824dd4fc17ab9e15cec03"},
|
||||
{file = "torch-2.5.1-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:3f4b7f10a247e0dcd7ea97dc2d3bfbfc90302ed36d7f3952b0008d0df264e697"},
|
||||
{file = "torch-2.5.1-cp312-cp312-win_amd64.whl", hash = "sha256:73e58e78f7d220917c5dbfad1a40e09df9929d3b95d25e57d9f8558f84c9a11c"},
|
||||
{file = "torch-2.5.1-cp312-none-macosx_11_0_arm64.whl", hash = "sha256:8c712df61101964eb11910a846514011f0b6f5920c55dbf567bff8a34163d5b1"},
|
||||
{file = "torch-2.5.1-cp313-cp313-manylinux1_x86_64.whl", hash = "sha256:9b61edf3b4f6e3b0e0adda8b3960266b9009d02b37555971f4d1c8f7a05afed7"},
|
||||
{file = "torch-2.5.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:1f3b7fb3cf7ab97fae52161423f81be8c6b8afac8d9760823fd623994581e1a3"},
|
||||
{file = "torch-2.5.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7974e3dce28b5a21fb554b73e1bc9072c25dde873fa00d54280861e7a009d7dc"},
|
||||
{file = "torch-2.5.1-cp39-cp39-win_amd64.whl", hash = "sha256:46c817d3ea33696ad3b9df5e774dba2257e9a4cd3c4a3afbf92f6bb13ac5ce2d"},
|
||||
{file = "torch-2.5.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:8046768b7f6d35b85d101b4b38cba8aa2f3cd51952bc4c06a49580f2ce682291"},
|
||||
{file = "torch-2.4.1-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:362f82e23a4cd46341daabb76fba08f04cd646df9bfaf5da50af97cb60ca4971"},
|
||||
{file = "torch-2.4.1-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:e8ac1985c3ff0f60d85b991954cfc2cc25f79c84545aead422763148ed2759e3"},
|
||||
{file = "torch-2.4.1-cp310-cp310-win_amd64.whl", hash = "sha256:91e326e2ccfb1496e3bee58f70ef605aeb27bd26be07ba64f37dcaac3d070ada"},
|
||||
{file = "torch-2.4.1-cp310-none-macosx_11_0_arm64.whl", hash = "sha256:d36a8ef100f5bff3e9c3cea934b9e0d7ea277cb8210c7152d34a9a6c5830eadd"},
|
||||
{file = "torch-2.4.1-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:0b5f88afdfa05a335d80351e3cea57d38e578c8689f751d35e0ff36bce872113"},
|
||||
{file = "torch-2.4.1-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:ef503165f2341942bfdf2bd520152f19540d0c0e34961232f134dc59ad435be8"},
|
||||
{file = "torch-2.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:092e7c2280c860eff762ac08c4bdcd53d701677851670695e0c22d6d345b269c"},
|
||||
{file = "torch-2.4.1-cp311-none-macosx_11_0_arm64.whl", hash = "sha256:ddddbd8b066e743934a4200b3d54267a46db02106876d21cf31f7da7a96f98ea"},
|
||||
{file = "torch-2.4.1-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:fdc4fe11db3eb93c1115d3e973a27ac7c1a8318af8934ffa36b0370efe28e042"},
|
||||
{file = "torch-2.4.1-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:18835374f599207a9e82c262153c20ddf42ea49bc76b6eadad8e5f49729f6e4d"},
|
||||
{file = "torch-2.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:ebea70ff30544fc021d441ce6b219a88b67524f01170b1c538d7d3ebb5e7f56c"},
|
||||
{file = "torch-2.4.1-cp312-none-macosx_11_0_arm64.whl", hash = "sha256:72b484d5b6cec1a735bf3fa5a1c4883d01748698c5e9cfdbeb4ffab7c7987e0d"},
|
||||
{file = "torch-2.4.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:c99e1db4bf0c5347107845d715b4aa1097e601bdc36343d758963055e9599d93"},
|
||||
{file = "torch-2.4.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:b57f07e92858db78c5b72857b4f0b33a65b00dc5d68e7948a8494b0314efb880"},
|
||||
{file = "torch-2.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:f18197f3f7c15cde2115892b64f17c80dbf01ed72b008020e7da339902742cf6"},
|
||||
{file = "torch-2.4.1-cp38-none-macosx_11_0_arm64.whl", hash = "sha256:5fc1d4d7ed265ef853579caf272686d1ed87cebdcd04f2a498f800ffc53dab71"},
|
||||
{file = "torch-2.4.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:40f6d3fe3bae74efcf08cb7f8295eaddd8a838ce89e9d26929d4edd6d5e4329d"},
|
||||
{file = "torch-2.4.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:c9299c16c9743001ecef515536ac45900247f4338ecdf70746f2461f9e4831db"},
|
||||
{file = "torch-2.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:6bce130f2cd2d52ba4e2c6ada461808de7e5eccbac692525337cfb4c19421846"},
|
||||
{file = "torch-2.4.1-cp39-none-macosx_11_0_arm64.whl", hash = "sha256:a38de2803ee6050309aac032676536c3d3b6a9804248537e38e098d0e14817ec"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
@@ -4284,56 +4277,59 @@ filelock = "*"
|
||||
fsspec = "*"
|
||||
jinja2 = "*"
|
||||
networkx = "*"
|
||||
nvidia-cublas-cu12 = {version = "12.4.5.8", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cuda-cupti-cu12 = {version = "12.4.127", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cuda-nvrtc-cu12 = {version = "12.4.127", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cuda-runtime-cu12 = {version = "12.4.127", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cublas-cu12 = {version = "12.1.3.1", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cuda-cupti-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cuda-nvrtc-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cuda-runtime-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cudnn-cu12 = {version = "9.1.0.70", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cufft-cu12 = {version = "11.2.1.3", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-curand-cu12 = {version = "10.3.5.147", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cusolver-cu12 = {version = "11.6.1.9", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cusparse-cu12 = {version = "12.3.1.170", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-nccl-cu12 = {version = "2.21.5", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-nvjitlink-cu12 = {version = "12.4.127", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-nvtx-cu12 = {version = "12.4.127", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
setuptools = {version = "*", markers = "python_version >= \"3.12\""}
|
||||
sympy = {version = "1.13.1", markers = "python_version >= \"3.9\""}
|
||||
triton = {version = "3.1.0", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and python_version < \"3.13\""}
|
||||
nvidia-cufft-cu12 = {version = "11.0.2.54", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-curand-cu12 = {version = "10.3.2.106", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cusolver-cu12 = {version = "11.4.5.107", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-cusparse-cu12 = {version = "12.1.0.106", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-nccl-cu12 = {version = "2.20.5", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
nvidia-nvtx-cu12 = {version = "12.1.105", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""}
|
||||
setuptools = "*"
|
||||
sympy = "*"
|
||||
triton = {version = "3.0.0", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\" and python_version < \"3.13\""}
|
||||
typing-extensions = ">=4.8.0"
|
||||
|
||||
[package.extras]
|
||||
opt-einsum = ["opt-einsum (>=3.3)"]
|
||||
optree = ["optree (>=0.12.0)"]
|
||||
optree = ["optree (>=0.11.0)"]
|
||||
|
||||
[[package]]
|
||||
name = "torchvision"
|
||||
version = "0.20.1"
|
||||
version = "0.19.1"
|
||||
description = "image and video datasets and models for torch deep learning"
|
||||
optional = false
|
||||
python-versions = ">=3.8"
|
||||
files = [
|
||||
{file = "torchvision-0.20.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4878fefb96ef293d06c27210918adc83c399d9faaf34cda5a63e129f772328f1"},
|
||||
{file = "torchvision-0.20.1-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:8ffbdf8bf5b30eade22d459f5a313329eeadb20dc75efa142987b53c007098c3"},
|
||||
{file = "torchvision-0.20.1-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:75f8a4d51a593c4bab6c9bf7d75bdd88691b00a53b07656678bc55a3a753dd73"},
|
||||
{file = "torchvision-0.20.1-cp310-cp310-win_amd64.whl", hash = "sha256:22c2fa44e20eb404b85e42b22b453863a14b0927d25e550fd4f84eea97fa5b39"},
|
||||
{file = "torchvision-0.20.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:344b339e15e6bbb59ee0700772616d0afefd209920c762b1604368d8c3458322"},
|
||||
{file = "torchvision-0.20.1-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:86f6523dee420000fe14c3527f6c8e0175139fda7d995b187f54a0b0ebec7eb6"},
|
||||
{file = "torchvision-0.20.1-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:a40d766345927639da322c693934e5f91b1ba2218846c7104b868dea2314ce8e"},
|
||||
{file = "torchvision-0.20.1-cp311-cp311-win_amd64.whl", hash = "sha256:5b501d5c04b034d2ecda96a31ed050e383cf8201352e4c9276ca249cbecfded0"},
|
||||
{file = "torchvision-0.20.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1a31256ff945d64f006bb306813a7c95a531fe16bfb2535c837dd4c104533d7a"},
|
||||
{file = "torchvision-0.20.1-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:17cd78adddf81dac57d7dccc9277a4d686425b1c55715f308769770cb26cad5c"},
|
||||
{file = "torchvision-0.20.1-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:9f853ba4497ac4691815ad41b523ee23cf5ba4f87b1ce869d704052e233ca8b7"},
|
||||
{file = "torchvision-0.20.1-cp312-cp312-win_amd64.whl", hash = "sha256:4a330422c36dbfc946d3a6c1caec3489db07ecdf3675d83369adb2e5a0ca17c4"},
|
||||
{file = "torchvision-0.20.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:2cd58406978b813188cf4e9135b218775b57e0bb86d4a88f0339874b8a224819"},
|
||||
{file = "torchvision-0.20.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:408766b2f0ada9e1bc880d12346cec9638535af5df6459ba9ac4ce5c46402f91"},
|
||||
{file = "torchvision-0.20.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:abcb8005de8dc393dbd1310ecb669dc68ab664b9107af6d698a6341d1d3f2c3c"},
|
||||
{file = "torchvision-0.20.1-cp39-cp39-win_amd64.whl", hash = "sha256:ea9678163bbf19568f4f959d927f3751eeb833cc8eac949de507edde38c1fc9f"},
|
||||
{file = "torchvision-0.19.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:54e8513099e6f586356c70f809d34f391af71ad182fe071cc328a28af2c40608"},
|
||||
{file = "torchvision-0.19.1-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:20a1f5e02bfdad7714e55fa3fa698347c11d829fa65e11e5a84df07d93350eed"},
|
||||
{file = "torchvision-0.19.1-cp310-cp310-manylinux2014_aarch64.whl", hash = "sha256:7b063116164be52fc6deb4762de7f8c90bfa3a65f8d5caf17f8e2d5aadc75a04"},
|
||||
{file = "torchvision-0.19.1-cp310-cp310-win_amd64.whl", hash = "sha256:f40b6acabfa886da1bc3768f47679c61feee6bde90deb979d9f300df8c8a0145"},
|
||||
{file = "torchvision-0.19.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:40514282b4896d62765b8e26d7091c32e17c35817d00ec4be2362ea3ba3d1787"},
|
||||
{file = "torchvision-0.19.1-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:5a91be061ae5d6d5b95e833b93e57ca4d3c56c5a57444dd15da2e3e7fba96050"},
|
||||
{file = "torchvision-0.19.1-cp311-cp311-manylinux2014_aarch64.whl", hash = "sha256:d71a6a6fe3a5281ca3487d4c56ad4aad20ff70f82f1d7c79bcb6e7b0c2af00c8"},
|
||||
{file = "torchvision-0.19.1-cp311-cp311-win_amd64.whl", hash = "sha256:70dea324174f5e9981b68e4b7cd524512c106ba64aedef560a86a0bbf2fbf62c"},
|
||||
{file = "torchvision-0.19.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:27ece277ff0f6cdc7fed0627279c632dcb2e58187da771eca24b0fbcf3f8590d"},
|
||||
{file = "torchvision-0.19.1-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:c659ff92a61f188a1a7baef2850f3c0b6c85685447453c03d0e645ba8f1dcc1c"},
|
||||
{file = "torchvision-0.19.1-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:c07bf43c2a145d792ecd9d0503d6c73577147ece508d45600d8aac77e4cdfcf9"},
|
||||
{file = "torchvision-0.19.1-cp312-cp312-win_amd64.whl", hash = "sha256:b4283d283675556bb0eae31d29996f53861b17cbdcdf3509e6bc050414ac9289"},
|
||||
{file = "torchvision-0.19.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:4c4e4f5b24ea6b087b02ed492ab1e21bba3352c4577e2def14248cfc60732338"},
|
||||
{file = "torchvision-0.19.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:9281d63ead929bb19143731154cd1d8bf0b5e9873dff8578a40e90a6bec3c6fa"},
|
||||
{file = "torchvision-0.19.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:4d10bc9083c4d5fadd7edd7b729700a7be48dab4f62278df3bc73fa48e48a155"},
|
||||
{file = "torchvision-0.19.1-cp38-cp38-win_amd64.whl", hash = "sha256:ccf085ef1824fb9e16f1901285bf89c298c62dfd93267a39e8ee42c71255242f"},
|
||||
{file = "torchvision-0.19.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:731f434d91586769e255b5d70ed1a4457e0a1394a95f4aacf0e1e7e21f80c098"},
|
||||
{file = "torchvision-0.19.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:febe4f14d4afcb47cc861d8be7760ab6a123cd0817f97faf5771488cb6aa90f4"},
|
||||
{file = "torchvision-0.19.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:e328309b8670a2e889b2fe76a1c2744a099c11c984da9a822357bd9debd699a5"},
|
||||
{file = "torchvision-0.19.1-cp39-cp39-win_amd64.whl", hash = "sha256:6616f12e00a22e7f3fedbd0fccb0804c05e8fe22871668f10eae65cf3f283614"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
numpy = "*"
|
||||
pillow = ">=5.3.0,<8.3.dev0 || >=8.4.dev0"
|
||||
torch = "2.5.1"
|
||||
torch = "2.4.1"
|
||||
|
||||
[package.extras]
|
||||
gdown = ["gdown (>=4.7.3)"]
|
||||
@@ -4431,16 +4427,16 @@ vision = ["Pillow (>=10.0.1,<=15.0)"]
|
||||
|
||||
[[package]]
|
||||
name = "triton"
|
||||
version = "3.1.0"
|
||||
version = "3.0.0"
|
||||
description = "A language and compiler for custom Deep Learning operations"
|
||||
optional = false
|
||||
python-versions = "*"
|
||||
files = [
|
||||
{file = "triton-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6b0dd10a925263abbe9fa37dcde67a5e9b2383fc269fdf59f5657cac38c5d1d8"},
|
||||
{file = "triton-3.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0f34f6e7885d1bf0eaaf7ba875a5f0ce6f3c13ba98f9503651c1e6dc6757ed5c"},
|
||||
{file = "triton-3.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c8182f42fd8080a7d39d666814fa36c5e30cc00ea7eeeb1a2983dbb4c99a0fdc"},
|
||||
{file = "triton-3.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6dadaca7fc24de34e180271b5cf864c16755702e9f63a16f62df714a8099126a"},
|
||||
{file = "triton-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aafa9a20cd0d9fee523cd4504aa7131807a864cd77dcf6efe7e981f18b8c6c11"},
|
||||
{file = "triton-3.0.0-1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:e1efef76935b2febc365bfadf74bcb65a6f959a9872e5bddf44cc9e0adce1e1a"},
|
||||
{file = "triton-3.0.0-1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5ce8520437c602fb633f1324cc3871c47bee3b67acf9756c1a66309b60e3216c"},
|
||||
{file = "triton-3.0.0-1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:34e509deb77f1c067d8640725ef00c5cbfcb2052a1a3cb6a6d343841f92624eb"},
|
||||
{file = "triton-3.0.0-1-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bcbf3b1c48af6a28011a5c40a5b3b9b5330530c3827716b5fbf6d7adcc1e53e9"},
|
||||
{file = "triton-3.0.0-1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:6e5727202f7078c56f91ff13ad0c1abab14a0e7f2c87e91b12b6f64f3e8ae609"},
|
||||
]
|
||||
|
||||
[package.dependencies]
|
||||
@@ -4659,4 +4655,4 @@ type = ["pytest-mypy"]
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = ">=3.10,<3.13"
|
||||
content-hash = "887c58f97225936e5b89e52843d169a108205305a6ee3820e3d2fbf7f028d68f"
|
||||
content-hash = "6cab6cf38186f89768072092b53c2179b339b6e939736879dfbf9dba0df5f1fd"
|
||||
+2
-1
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "karaoke-prep"
|
||||
version = "0.27.1"
|
||||
version = "0.29.2"
|
||||
description = "Prepare for karaoke video creation, by downloading audio and lyrics for a specified song or playlist from youtube and separating audio stems. After syncing, finalise the video with a title screen!"
|
||||
authors = ["Andrew Beveridge <andrew@beveridge.uk>"]
|
||||
license = "MIT"
|
||||
@@ -12,6 +12,7 @@ documentation = "https://github.com/karaokenerds/karaoke-prep/blob/main/README.m
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = ">=3.10,<3.13"
|
||||
torch = ">=2.3,<2.5"
|
||||
requests = ">=2"
|
||||
beautifulsoup4 = ">=4"
|
||||
yt-dlp = "*"
|
||||
|
||||
Reference in new issue
Block a user