| 6 | |
| 7 | |
| 8 | def sample_data(json_data): |
| 9 | return ( |
| 10 | json_data["audio_duration"], |
| 11 | json_data["prompt"], |
| 12 | json_data["lyrics"], |
| 13 | json_data["infer_step"], |
| 14 | json_data["guidance_scale"], |
| 15 | json_data["scheduler_type"], |
| 16 | json_data["cfg_type"], |
| 17 | json_data["omega_scale"], |
| 18 | ", ".join(map(str, json_data["actual_seeds"])), |
| 19 | json_data["guidance_interval"], |
| 20 | json_data["guidance_interval_decay"], |
| 21 | json_data["min_guidance_scale"], |
| 22 | json_data["use_erg_tag"], |
| 23 | json_data["use_erg_lyric"], |
| 24 | json_data["use_erg_diffusion"], |
| 25 | ", ".join(map(str, json_data["oss_steps"])), |
| 26 | json_data["guidance_scale_text"] if "guidance_scale_text" in json_data else 0.0, |
| 27 | ( |
| 28 | json_data["guidance_scale_lyric"] |
| 29 | if "guidance_scale_lyric" in json_data |
| 30 | else 0.0 |
| 31 | ), |
| 32 | ) |
| 33 | |
| 34 | |
| 35 | @click.command() |