open-mmlab / Amphion

Amphion (/æmˈfaɪən/) is a toolkit for Audio, Music, and Speech Generation. Its purpose is to support reproducible research and help junior researchers and engineers get started in the field of audio, music, and speech generation research and development.
https://openhlt.github.io/amphion/
MIT License
4.28k stars 364 forks source link

Fix lints by ruff scanning #197

Open Nugine opened 2 months ago

Nugine commented 2 months ago

✨ Description

This PR fixes some code style problems in the codebase.

🚧 Related Issues

195

👨‍💻 Changes Proposed

See the commits

🧑‍🤝‍🧑 Who Can Review?

[Please use the '@' symbol to mention any community member who is free to review the PR once the tests have passed. Feel free to tag members or contributors who might be interested in your PR.]

IDK who I should mention. Is there any list?

🛠 TODO

There are too many occurences of import problems. Changing them may cause troubles.

ruff check --select F523,F401,E402,F403,F405,E741,F821,F841

✅ Checklist