Run this model with HF Jobs
Run moonbox-dev/Seed-VC-v2-MLX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/moonbox-dev/Seed-VC-v2-MLX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/moonbox-dev/Seed-VC-v2-MLX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use moonbox-dev/Seed-VC-v2-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use moonbox-dev/Seed-VC-v2-MLX with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download moonbox-dev/Seed-VC-v2-MLX --local-dir Seed-VC-v2-MLX
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Model card and the original license
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license forsoftware and other kinds of works.
The licenses for most software and other practical works are designedto take away your freedom to share and change the works. By contrast,the GNU General Public License is intended to guarantee your freedom toshare and change all versions of a program--to make sure it remains freesoftware for all its users. We, the Free Software Foundation, use theGNU General Public License for most of our software; it applies also toany other work released this way by its authors. You can apply it toyour programs, too.
When we speak of free software, we are referring to freedom, notprice. Our General Public Licenses are designed to make sure that youhave the freedom to distribute copies of free software (and charge forthem if you wish), that you receive source code or can get it if youwant it, that you can change the software or use pieces of it in newfree programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying youthese rights or asking you to surrender the rights. Therefore, you havecertain responsibilities if you distribute copies of the software, or ifyou modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whethergratis or for a fee, you must pass on to the recipients the samefreedoms that you received. You must make sure that they, too, receiveor can get the source code. And you must show them these terms so theyknow their rights.
Developers that use the GNU GPL protect your rights with two steps:(1) assert copyright on the software, and (2) offer you this Licensegiving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explainsthat there is no warranty for this free software. For both users' andauthors' sake, the GPL requires that modified versions be marked aschanged, so that their problems will not be attributed erroneously toauthors of previous versions.
Some devices are designed to deny users access to install or runmodified versions of the software inside them, although the manufacturercan do so. This is fundamentally incompatible with the aim ofprotecting users' freedom to change the software. The systematicpattern of such abuse occurs in the area of products for individuals touse, which is precisely where it is most unacceptable. Therefore, wehave designed this version of the GPL to prohibit the practice for thoseproducts. If such problems arise substantially in other domains, westand ready to extend this provision to those domains in future versionsof the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.States should not allow patents to restrict development and use ofsoftware on general-purpose computers, but in those that do, we wish toavoid the special danger that patents applied to a free program couldmake it effectively proprietary. To prevent this, the GPL assures thatpatents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution andmodification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds ofworks, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under thisLicense. Each licensee is addressed as "you". "Licensees" and"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the workin a fashion requiring copyright permission, other than the making of anexact copy. The resulting work is called a "modified version" of theearlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work basedon the Program.
To "propagate" a work means to do anything with it that, withoutpermission, would make you directly or secondarily liable forinfringement under applicable copyright law, except executing it on acomputer or modifying a private copy. Propagation includes copying,distribution (with or without modification), making available to thepublic, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables otherparties to make or receive copies. Mere interaction with a user througha computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"to the extent that it includes a convenient and prominently visiblefeature that (1) displays an appropriate copyright notice, and (2)tells the user that there is no warranty for the work (except to theextent that warranties are provided), that licensees may convey thework under this License, and how to view a copy of this License. Ifthe interface presents a list of user commands or options, such as amenu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the workfor making modifications to it. "Object code" means any non-sourceform of a work.
A "Standard Interface" means an interface that either is an officialstandard defined by a recognized standards body, or, in the case ofinterfaces specified for a particular programming language, one thatis widely used among developers working in that language.
The "System Libraries" of an executable work include anything, otherthan the work as a whole, that (a) is included in the normal form ofpackaging a Major Component, but which is not part of that MajorComponent, and (b) serves only to enable use of the work with thatMajor Component, or to implement a Standard Interface for which animplementation is available to the public in source code form. A"Major Component", in this context, means a major essential component(kernel, window system, and so on) of the specific operating system(if any) on which the executable work runs, or a compiler used toproduce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means allthe source code needed to generate, install, and (for an executablework) run the object code and to modify the work, including scripts tocontrol those activities. However, it does not include the work'sSystem Libraries, or general-purpose tools or generally available freeprograms which are used unmodified in performing those activities butwhich are not part of the work. For example, Corresponding Sourceincludes interface definition files associated with source files forthe work, and the source code for shared libraries and dynamicallylinked subprograms that the work is specifically designed to require,such as by intimate data communication or control flow between thosesubprograms and other parts of the work.
The Corresponding Source need not include anything that userscan regenerate automatically from other parts of the CorrespondingSource.
The Corresponding Source for a work in source code form is thatsame work.
2. Basic Permissions.
All rights granted under this License are granted for the term ofcopyright on the Program, and are irrevocable provided the statedconditions are met. This License explicitly affirms your unlimitedpermission to run the unmodified Program. The output from running acovered work is covered by this License only if the output, given itscontent, constitutes a covered work. This License acknowledges yourrights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do notconvey, without conditions so long as your license otherwise remainsin force. You may convey covered works to others for the sole purposeof having them make modifications exclusively for you, or provide youwith facilities for running those works, provided that you comply withthe terms of this License in conveying all material for which you donot control copyright. Those thus making or running the covered worksfor you must do so exclusively on your behalf, under your directionand control, on terms that prohibit them from making any copies ofyour copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely underthe conditions stated below. Sublicensing is not allowed; section 10makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technologicalmeasure under any applicable law fulfilling obligations under article11 of the WIPO copyright treaty adopted on 20 December 1996, orsimilar laws prohibiting or restricting circumvention of suchmeasures.
When you convey a covered work, you waive any legal power to forbidcircumvention of technological measures to the extent such circumventionis effected by exercising rights under this License with respect tothe covered work, and you disclaim any intention to limit operation ormodification of the work as a means of enforcing, against the work'susers, your or third parties' legal rights to forbid circumvention oftechnological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as youreceive it, in any medium, provided that you conspicuously andappropriately publish on each copy an appropriate copyright notice;keep intact all notices stating that this License and anynon-permissive terms added in accord with section 7 apply to the code;keep intact all notices of the absence of any warranty; and give allrecipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications toproduce it from the Program, in the form of source code under theterms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independentworks, which are not by their nature extensions of the covered work,and which are not combined with it such as to form a larger program,in or on a volume of a storage or distribution medium, is called an"aggregate" if the compilation and its resulting copyright are notused to limit the access or legal rights of the compilation's usersbeyond what the individual works permit. Inclusion of a covered workin an aggregate does not cause this License to apply to the otherparts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the termsof sections 4 and 5, provided that you also convey themachine-readable Corresponding Source under the terms of this License,in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excludedfrom the Corresponding Source as a System Library, need not beincluded in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means anytangible personal property which is normally used for personal, family,or household purposes, or (2) anything designed or sold for incorporationinto a dwelling. In determining whether a product is a consumer product,doubtful cases shall be resolved in favor of coverage. For a particularproduct received by a particular user, "normally used" refers to atypical or common use of that class of product, regardless of the statusof the particular user or of the way in which the particular useractually uses, or expects or is expected to use, the product. A productis a consumer product regardless of whether the product has substantialcommercial, industrial or non-consumer uses, unless such uses representthe only significant mode of use of the product.
"Installation Information" for a User Product means any methods,procedures, authorization keys, or other information required to installand execute modified versions of a covered work in that User Product froma modified version of its Corresponding Source. The information mustsuffice to ensure that the continued functioning of the modified objectcode is in no case prevented or interfered with solely becausemodification has been made.
If you convey an object code work under this section in, or with, orspecifically for use in, a User Product, and the conveying occurs aspart of a transaction in which the right of possession and use of theUser Product is transferred to the recipient in perpetuity or for afixed term (regardless of how the transaction is characterized), theCorresponding Source conveyed under this section must be accompaniedby the Installation Information. But this requirement does not applyif neither you nor any third party retains the ability to installmodified object code on the User Product (for example, the work hasbeen installed in ROM).
The requirement to provide Installation Information does not include arequirement to continue to provide support service, warranty, or updatesfor a work that has been modified or installed by the recipient, or forthe User Product in which it has been modified or installed. Access to anetwork may be denied when the modification itself materially andadversely affects the operation of the network or violates the rules andprotocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,in accord with this section must be in a format that is publiclydocumented (and with an implementation available to the public insource code form), and must require no special password or key forunpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of thisLicense by making exceptions from one or more of its conditions.Additional permissions that are applicable to the entire Program shallbe treated as though they were included in this License, to the extentthat they are valid under applicable law. If additional permissionsapply only to part of the Program, that part may be used separatelyunder those permissions, but the entire Program remains governed bythis License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your optionremove any additional permissions from that copy, or from any part ofit. (Additional permissions may be written to require their ownremoval in certain cases when you modify the work.) You may placeadditional permissions on material, added by you to a covered work,for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material youadd to a covered work, you may (if authorized by the copyright holders ofthat material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered "furtherrestrictions" within the meaning of section 10. If the Program as youreceived it, or any part of it, contains a notice stating that it isgoverned by this License along with a term that is a furtherrestriction, you may remove that term. If a license document containsa further restriction but permits relicensing or conveying under thisLicense, you may add to a covered work material governed by the termsof that license document, provided that the further restriction doesnot survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, youmust place, in the relevant source files, a statement of theadditional terms that apply to those files, or a notice indicatingwhere to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in theform of a separately written license, or stated as exceptions;the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expresslyprovided under this License. Any attempt otherwise to propagate ormodify it is void, and will automatically terminate your rights underthis License (including any patent licenses granted under the thirdparagraph of section 11).
However, if you cease all violation of this License, then yourlicense from a particular copyright holder is reinstated (a)provisionally, unless and until the copyright holder explicitly andfinally terminates your license, and (b) permanently, if the copyrightholder fails to notify you of the violation by some reasonable meansprior to 60 days after the cessation.
Moreover, your license from a particular copyright holder isreinstated permanently if the copyright holder notifies you of theviolation by some reasonable means, this is the first time you havereceived notice of violation of this License (for any work) from thatcopyright holder, and you cure the violation prior to 30 days afteryour receipt of the notice.
Termination of your rights under this section does not terminate thelicenses of parties who have received copies or rights from you underthis License. If your rights have been terminated and not permanentlyreinstated, you do not qualify to receive new licenses for the samematerial under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive orrun a copy of the Program. Ancillary propagation of a covered workoccurring solely as a consequence of using peer-to-peer transmissionto receive a copy likewise does not require acceptance. However,nothing other than this License grants you permission to propagate ormodify any covered work. These actions infringe copyright if you donot accept this License. Therefore, by modifying or propagating acovered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automaticallyreceives a license from the original licensors, to run, modify andpropagate that work, subject to this License. You are not responsiblefor enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of anorganization, or substantially all assets of one, or subdividing anorganization, or merging organizations. If propagation of a coveredwork results from an entity transaction, each party to thattransaction who receives a copy of the work also receives whateverlicenses to the work the party's predecessor in interest had or couldgive under the previous paragraph, plus a right to possession of theCorresponding Source of the work from the predecessor in interest, ifthe predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of therights granted or affirmed under this License. For example, you maynot impose a license fee, royalty, or other charge for exercise ofrights granted under this License, and you may not initiate litigation(including a cross-claim or counterclaim in a lawsuit) alleging thatany patent claim is infringed by making, using, selling, offering forsale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under thisLicense of the Program or a work on which the Program is based. Thework thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claimsowned or controlled by the contributor, whether already acquired orhereafter acquired, that would be infringed by some manner, permittedby this License, of making, using, or selling its contributor version,but do not include claims that would be infringed only as aconsequence of further modification of the contributor version. Forpurposes of this definition, "control" includes the right to grantpatent sublicenses in a manner consistent with the requirements ofthis License.
Each contributor grants you a non-exclusive, worldwide, royalty-freepatent license under the contributor's essential patent claims, tomake, use, sell, offer for sale, import and otherwise run, modify andpropagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any expressagreement or commitment, however denominated, not to enforce a patent(such as an express permission to practice a patent or covenant not tosue for patent infringement). To "grant" such a patent license to aparty means to make such an agreement or commitment not to enforce apatent against the party.
If you convey a covered work, knowingly relying on a patent license,and the Corresponding Source of the work is not available for anyoneto copy, free of charge and under the terms of this License, through apublicly available network server or other readily accessible means,then you must either (1) cause the Corresponding Source to be soavailable, or (2) arrange to deprive yourself of the benefit of thepatent license for this particular work, or (3) arrange, in a mannerconsistent with the requirements of this License, to extend the patentlicense to downstream recipients. "Knowingly relying" means you haveactual knowledge that, but for the patent license, your conveying thecovered work in a country, or your recipient's use of the covered workin a country, would infringe one or more identifiable patents in thatcountry that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction orarrangement, you convey, or propagate by procuring conveyance of, acovered work, and grant a patent license to some of the partiesreceiving the covered work authorizing them to use, propagate, modifyor convey a specific copy of the covered work, then the patent licenseyou grant is automatically extended to all recipients of the coveredwork and works based on it.
A patent license is "discriminatory" if it does not include withinthe scope of its coverage, prohibits the exercise of, or isconditioned on the non-exercise of one or more of the rights that arespecifically granted under this License. You may not convey a coveredwork if you are a party to an arrangement with a third party that isin the business of distributing software, under which you make paymentto the third party based on the extent of your activity of conveyingthe work, and under which the third party grants, to any of theparties who would receive the covered work from you, a discriminatorypatent license (a) in connection with copies of the covered workconveyed by you (or copies made from those copies), or (b) primarilyfor and in connection with specific products or compilations thatcontain the covered work, unless you entered into that arrangement,or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limitingany implied license or other defenses to infringement that mayotherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement orotherwise) that contradict the conditions of this License, they do notexcuse you from the conditions of this License. If you cannot convey acovered work so as to satisfy simultaneously your obligations under thisLicense and any other pertinent obligations, then as a consequence you maynot convey it at all. For example, if you agree to terms that obligate youto collect a royalty for further conveying from those to whom you conveythe Program, the only way you could satisfy both those terms and thisLicense would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you havepermission to link or combine any covered work with a work licensedunder version 3 of the GNU Affero General Public License into a singlecombined work, and to convey the resulting work. The terms of thisLicense will continue to apply to the part which is the covered work,but the special requirements of the GNU Affero General Public License,section 13, concerning interaction through a network will apply to thecombination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions ofthe GNU General Public License from time to time. Such new versions willbe similar in spirit to the present version, but may differ in detail toaddress new problems or concerns.
Each version is given a distinguishing version number. If theProgram specifies that a certain numbered version of the GNU GeneralPublic License "or any later version" applies to it, you have theoption of following the terms and conditions either of that numberedversion or of any later version published by the Free SoftwareFoundation. If the Program does not specify a version number of theGNU General Public License, you may choose any version ever publishedby the Free Software Foundation.
If the Program specifies that a proxy can decide which futureversions of the GNU General Public License can be used, that proxy'spublic statement of acceptance of a version permanently authorizes youto choose that version for the Program.
Later license versions may give you additional or differentpermissions. However, no additional obligations are imposed on anyauthor or copyright holder as a result of your choosing to follow alater version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BYAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHTHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTYOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULARPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAMIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OFALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITINGWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYSTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANYGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THEUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OFDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRDPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OFSUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability providedabove cannot be given local legal effect according to their terms,reviewing courts shall apply local law that most closely approximatesan absolute waiver of all civil liability in connection with theProgram, unless a warranty or assumption of liability accompanies acopy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatestpossible use to the public, the best way to achieve this is to make itfree software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safestto attach them to the start of each source file to most effectivelystate the exclusion of warranty; and each file should have at leastthe "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a shortnotice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author> This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriateparts of the General Public License. Of course, your program's commandsmight be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,if any, to sign a "copyright disclaimer" for the program, if necessary.For more information on this, and how to apply and follow the GNU GPL, see<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your programinto proprietary programs. If your program is a subroutine library, youmay consider it more useful to permit linking proprietary applications withthe library. If this is what you want to do, use the GNU Lesser GeneralPublic License instead of this License. But first, please read<https://www.gnu.org/licenses/why-not-lgpl.html>.123456789101112131415161718Seed-VC v2 by Plachta (github.com/Plachtaa/seed-vc, Plachta/Seed-VC, Plachta/ASTRAL-quantization) is licensed underthe GNU General Public License v3.0. These files are a modified version of it, distributed under GPL-3.0. Its partscome from HuBERT-large (facebook/hubert-large-ll60k, Apache-2.0), CAM++ (funasr/campplus, 3D-Speaker, Apache-2.0) andBigVGAN v2 (nvidia/bigvgan_v2_22khz_80band_256x, NVIDIA, MIT).
Changes by Moonbox (moonbox-dev), 2026-12-03: the weights the official default v2 path runs (seed-vc @51383ef,configs/v2/vc_wrapper.yaml; Plachta/Seed-VC @257283f9f41585055e8f858fba4fd044e5caed6e v2/cfm_small.pth, Plachta/ASTRAL-quantization @4a2e9679f76eb03753adc8c503e3c23bb9c22f26 bsq2048/bsq2048_light.pth, facebook/hubert-large-ll60k@ff022d095678a2995f3c49bab18a96a9e553f782, funasr/campplus @e4b6ede7ce16997aff4ae69fbca1f0175e2afedecampplus_cn_common.bin, nvidia/bigvgan_v2_22khz_80band_256x @633ff708ed5b74903e86ff1298cf4a98e921c513bigvgan_generator.pt) were converted to MLX safetensors for mlx_model.py, a reimplementation of the official inference(VoiceConversionWrapper.convert_voice_with_streaming, convert_style off) in MLX and numpy: renamed and transposed toMLX layouts; only what that path runs kept (HuBERT's first 18 layers, no AR model, no narrow tokenizer, no unused DiTembedders); weight norm folded into plain weights (HuBERT's positional convolution, BigVGAN's convolutions) and CAM++'sBatchNorm into a scale and shift; BigVGAN's anti-aliased activation reimplemented as a Metal kernel; every weight castto float16 (bfloat16 in bf16/), the DiT's rotary table kept float32; in the 8bit / 6bit / 4bit folders the Linearlayers of the content tokenizer (HuBERT, ConvNeXt) and of the DiT quantized to 8, 6 or 4 bits (MLX affine, group size64). mlx_model.py is GPL-3.0 as a derivative of the official code. Nothing was retrained or fine-tuned.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431---base_model: Plachta/Seed-VCbase_model_relation: quantizedlicense: gpl-3.0pipeline_tag: audio-to-audiolibrary_name: mlxtags:- mlx- moonbox- mlx- seed-vc- voice-conversion- zero-shot- multilingual- apple-silicon---
# Seed-VC v2 MLX
MLX builds of [Seed-VC v2](https://github.com/Plachtaa/seed-vc), made by Moonbox for Apple Silicon Macs. Each precision is a folder; keep a folder'sfiles together. Only the parts listed below are converted: the rest of the pipeline comes from the originalrepository unless the section below says otherwise.
## Files
The last column is how far each build is from the original PyTorch model on the same inputs (see the section belowfor what was measured).
| Precision | File | Size | sha256 | Checked against the original ||---|---|---|---|---|| bf16 | [`bf16/config.json`](https://huggingface.co/moonbox-dev/Seed-VC-v2-MLX/blob/main/bf16/config.json) | 1.0 kB | `7e530165dbf2` | WER 2.63 % / CER 27.1 %, similarity 0.899 / 0.925, DNSMOS 3.13 / 3.10, RTF 2.10 (contended) || bf16 | [`bf16/content.safetensors`](https://huggingface.co/moonbox-dev/Seed-VC-v2-MLX/blob/main/bf16/content.safetensors) | 518.8 MB | `5f6a928b6cdc` | (the same build: numbers in its first row) || bf16 | [`bf16/dit.safetensors`](https://huggingface.co/moonbox-dev/Seed-VC-v2-MLX/blob/main/bf16/dit.safetensors) | 135.6 MB | `40cd16deae0e` | (the same build: numbers in its first row) || bf16 | [`bf16/mlx_model.py`](https://huggingface.co/moonbox-dev/Seed-VC-v2-MLX/blob/main/bf16/mlx_model.py) | 34.1 kB | `9c76f2c34084` | (the same build: numbers in its first row) || bf16 | [`bf16/regulator.safetensors`](https://huggingface.co/moonbox-dev/Seed-VC-v2-MLX/blob/main/bf16/regulator.safetensors) | 8.4 MB | `ca2a3367dd9e` | (the same build: numbers in its first row) || bf16 | [`bf16/style.safetensors`](https://huggingface.co/moonbox-dev/Seed-VC-v2-MLX/blob/main/bf16/style.safetensors) | 13.7 MB | `9f3a70b557b9` | (the same build: numbers in its first row) || bf16 | [`bf16/vocoder.safetensors`](https://huggingface.co/moonbox-dev/Seed-VC-v2-MLX/blob/main/bf16/vocoder.safetensors) | 224.4 MB | `18a973dca36a` | (the same build: numbers in its first row) |
## How to run
Seed-VC v2 (Plachta: zero-shot voice conversion; re-voices a recording into the voice of a few seconds of referenceaudio, keeping its words and timing; 22.05 kHz output) on [MLX](https://github.com/ml-explore/mlx). Each folder isthe whole pipeline for `mlx_model.py`, the one-file runtime that sits in it (mlx, numpy, soxr; no PyTorch). Itreproduces the official default v2 conversion (`inference_v2.py`: `VoiceConversionWrapper.convert_voice_with_streaming`with 30 diffusion steps, intelligibility and similarity guidance 0.7, `convert_style` off).
| File | What ||---|---|| `content.safetensors` | ASTRAL-quantization content tokenizer (bsq2048): HuBERT-large's first 18 layers (facebook/hubert-large-ll60k), 12 ConvNeXt-V2 blocks, the binary spherical quantizer: 16 kHz audio -> 2048 content tokens at 50 Hz. 259 M parameters || `style.safetensors` | CAM++ (funasr/campplus): Kaldi fbank of the reference -> 192-value style vector. 6.9 M || `regulator.safetensors` | token embedding + 4 x (conv, GroupNorm, Mish): tokens stretched to the mel length -> DiT condition. 4.2 M || `dit.safetensors` | the 13-layer DiT (512 wide, time and style as tokens, adaptive RMSNorm, rotary positions): flow-matching velocity. 66.7 M || `vocoder.safetensors` | BigVGAN v2 (nvidia/bigvgan_v2_22khz_80band_256x): 80-band log-mel -> 22.05 kHz audio. 112 M || `config.json`, `mlx_model.py` | precision, quantization, sources; the runtime |
```bashpip install mlx numpy soxr soundfilehf download moonbox-dev/Seed-VC-v2-MLX --include "fp16/*" --local-dir seed-vc-v2python seed-vc-v2/fp16/mlx_model.py source.wav voice.wav out.wav --seed 0```
```pythonimport sys, soundfile as sfsys.path.insert(0, "seed-vc-v2/fp16")from mlx_model import SeedVC2
vc = SeedVC2("seed-vc-v2/fp16")src, sr = sf.read("source.wav", dtype="float32")ref, ref_sr = sf.read("voice.wav", dtype="float32")wav, out_sr = vc(src, sr, ref, ref_sr, steps=30, seed=0) # numpy float32, 22.05 kHz```
The runtime does the rest as the official code does: resampling (soxr, as librosa), the 80-bin log-mel and theKaldi fbank in numpy, the reference cut to 25 s, the content tokens in 30 s windows with 5 s of overlap, 30 Eulersteps on the cosine time schedule with the reference mel as prompt and two-condition guidance (one DiT call with abatch of 3 per step), and for sources longer than the 30 s context the official chunking with a 16-frame crossfade.BigVGAN's anti-aliased SnakeBeta activation (2x upsampling, SnakeBeta, 2x downsampling) runs as one Metal kernel, infloat32, like BigVGAN's own fused CUDA kernel. The flow's starting noise comes from numpy's generator, so a seed givesthe same output every run (the same draw as the ONNX build's `pipeline.py`; not the same as PyTorch with that seed).The style-conversion mode (`convert_style`, the autoregressive model `ar_base.pth`) is not included.
**Precision.** `fp16/` and `bf16/` hold every weight in float16 / bfloat16. In `8bit/`, `6bit/` and `4bit/` theLinear layers of the content tokenizer (HuBERT and ConvNeXt) and of the DiT are quantized (MLX affine, group size64): 70 % of the weights. These stay float16 in every folder: the tokenizer's `project_in` (it sets the token bits),the DiT's time input, style input, final and condition-merge layers, the regulator, CAM++ and BigVGAN (convolutions),all norms; the DiT's rotary table is float32. **`4bit/` is experimental**: it passes the benchmark, but its 4-bittokenizer changes about half of the content tokens, further from the original than 12 conversions can vouch for.`fp16/` is the recommended folder.
Measured against the official PyTorch pipeline (`convert_voice_with_streaming`, CPU, float32, same starting noise) on12 conversions (English and Chinese sources, unseen reference voices): Whisper large-v3-turbo word / character errorrate, WavLM speaker similarity to the reference, DNSMOS. A build passes when, per source language, its error rate isat most 2 points above the original's, similarity at most 0.03 below and DNSMOS at most 0.2 below.
| Folder | Size | English WER / sim / DNSMOS | Chinese CER / sim / DNSMOS | Peak memory | RTF (M5) ||---|---|---|---|---|---|| original (PyTorch fp32, CPU) | | 2.11 % / 0.899 / 3.14 | 27.1 % / 0.930 / 3.09 | | 6.2-8.0 || `fp16/` | 0.90 GB | 2.11 % / 0.900 / 3.18 | 25.0 % / 0.927 / 3.09 | 2.73 GB | 0.97* || `bf16/` | 0.90 GB | 2.63 % / 0.899 / 3.13 | 27.1 % / 0.925 / 3.10 | 2.73 GB | 2.10* || `8bit/` | 0.61 GB | 2.11 % / 0.899 / 3.19 | 20.8 % / 0.926 / 3.13 | 2.44 GB | 1.56* || `6bit/` | 0.53 GB | 2.63 % / 0.899 / 3.15 | 25.0 % / 0.929 / 3.18 | 2.36 GB | 1.10* || `4bit/` (experimental) | 0.45 GB | 3.16 % / 0.915 / 3.09 | 16.7 % / 0.932 / 3.13 | 2.28 GB | 1.51* |
Every folder passes. The 12-conversion set is small: differences of one word or a few characters are noise. RTF isconversion time over output duration for the whole pipeline (10 s sources, 30 steps), measured while other jobs shared the GPU (load average 12-17, another model's MPS run), so upper bounds and not a ranking (in isolation 8bit ran faster than fp16); * contended. The port was checkedpart by part against the official modules with exact float32 kernels (`MLX_METAL_GPU_ARCH=applegpu_g16s`): identicalcontent tokens, every part 106-131 dB from the original (BigVGAN 67 dB), whole conversion 57-63 dB. With the defaultkernels Apple's reduced-precision float32 matmuls, carried through 30 guided steps, give a different waveform of thesame words and voice, so builds are compared by the measures above, not sample by sample.
**License.** Seed-VC v2 and its ASTRAL content tokenizer are GPL-3.0 (Plachtaa/seed-vc, Plachta/Seed-VC,Plachta/ASTRAL-quantization), so these weights are distributed under GPL-3.0, and `mlx_model.py`, a reimplementationof the official inference code in MLX (a derivative of it), is GPL-3.0 too: if you ship them in a product, the GPL'sterms for conveying covered works apply, including providing the corresponding source (`mlx_model.py` is the completeruntime source; `NOTICE` lists the changes). The parts inside come from HuBERT-large (facebook/hubert-large-ll60k,Apache-2.0), CAM++ (funasr/campplus, 3D-Speaker, Apache-2.0) and BigVGAN v2 (nvidia/bigvgan_v2_22khz_80band_256x,MIT). Convert voices only with the consent of the people whose voices are used, and not for impersonation, fraud ormisleading audio.
**Sources.** github.com/Plachtaa/seed-vc @51383ef (configs/v2/vc_wrapper.yaml); Plachta/Seed-VC @257283f(`v2/cfm_small.pth`: the DiT and the length regulator), Plachta/ASTRAL-quantization @4a2e967(`bsq2048/bsq2048_light.pth`), facebook/hubert-large-ll60k @ff022d0, funasr/campplus @e4b6ede(`campplus_cn_common.bin`), nvidia/bigvgan_v2_22khz_80band_256x @633ff70 (`bigvgan_generator.pt`), all read with`torch.load(weights_only=True)`. Weight norm (HuBERT's positional convolution, BigVGAN's convolutions) is folded intoplain weights and CAM++'s BatchNorm into a scale and shift; the DiT's rotary table is the checkpoint's own (bfloat16values), kept in float32.
## How these were made
From [Seed-VC v2](https://github.com/Plachtaa/seed-vc) at revision `51383ef`: the original weights loaded in MLX and stored as bf16 or fp16, orquantized with MLX's affine quantization (`8bit`, `6bit`, `4bit`, group size 64; layers MLX can't quantize, such asconvolutions and norms, stay bf16). Every build was checked against the original before upload; the `sha256` columnabove is what the files must hash to.
## License
GPL-3.0. These files are a derivative of the original model and carry its license: it is copied in thisrepository, and it governs your use of these files. The original model card follows unchanged.
---
# Original model card
# Seed-VC [](https://huggingface.co/spaces/Plachta/Seed-VC) [](https://arxiv.org/abs/2411.09943)
*English | [简体中文](https://raw.githubusercontent.com/Plachtaa/seed-vc/51383ef/README-ZH.md) | [日本語](https://raw.githubusercontent.com/Plachtaa/seed-vc/51383ef/README-JA.md)*
[real-time-demo.webm](https://github.com/user-attachments/assets/86325c5e-f7f6-4a04-8695-97275a5d046c)
Currently released model supports *zero-shot voice conversion* 🔊 , *zero-shot real-time voice conversion* 🗣️ and *zero-shot singing voice conversion* 🎶. Without any training, it is able to clone a voice given a reference speech of 1~30 seconds.
We support further fine-tuning on custom data to increase performance on specific speaker/speakers, with extremely low data requirement **(minimum 1 utterance per speaker)** and extremely fast training speed **(minimum 100 steps, 2 min on T4)**!
**Real-time voice conversion** is support, with algorithm delay of ~300ms and device side delay of ~100ms, suitable for online meetings, gaming and live streaming.
To find a list of demos and comparisons with previous voice conversion models, please visit our [demo page](https://plachtaa.github.io/seed-vc/)🌐 and [Evaluaiton](https://raw.githubusercontent.com/Plachtaa/seed-vc/51383ef/EVAL.md)📊.
We are keeping on improving the model quality and adding more features.
## Evaluation📊See [EVAL.md](https://raw.githubusercontent.com/Plachtaa/seed-vc/51383ef/EVAL.md) for objective evaluation results and comparisons with other baselines.## Installation📥Suggested python 3.10 on Windows, Mac M Series (Apple Silicon) or Linux.Windows and Linux:```bashpip install -r requirements.txt```
Mac M Series:```bashpip install -r requirements-mac.txt```
For Windows users, you may consider install `triton-windows` to enable `--compile` usage, which gains speed up on V2 models:```bashpip install triton-windows==3.2.0.post13```
## Usage🛠️We have released 4 models for different purposes:
| Version | Name | Purpose | Sampling Rate | Content Encoder | Vocoder | Hidden Dim | N Layers | Params | Remarks ||---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------|---------------|------------------------------------------------------------------------|---------|------------|----------|--------------------|--------------------------------------------------------|| v1.0 | seed-uvit-tat-xlsr-tiny ([🤗](https://huggingface.co/Plachta/Seed-VC/blob/main/DiT_uvit_tat_xlsr_ema.pth)[📄](https://raw.githubusercontent.com/Plachtaa/seed-vc/51383ef/configs/presets/config_dit_mel_seed_uvit_xlsr_tiny.yml)) | Voice Conversion (VC) | 22050 | XLSR-large | HIFT | 384 | 9 | 25M | suitable for real-time voice conversion || v1.0 | seed-uvit-whisper-small-wavenet ([🤗](https://huggingface.co/Plachta/Seed-VC/blob/main/DiT_seed_v2_uvit_whisper_small_wavenet_bigvgan_pruned.pth)[📄](https://raw.githubusercontent.com/Plachtaa/seed-vc/51383ef/configs/presets/config_dit_mel_seed_uvit_whisper_small_wavenet.yml)) | Voice Conversion (VC) | 22050 | Whisper-small | BigVGAN | 512 | 13 | 98M | suitable for offline voice conversion || v1.0 | seed-uvit-whisper-base ([🤗](https://huggingface.co/Plachta/Seed-VC/blob/main/DiT_seed_v2_uvit_whisper_base_f0_44k_bigvgan_pruned_ft_ema.pth)[📄](https://raw.githubusercontent.com/Plachtaa/seed-vc/51383ef/configs/presets/config_dit_mel_seed_uvit_whisper_base_f0_44k.yml)) | Singing Voice Conversion (SVC) | 44100 | Whisper-small | BigVGAN | 768 | 17 | 200M | strong zero-shot performance, singing voice conversion || v2.0 | hubert-bsqvae-small ([🤗](https://huggingface.co/Plachta/Seed-VC/blob/main/v2)[📄](https://raw.githubusercontent.com/Plachtaa/seed-vc/51383ef/configs/v2/vc_wrapper.yaml)) | Voice & Accent Conversion (VC) | 22050 | [ASTRAL-Quantization](https://github.com/Plachtaa/ASTRAL-quantization) | BigVGAN | 512 | 13 | 67M(CFM) + 90M(AR) | Best in suppressing source speaker traits |
Checkpoints of the latest model release will be downloaded automatically when first run inference. If you are unable to access huggingface for network reason, try using mirror by adding `HF_ENDPOINT=https://hf-mirror.com` before every command.
Command line inference:```bashpython inference.py --source <source-wav>--target <referene-wav>--output <output-dir>--diffusion-steps 25 # recommended 30~50 for singingvoice conversion--length-adjust 1.0--inference-cfg-rate 0.7--f0-condition False # set to True for singing voice conversion--auto-f0-adjust False # set to True to auto adjust source pitch to target pitch level, normally not used in singing voice conversion--semi-tone-shift 0 # pitch shift in semitones for singing voice conversion--checkpoint <path-to-checkpoint>--config <path-to-config> --fp16 True```where:- `source` is the path to the speech file to convert to reference voice- `target` is the path to the speech file as voice reference- `output` is the path to the output directory- `diffusion-steps` is the number of diffusion steps to use, default is 25, use 30-50 for best quality, use 4-10 for fastest inference- `length-adjust` is the length adjustment factor, default is 1.0, set <1.0 for speed-up speech, >1.0 for slow-down speech- `inference-cfg-rate` has subtle difference in the output, default is 0.7 - `f0-condition` is the flag to condition the pitch of the output to the pitch of the source audio, default is False, set to True for singing voice conversion - `auto-f0-adjust` is the flag to auto adjust source pitch to target pitch level, default is False, normally not used in singing voice conversion- `semi-tone-shift` is the pitch shift in semitones for singing voice conversion, default is 0 - `checkpoint` is the path to the model checkpoint if you have trained or fine-tuned your own model, leave to blank to auto-download default model from huggingface.(`seed-uvit-whisper-small-wavenet` if `f0-condition` is `False` else `seed-uvit-whisper-base`)- `config` is the path to the model config if you have trained or fine-tuned your own model, leave to blank to auto-download default config from huggingface - `fp16` is the flag to use float16 inference, default is True
Similarly, to use V2 model, you can run:```bashpython inference_v2.py --source <source-wav>--target <referene-wav>--output <output-dir>--diffusion-steps 25 # recommended 30~50 for singingvoice conversion--length-adjust 1.0 # same as V1--intelligibility-cfg-rate 0.7 # controls how clear the output linguistic content is, recommended 0.0~1.0--similarity-cfg-rate 0.7 # controls how similar the output voice is to the reference voice, recommended 0.0~1.0--convert-style true # whether to use AR model for accent & emotion conversion, set to false will only conduct timbre conversion similar to V1--anonymization-only false # set to true will ignore reference audio but only anonymize source speech to an "average voice"--top-p 0.9 # controls the diversity of the AR model output, recommended 0.5~1.0--temperature 1.0 # controls the randomness of the AR model output, recommended 0.7~1.2--repetition-penalty 1.0 # penalizes the repetition of the AR model output, recommended 1.0~1.5--cfm-checkpoint-path <path-to-cfm-checkpoint> # path to the checkpoint of the CFM model, leave to blank to auto-download default model from huggingface--ar-checkpoint-path <path-to-ar-checkpoint> # path to the checkpoint of the AR model, leave to blank to auto-download default model from huggingface```
Voice Conversion Web UI:```bashpython app_vc.py --checkpoint <path-to-checkpoint> --config <path-to-config> --fp16 True```- `checkpoint` is the path to the model checkpoint if you have trained or fine-tuned your own model, leave to blank to auto-download default model from huggingface. (`seed-uvit-whisper-small-wavenet`)- `config` is the path to the model config if you have trained or fine-tuned your own model, leave to blank to auto-download default config from huggingface
Then open the browser and go to `http://localhost:7860/` to use the web interface.
Singing Voice Conversion Web UI:```bashpython app_svc.py --checkpoint <path-to-checkpoint> --config <path-to-config> --fp16 True```- `checkpoint` is the path to the model checkpoint if you have trained or fine-tuned your own model, leave to blank to auto-download default model from huggingface. (`seed-uvit-whisper-base`)- `config` is the path to the model config if you have trained or fine-tuned your own model, leave to blank to auto-download default config from huggingface
V2 model Web UI:```bashpython app_vc_v2.py --cfm-checkpoint-path <path-to-cfm-checkpoint> --ar-checkpoint-path <path-to-ar-checkpoint>```- `cfm-checkpoint-path` is the path to the checkpoint of the CFM model, leave to blank to auto-download default model from huggingface- `ar-checkpoint-path` is the path to the checkpoint of the AR model, leave to blank to auto-download default model from huggingface- you may consider adding `--compile` to gain ~x6 speed-up on AR model inference - Integrated Web UI:```bashpython app.py --enable-v1 --enable-v2```This will only load pretrained models for zero-shot inference. To use custom checkpoints, please run `app_vc.py` or `app_svc.py` as above. If you have limited memory, remove `--enable-v2` or `--enable-v1` to only load one of the model sets.
Real-time voice conversion GUI:```bashpython real-time-gui.py --checkpoint-path <path-to-checkpoint> --config-path <path-to-config>```- `checkpoint` is the path to the model checkpoint if you have trained or fine-tuned your own model, leave to blank to auto-download default model from huggingface. (`seed-uvit-tat-xlsr-tiny`)- `config` is the path to the model config if you have trained or fine-tuned your own model, leave to blank to auto-download default config from huggingface
> [!IMPORTANT]> It is strongly recommended to use a GPU for real-time voice conversion.> Some performance testing has been done on a NVIDIA RTX 3060 Laptop GPU, results and recommended parameter settings are listed below:
| Model Configuration | Diffusion Steps | Inference CFG Rate | Max Prompt Length | Block Time (s) | Crossfade Length (s) | Extra context (left) (s) | Extra context (right) (s) | Latency (ms) | Inference Time per Chunk (ms) ||---------------------------------|-----------------|--------------------|-------------------|----------------|----------------------|--------------------------|---------------------------|--------------|-------------------------------| | seed-uvit-xlsr-tiny | 10 | 0.7 | 3.0 | 0.18s | 0.04s | 2.5s | 0.02s | 430ms | 150ms |
You can adjust the parameters in the GUI according to your own device performance, the voice conversion stream should work well as long as Inference Time is less than Block Time. Note that inference speed may drop if you are running other GPU intensive tasks (e.g. gaming, watching videos)
Explanations for real-time voice conversion GUI parameters:- `Diffusion Steps` is the number of diffusion steps to use, in real-time case usually set to 4~10 for fastest inference;- `Inference CFG Rate` has subtle difference in the output, default is 0.7, set to 0.0 gains about 1.5x speed-up;- `Max Prompt Length` is the maximum length of the prompt audio, setting to a low value can speed up inference, but may reduce similarity to prompt speech;- `Block Time` is the time length of each audio chunk for inference, the higher the value, the higher the latency, note this value must be greater than the inference time per block, set according to your hardware condition;- `Crossfade Length` is the time length of crossfade between audio chunks, normally not needed to change;- `Extra context (left)` is the time length of extra history context for inference, the higher the value, the higher the inference time, but can increase stability;- `Extra context (right)` is the time length of extra future context for inference, the higher the value, the higher the inference time and latency, but can increase stability;
The algorithm delay is appoximately calculated as `Block Time * 2 + Extra context (right)`, device side delay is usually of ~100ms. The overall delay is the sum of the two.
You may wish to use [VB-CABLE](https://vb-audio.com/Cable/) to route audio from GUI output stream to a virtual microphone.
*(GUI and audio chunking logic are modified from [RVC](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI), thanks for their brilliant implementation!)*
## Training🏋️Fine-tuning on custom data allow the model to clone someone's voice more accurately. It will largely improve speaker similarity on particular speakers, but may slightly increase WER. A Colab Tutorial is here for you to follow: [](https://colab.research.google.com/drive/1R1BJTqMsTXZzYAVx3j1BiemFXog9pbQG?usp=sharing)1. Prepare your own dataset. It has to satisfy the following: - File structure does not matter - Each audio file should range from 1 to 30 seconds, otherwise will be ignored - All audio files should be in on of the following formats: `.wav` `.flac` `.mp3` `.m4a` `.opus` `.ogg` - Speaker label is not required, but make sure that each speaker has at least 1 utterance - Of course, the more data you have, the better the model will perform - Training data should be as clean as possible, BGM or noise is not desired2. Choose a model configuration file from `configs/presets/` for fine-tuning, or create your own to train from scratch. - For fine-tuning, it should be one of the following: - `./configs/presets/config_dit_mel_seed_uvit_xlsr_tiny.yml` for real-time voice conversion - `./configs/presets/config_dit_mel_seed_uvit_whisper_small_wavenet.yml` for offline voice conversion - `./configs/presets/config_dit_mel_seed_uvit_whisper_base_f0_44k.yml` for singing voice conversion3. Run the following command to start training:```bashpython train.py --config <path-to-config> --dataset-dir <path-to-data>--run-name <run-name>--batch-size 2--max-steps 1000--max-epochs 1000--save-every 500--num-workers 0```where:- `config` is the path to the model config, choose one of the above for fine-tuning or create your own for training from scratch- `dataset-dir` is the path to the dataset directory, which should be a folder containing all the audio files- `run-name` is the name of the run, which will be used to save the model checkpoints and logs- `batch-size` is the batch size for training, choose depends on your GPU memory.- `max-steps` is the maximum number of steps to train, choose depends on your dataset size and training time- `max-epochs` is the maximum number of epochs to train, choose depends on your dataset size and training time- `save-every` is the number of steps to save the model checkpoint- `num-workers` is the number of workers for data loading, set to 0 for Windows
Similarly, to train V2 model, you can run: (note that V2 training script supports multi-GPU training)```bashaccelerate launch train_v2.py --dataset-dir <path-to-data>--run-name <run-name>--batch-size 2--max-steps 1000--max-epochs 1000--save-every 500--num-workers 0--train-cfm```
4. If training accidentially stops, you can resume training by running the same command again, the training will continue from the last checkpoint. (Make sure `run-name` and `config` arguments are the same so that latest checkpoint can be found)
5. After training, you can use the trained model for inference by specifying the path to the checkpoint and config file. - They should be under `./runs/<run-name>/`, with the checkpoint named `ft_model.pth` and config file with the same name as the training config file. - You still have to specify a reference audio file of the speaker you'd like to use during inference, similar to zero-shot usage.
## TODO📝- [x] Release code- [x] Release pretrained models: [](https://huggingface.co/Plachta/Seed-VC)- [x] Huggingface space demo: [](https://huggingface.co/spaces/Plachta/Seed-VC)- [x] HTML demo page: [Demo](https://plachtaa.github.io/seed-vc/)- [x] Streaming inference- [x] Reduce streaming inference latency- [x] Demo video for real-time voice conversion- [x] Singing voice conversion- [x] Noise resiliency for source audio- [ ] Potential architecture improvements - [x] U-ViT style skip connections - [x] Changed input to OpenAI Whisper - [x] Time as Token- [x] Code for training on custom data- [x] Few-shot/One-shot speaker fine-tuning- [x] Changed to BigVGAN from NVIDIA for singing voice decoding- [x] Whisper version model for singing voice conversion- [x] Objective evaluation and comparison with RVC/SoVITS for singing voice conversion- [x] Improve audio quality- [ ] NSF vocoder for better singing voice conversion- [x] Fix real-time voice conversion artifact while not talking (done by adding a VAD model)- [x] Colab Notebook for fine-tuning example- [x] Replace whisper with more advanced linguistic content extractor- [ ] More to be added- [x] Add Apple Silicon support- [ ] Release paper, evaluations and demo page for V2 model
## Known Issues- On Mac - running `real-time-gui.py` might raise an error `ModuleNotFoundError: No module named '_tkinter'`, in this case a new Python version **with Tkinter support** should be installed. Refer to [This Guide on stack overflow](https://stackoverflow.com/questions/76105218/why-does-tkinter-or-turtle-seem-to-be-missing-or-broken-shouldnt-it-be-part) for explanation of the problem and a detailed fix.
## CHANGELOGS🗒️- 2024-04-16 - Released V2 model for voice and accent conversion, with better anonymization of source speaker- 2025-03-03: - Added Mac M Series (Apple Silicon) support- 2024-11-26: - Updated v1.0 tiny version pretrained model, optimized for real-time voice conversion - Support one-shot/few-shot single/multi speaker fine-tuning - Support using custom checkpoint for webUI & real-time GUI- 2024-11-19: - arXiv paper released- 2024-10-28: - Updated fine-tuned 44k singing voice conversion model with better audio quality- 2024-10-27: - Added real-time voice conversion GUI- 2024-10-25: - Added exhaustive evaluation results and comparisons with RVCv2 for singing voice conversion- 2024-10-24: - Updated 44kHz singing voice conversion model, with OpenAI Whisper as speech content input- 2024-10-07: - Updated v0.3 pretrained model, changed speech content encoder to OpenAI Whisper - Added objective evaluation results for v0.3 pretrained model- 2024-09-22: - Updated singing voice conversion model to use BigVGAN from NVIDIA, providing large improvement to high-pitched singing voices - Support chunking and streaming output for long audio files in Web UI- 2024-09-18: - Updated f0 conditioned model for singing voice conversion- 2024-09-14: - Updated v0.2 pretrained model, with smaller size and less diffusion steps to achieve same quality, and additional ability to control prosody preservation - Added command line inference script - Added installation and usage instructions
## Acknowledgements🙏- [Amphion](https://github.com/open-mmlab/Amphion) for providing computational resources and inspiration!- [Vevo](https://github.com/open-mmlab/Amphion/tree/main/models/vc/vevo) for theoretical foundation of V2 model- [MegaTTS3](https://github.com/bytedance/MegaTTS3) for multi-condition CFG inference implemented in V2 model- [ASTRAL-quantiztion](https://github.com/Plachtaa/ASTRAL-quantization) for the amazing speaker-disentangled speech tokenizer used by V2 model- [RVC](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI) for foundationing the real-time voice conversion- [SEED-TTS](https://arxiv.org/abs/2406.02430) for the initial ideaLICENSEAdded+674
NOTICE.mdAdded+18
README.mdAdded+431