(
text2music_json_data,
repaint_json_data,
retake_variance,
retake_seeds,
repaint_start,
repaint_end,
repaint_source,
repaint_source_audio_upload,
prompt,
lyrics,
infer_step,
guidance_scale,
scheduler_type,
cfg_type,
omega_scale,
manual_seeds,
guidance_interval,
guidance_interval_decay,
min_guidance_scale,
use_erg_tag,
use_erg_lyric,
use_erg_diffusion,
oss_steps,
guidance_scale_text,
guidance_scale_lyric,
)
| 417 | repaint_outputs, repaint_input_params_json = create_output_ui("Repaint") |
| 418 | |
| 419 | def repaint_process_func( |
| 420 | text2music_json_data, |
| 421 | repaint_json_data, |
| 422 | retake_variance, |
| 423 | retake_seeds, |
| 424 | repaint_start, |
| 425 | repaint_end, |
| 426 | repaint_source, |
| 427 | repaint_source_audio_upload, |
| 428 | prompt, |
| 429 | lyrics, |
| 430 | infer_step, |
| 431 | guidance_scale, |
| 432 | scheduler_type, |
| 433 | cfg_type, |
| 434 | omega_scale, |
| 435 | manual_seeds, |
| 436 | guidance_interval, |
| 437 | guidance_interval_decay, |
| 438 | min_guidance_scale, |
| 439 | use_erg_tag, |
| 440 | use_erg_lyric, |
| 441 | use_erg_diffusion, |
| 442 | oss_steps, |
| 443 | guidance_scale_text, |
| 444 | guidance_scale_lyric, |
| 445 | ): |
| 446 | if repaint_source == "upload": |
| 447 | src_audio_path = repaint_source_audio_upload |
| 448 | audio_duration = librosa.get_duration(filename=src_audio_path) |
| 449 | json_data = {"audio_duration": audio_duration} |
| 450 | elif repaint_source == "text2music": |
| 451 | json_data = text2music_json_data |
| 452 | src_audio_path = json_data["audio_path"] |
| 453 | elif repaint_source == "last_repaint": |
| 454 | json_data = repaint_json_data |
| 455 | src_audio_path = json_data["audio_path"] |
| 456 | |
| 457 | return text2music_process_func( |
| 458 | format.value, |
| 459 | json_data["audio_duration"], |
| 460 | prompt, |
| 461 | lyrics, |
| 462 | infer_step, |
| 463 | guidance_scale, |
| 464 | scheduler_type, |
| 465 | cfg_type, |
| 466 | omega_scale, |
| 467 | manual_seeds, |
| 468 | guidance_interval, |
| 469 | guidance_interval_decay, |
| 470 | min_guidance_scale, |
| 471 | use_erg_tag, |
| 472 | use_erg_lyric, |
| 473 | use_erg_diffusion, |
| 474 | oss_steps, |
| 475 | guidance_scale_text, |
| 476 | guidance_scale_lyric, |
nothing calls this directly
no outgoing calls
no test coverage detected