Commit ·
6d60975
0
Parent(s):
Duplicate from ElectronGirl/anima-ref-adapter
Browse filesCo-authored-by: ElectronGirl <ElectronGirl@users.noreply.huggingface.co>
- .gitattributes +77 -0
- LICENSE.md +54 -0
- NOTICE.txt +12 -0
- README.ja.md +177 -0
- README.ko.md +177 -0
- README.md +295 -0
- anima_ref_adapter_pilot_r32.safetensors +3 -0
- anima_ref_adapter_v2_r64.safetensors +3 -0
- figures/fig1_loss.png +0 -0
- figures/fig2_heldout.jpg +3 -0
- figures/fig3_unseen_artist_oc.jpg +3 -0
- figures/fig4_ref_guidance.jpg +3 -0
- figures/fig5_corrections.jpg +3 -0
- figures/fig6_failures.jpg +3 -0
- figures/v2_compat.jpg +3 -0
- figures/v2_turbo.jpg +3 -0
- guide.en.md +120 -0
- guide.ja.md +120 -0
- guide.ko.md +119 -0
- report.md +275 -0
- showcase/banner.jpg +3 -0
- showcase/pilot_girl.jpg +3 -0
- showcase/pilot_man.jpg +3 -0
- showcase/v2/duo_mecha_swim.jpg +3 -0
- showcase/v2/duo_police_mecha.jpg +3 -0
- showcase/v2/duo_police_swim.jpg +3 -0
- showcase/v2/mecha_fly.jpg +3 -0
- showcase/v2/mecha_sit.jpg +3 -0
- showcase/v2/police_cafe.jpg +0 -0
- showcase/v2/police_lie.jpg +0 -0
- showcase/v2/swim_beach.jpg +3 -0
- showcase/v2/swim_pool.jpg +3 -0
- showcase/v2_duo_mecha_swim.jpg +3 -0
- showcase/v2_duo_police_mecha.jpg +3 -0
- showcase/v2_duo_police_swim.jpg +3 -0
- showcase/v2_mecha.jpg +3 -0
- showcase/v2_police.jpg +3 -0
- showcase/v2_swim.jpg +3 -0
- workflows/anima_ref_adapter.json +575 -0
- workflows/anima_ref_adapter_advanced.json +844 -0
- workflows/anima_ref_adapter_two_characters.json +677 -0
.gitattributes
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
figures/fig2_heldout.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
figures/fig3_unseen_artist_oc.jpg filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
figures/fig4_ref_guidance.jpg filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
figures/fig5_corrections.jpg filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
figures/fig6_failures.jpg filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
showcase/banner.jpg filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
showcase/girl_beach.jpg filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
showcase/girl_cake.jpg filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
showcase/girl_classroom.jpg filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
showcase/girl_neon.jpg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
showcase/girl_sakura.jpg filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
showcase/girl_umbrella.jpg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
showcase/man_beach.jpg filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
showcase/man_cafe.jpg filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
showcase/man_library.jpg filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
showcase/man_night_rain.jpg filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
showcase/man_sakura.jpg filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
showcase/man_snow.jpg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
showcase/ref_girl.jpg filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
showcase/ref_man.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
figures/v2_compat.jpg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
figures/v2_turbo.jpg filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
showcase/v2/duo_mecha_swim.jpg filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
showcase/v2/duo_police_mecha.jpg filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
showcase/v2/duo_police_swim.jpg filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
showcase/v2/mecha_fly.jpg filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
showcase/v2/mecha_sit.jpg filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
showcase/v2/ref_mecha_swim.jpg filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
showcase/v2/ref_police.jpg filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
showcase/v2/ref_police_mecha.jpg filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
showcase/v2/ref_police_swim.jpg filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
showcase/v2/ref_swim.jpg filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
showcase/v2/swim_beach.jpg filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
showcase/v2/swim_pool.jpg filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
showcase/pilot_girl.jpg filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
showcase/pilot_man.jpg filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
showcase/v2_duo_mecha_swim.jpg filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
showcase/v2_duo_police_mecha.jpg filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
showcase/v2_duo_police_swim.jpg filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
showcase/v2_mecha.jpg filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
showcase/v2_police.jpg filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
showcase/v2_swim.jpg filter=lfs diff=lfs merge=lfs -text
|
LICENSE.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
CircleStone Labs Non-Commercial License v1.2
|
| 2 |
+
|
| 3 |
+
CircleStone Labs LLC (“we” or “our” or “Company”) is pleased to make the weights, parameters, and inference code for the CircleStone Models (as defined below) freely available for your non-commercial and non-production use as set forth in this CircleStone Labs Non-Commercial License (“License”). “Models” includes all model elements, such as weights, algorithms, software, checkpoints, parameters, source code (inference code, evaluation code, and if applicable, fine-tuning code) and any other materials associated with the CircleStone AI models made available by Company under this License, including if any, the technical documentation, manuals, and instructions for the use and operation thereof (individually and collectively, the “CircleStone Models”). Note that we may also make available certain elements of what is included in the definition of “CircleStone Model” under a separate license, such as the inference code, and nothing in this License will be deemed to restrict or limit any other licenses granted by us in such elements.
|
| 4 |
+
|
| 5 |
+
By downloading, accessing, using, Distributing (as defined below), or creating a Derivative (as defined below) of the CircleStone Model, you agree to the terms of this License. If you do not agree to this License, then you do not have any rights to access, use, Distribute or create a Derivative of the CircleStone Model and you must immediately cease using the CircleStone Model. If you are agreeing to be bound by the terms of this License on behalf of your employer or other entity, you represent and warrant to us that you have full legal authority to bind your employer or such entity to this License. If you do not have the requisite authority, you may not accept the License or access the CircleStone Model on behalf of your employer or other entity.
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
- a. “Derivative” means any (i) modified version of the CircleStone Model (including but not limited to any customized or fine-tuned version thereof), (ii) work based on the CircleStone Model, including Low-rank Adaptations (“LoRAs”) and textual inversions based on a CircleStone Model, or (iii) any other derivative work thereof. For the avoidance of doubt, Outputs are not considered Derivatives under this License.
|
| 9 |
+
- b. “Distribution” or “Distribute” or “Distributing” means providing or making available, by any means, a copy of the CircleStone Models and/or the Derivatives as the case may be, including by making the CircleStone Models and/or the Derivatives available to third-parties on a hosted basis.
|
| 10 |
+
- c. “Non-Commercial Purpose” means any of the following uses, but only so far as you do not receive any direct or indirect payment arising from the use of the CircleStone Model, or Derivatives: (i) personal use for research, experimentation, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, or otherwise not directly or indirectly connected to any commercial activities, business operations, or employment responsibilities; (ii) internal use by commercial or for-profit entities for testing, evaluation, or non-commercial research and development in a non-production environment; and (iii) use by any charitable organization for charitable purposes, or for testing or evaluation. For clarity, use (a) for revenue-generating activity, (b) in direct interactions with or that has impact on third-party end users, or (c) to train, fine tune, or distill other models for commercial use, in each case, is not a Non-Commercial Purpose.
|
| 11 |
+
- d. “Outputs” means any content generated by the operation of the CircleStone Models or Derivatives from an input (such as an image input) or prompt (i.e., text instructions) provided by users. For the avoidance of doubt, Outputs do not include any components of the CircleStone Models, such as any fine-tuned versions of the CircleStone Models, any LoRAs or textual inversions, the weights, or parameters.
|
| 12 |
+
- e. “you” or “your” means the individual or entity entering into this License with Company.
|
| 13 |
+
|
| 14 |
+
2. License Grant.
|
| 15 |
+
- a. License. Subject to your compliance with this License, Company grants you a non-exclusive, worldwide, non-transferable, non-sublicensable, revocable, royalty free, and limited license to access, use, create Derivatives of, and Distribute the CircleStone Models and Derivatives solely for your Non-Commercial Purposes. The foregoing license is personal to you, and you may not assign or sublicense this License or any other rights or obligations under this License without Company’s prior written consent; any such assignment or sublicense will be void and will automatically and immediately terminate this License. Any restrictions set forth herein regarding the CircleStone Model also apply to any Derivative you create or that are created on your behalf.
|
| 16 |
+
- b. Non-Commercial Use Only. You may only access, use, Distribute, or create Derivatives of the CircleStone Model or Derivatives for Non-Commercial Purposes, unless otherwise expressly granted by this License. If you want to use a CircleStone Model or a Derivative for any purpose that is not expressly authorized under this License, such as for a commercial activity, you must request a license from Company, which Company may grant to you in Company’s sole discretion and which additional use may be subject to a fee, royalty or other revenue share. Please refer to the details in the Model Card if you would like a commercial license.
|
| 17 |
+
- c. Selling Derivatives. Persons operating in an individual capacity may sell Derivatives owned or created by them. This includes (i) requiring payment to download model weights, (ii) paid commissions for the creation of Derivatives, whether the resulting model is published publicly or delivered privately to the Commissioner, (iii) collecting donations or payments of any kind for the creation of a Derivative. This right to sell Derivatives extends solely to the model weights, and not to any larger product, tool, or feature which incorporates the Model.
|
| 18 |
+
- d. Reserved Rights. The grant of rights expressly set forth in this License are the complete grant of rights to you in the CircleStone Model, and no other licenses are granted, whether by waiver, estoppel, implication, equity, or otherwise except as otherwise agreed in writing by Company. Company and its licensors reserve all rights not expressly granted by this License.
|
| 19 |
+
- e. Outputs. We claim no ownership rights in and to the Outputs. You are solely responsible for the Outputs you generate and their subsequent uses in accordance with this License. You may use Outputs for any purpose (including for commercial purposes), except as expressly prohibited herein.
|
| 20 |
+
- f. You are solely responsible for your use of all Outputs generated through the Models and/or any Derivatives, including for ensuring that such Outputs are used in a manner that is non-infringing and otherwise compliant with all applicable laws, rules and regulations.
|
| 21 |
+
|
| 22 |
+
3. Distribution. Subject to this License, you may Distribute copies of the CircleStone Model and/or Derivatives made by you, under the following conditions:
|
| 23 |
+
- a. you must make available a copy of this License to third-party recipients of the CircleStone Models and/or Derivatives you Distribute, and specify that any rights to use the CircleStone Models and/or Derivatives shall be directly granted by Company to said third-party recipients pursuant to this License;
|
| 24 |
+
- b. you must prominently display the following notice alongside the Distribution of the CircleStone Model or Derivative (such as via a “Notice” text file distributed as part of such CircleStone Model or Derivative) (the “Attribution Notice”):
|
| 25 |
+
|
| 26 |
+
“The CircleStone Model is licensed by CircleStone Labs LLC under the CircleStone Non-Commercial License. Copyright CircleStone Labs LLC.
|
| 27 |
+
IN NO EVENT SHALL CIRCLESTONE LABS LLC BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.”
|
| 28 |
+
|
| 29 |
+
- c. with respect to each licensee who purchases a commercial license to the Models, you agree that such licensee shall have the right to exercise such commercial license with respect to all Derivatives developed by you pursuant to the same terms and conditions agreed by the Company and such commercial licensee with respect to the Models; provided, that, you will not be entitled to receive any royalty fees, license fees or other remuneration in connection with the commercial licensee’s use of your Derivatives under such commercial license, and you hereby waive all right to receive any consideration in connection therewith;
|
| 30 |
+
- d. in the case of Distribution of Derivatives made by you: (i) you must also include in the Attribution Notice a statement that you have modified the applicable CircleStone Model; (ii) any terms and conditions you impose on any third-party recipients relating to Derivatives made by or for you shall neither limit such third-party recipients’ use of the CircleStone Model or any Derivatives made by or for Company in accordance with this License nor conflict with any of its terms and conditions and must include disclaimer of warranties and limitation of liability provisions that are at least as protective of Company as those set forth herein; and (iii) you must not misrepresent or imply, through any means, that the Derivatives made by or for you and/or any modified version of the CircleStone Model you Distribute under your name and responsibility is an official product of the Company or has been endorsed, approved or validated by the Company, unless you are authorized by Company to do so in writing; and
|
| 31 |
+
|
| 32 |
+
4. Restrictions. You will not, and will not permit, assist or cause any third party to
|
| 33 |
+
- a. use, modify, copy, reproduce, create Derivatives of, or Distribute the CircleStone Model (or any Derivative thereof, or any data produced by the CircleStone Model), in whole or in part, (i) for any commercial or production purposes (with the exception that Outputs may be used commercially as per 2(d)), (ii) in any manner that infringes, misappropriates, or otherwise violates (or is likely to infringe, misappropriate, or otherwise violate) any third party’s legal rights, including rights of publicity or “digital replica” rights, (iii) in any unlawful, fraudulent, defamatory, or abusive activity, (iv) to generate unlawful content, including child sexual abuse material, or non-consensual intimate images; or (v) in any manner that violates any applicable laws, rules, regulations, directives, or governmental requirements;
|
| 34 |
+
- b. alter or remove copyright and other proprietary notices which appear on or in any portion of the CircleStone Model;
|
| 35 |
+
- c. utilize any equipment, device, software, or other means to circumvent or remove any security or protection used by Company in connection with the CircleStone Model, or to circumvent or remove any usage restrictions, or to enable functionality disabled by CircleStone Model;
|
| 36 |
+
- d. offer or impose any terms on the CircleStone Model that alter, restrict, or are inconsistent with the terms of this License; and
|
| 37 |
+
- e. directly or indirectly Distribute, export, or otherwise transfer CircleStone Model (i) to any individual, entity, or country prohibited by any applicable U.S. and non-U.S. export control and trade sanctions laws (“Export Laws”); (ii) to anyone on U.S. or non-U.S. government restricted parties lists; (iii) for any purpose prohibited by Export Laws, including nuclear, chemical or biological weapons, or missile technology applications; or (iv) use or download CircleStone Model if you or they are (a) located in a comprehensively sanctioned jurisdiction, (b) currently listed on any U.S. or non-U.S. restricted parties list, or (c) for any purpose prohibited by Export Laws.
|
| 38 |
+
|
| 39 |
+
5. DISCLAIMERS. THE CIRCLESTONE MODELS ARE PROVIDED “AS IS” AND “WITH ALL FAULTS” WITH NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. COMPANY EXPRESSLY DISCLAIMS ALL REPRESENTATIONS AND WARRANTIES, EXPRESS OR IMPLIED, WHETHER BY STATUTE, CUSTOM, USAGE OR OTHERWISE AS TO ANY MATTERS RELATED TO THE CIRCLESTONE MODELS, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, SATISFACTORY QUALITY, OR NON-INFRINGEMENT. COMPANY MAKES NO WARRANTIES OR REPRESENTATIONS THAT THE CIRCLESTONE MODELS WILL BE ERROR FREE OR FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS, OR PRODUCE ANY PARTICULAR RESULTS.
|
| 40 |
+
|
| 41 |
+
6. LIMITATION OF LIABILITY. TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL COMPANY BE LIABLE TO YOU OR YOUR EMPLOYEES, AFFILIATES, USERS, OFFICERS OR DIRECTORS (A) UNDER ANY THEORY OF LIABILITY, WHETHER BASED IN CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY, WARRANTY, OR OTHERWISE UNDER THIS LICENSE, OR (B) FOR ANY INDIRECT, CONSEQUENTIAL, EXEMPLARY, INCIDENTAL, PUNITIVE OR SPECIAL DAMAGES OR LOST PROFITS, EVEN IF COMPANY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE CIRCLESTONE MODELS, THEIR CONSTITUENT COMPONENTS, AND ANY OUTPUT (COLLECTIVELY, “MODEL MATERIALS”) ARE NOT DESIGNED OR INTENDED FOR USE IN ANY APPLICATION OR SITUATION WHERE FAILURE OR FAULT OF THE MODEL MATERIALS COULD REASONABLY BE ANTICIPATED TO LEAD TO SERIOUS INJURY OF ANY PERSON, INCLUDING POTENTIAL DISCRIMINATION OR VIOLATION OF AN INDIVIDUAL’S PRIVACY RIGHTS, OR TO SEVERE PHYSICAL, PROPERTY, OR ENVIRONMENTAL DAMAGE (EACH, A “HIGH-RISK USE”). IF YOU ELECT TO USE ANY OF THE MODEL MATERIALS FOR A HIGH-RISK USE, YOU DO SO AT YOUR OWN RISK. YOU AGREE TO DESIGN AND IMPLEMENT APPROPRIATE DECISION-MAKING AND RISK-MITIGATION PROCEDURES AND POLICIES IN CONNECTION WITH A HIGH-RISK USE SUCH THAT EVEN IF THERE IS A FAILURE OR FAULT IN ANY OF THE MODEL MATERIALS, THE SAFETY OF PERSONS OR PROPERTY AFFECTED BY THE ACTIVITY STAYS AT A LEVEL THAT IS REASONABLE, APPROPRIATE, AND LAWFUL FOR THE FIELD OF THE HIGH-RISK USE.
|
| 42 |
+
|
| 43 |
+
7. INDEMNIFICATION. You will indemnify, defend and hold harmless Company and our subsidiaries and affiliates, and each of our respective shareholders, directors, officers, employees, agents, successors, and assigns (collectively, the “Company Parties”) from and against any losses, liabilities, damages, fines, penalties, and expenses (including reasonable attorneys’ fees) incurred by any Company Party in connection with any claim, demand, allegation, lawsuit, proceeding, or investigation (collectively, “Claims”) arising out of or related to (a) your access to or use of the CircleStone Models (including in connection with any Output, results or data generated from such access or use), including any High-Risk Use; (b) your violation of this License; or (c) your violation, misappropriation or infringement of any rights of another (including intellectual property or other proprietary rights and privacy rights). You will promptly notify the Company Parties of any such Claims, and cooperate with Company Parties in defending such Claims. You will also grant the Company Parties sole control of the defense or settlement, at Company’s sole option, of any Claims. This indemnity is in addition to, and not in lieu of, any other indemnities or remedies set forth in a written agreement between you and Company or the other Company Parties.
|
| 44 |
+
|
| 45 |
+
8. Termination; Survival.
|
| 46 |
+
- a. This License will automatically terminate upon any breach by you of the terms of this License.
|
| 47 |
+
- b. If you initiate any legal action or proceedings against Company or any other entity (including a cross-claim or counterclaim in a lawsuit), alleging that the CircleStone Models, any Derivative, or any part thereof, infringe upon intellectual property or other rights owned or licensable by you, then any licenses granted to you under this License will immediately terminate as of the date such legal action or claim is filed or initiated.
|
| 48 |
+
- c. Upon termination of this License, you must cease all use, access or Distribution of the CircleStone Model and any Derivatives. The following sections survive termination of this License: 2(c), 2(d), 4-11.
|
| 49 |
+
|
| 50 |
+
9. Third Party Materials. The CircleStone Models may contain third-party software or other components (including free and open source software) (all of the foregoing, “Third Party Materials”), which are subject to the license terms of the respective third-party licensors. Your dealings or correspondence with third parties and your use of or interaction with any Third Party Materials are solely between you and the third party. Company does not control or endorse, and makes no representations or warranties regarding, any Third Party Materials, and your access to and use of such Third Party Materials are at your own risk.
|
| 51 |
+
|
| 52 |
+
10. Trademarks. You have not been granted any trademark license as part of this License and may not use any name, logo or trademark associated with Company without the prior written permission of Company, except to the extent necessary to make the reference required in the Attribution Notice as specified above or as is reasonably necessary in describing the CircleStone Model and its creators.
|
| 53 |
+
|
| 54 |
+
11. General. This License will be governed and construed under the laws of the State of Delaware without regard to conflicts of law provisions. If any provision or part of a provision of this License is unlawful, void or unenforceable, that provision or part of the provision is deemed severed from this License, and will not affect the validity and enforceability of any remaining provisions. The failure of Company to exercise or enforce any right or provision of this License will not operate as a waiver of such right or provision. This License does not confer any third-party beneficiary rights upon any other person or entity. This License, together with the documentation, contains the entire understanding between you and Company regarding the subject matter of this License, and supersedes all other written or oral agreements and understandings between you and Company regarding such subject matter. Notwithstanding the foregoing, if you enter into a commercial license with the Company, then such commercial license will supersede this License in all respects.
|
NOTICE.txt
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The CircleStone Model is licensed by CircleStone Labs LLC under the CircleStone Non-Commercial License. Copyright CircleStone Labs LLC.
|
| 2 |
+
IN NO EVENT SHALL CIRCLESTONE LABS LLC BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.
|
| 3 |
+
|
| 4 |
+
Modification notice: anima_ref_adapter_pilot_r32.safetensors is a derivative of the CircleStone Model
|
| 5 |
+
(Anima base v1.0). It is a LoRA trained on images generated by that model, and it modifies the model's
|
| 6 |
+
behaviour when applied. It is not an official product of CircleStone Labs LLC and is not endorsed,
|
| 7 |
+
approved or validated by it.
|
| 8 |
+
|
| 9 |
+
These weights are distributed under the CircleStone Non-Commercial License (LICENSE.md). Your rights to
|
| 10 |
+
use the CircleStone Model and this derivative come directly from CircleStone Labs LLC under that license.
|
| 11 |
+
THE WEIGHTS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND; IN NO EVENT SHALL THE AUTHOR OR
|
| 12 |
+
CIRCLESTONE LABS LLC BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THEIR USE.
|
README.ja.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<div align="center">
|
| 2 |
+
|
| 3 |
+
<img src="showcase/banner.jpg" width="100%" alt="Anima Reference Adapter v2">
|
| 4 |
+
|
| 5 |
+
# Anima Reference Adapter (v2)
|
| 6 |
+
|
| 7 |
+
**参照画像からキャラクターと画風を、プロンプトからポーズ・場所・構図を。**
|
| 8 |
+
|
| 9 |
+
[](https://huggingface.co/ElectronGirl/anima-ref-adapter)
|
| 10 |
+
[](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter)
|
| 11 |
+
[](https://github.com/ElectronGirl/anima-ref-adapter-research)
|
| 12 |
+
[](https://ko-fi.com/electrongirl)
|
| 13 |
+
|
| 14 |
+
[ショーケース](#ショーケース) · [クイックスタート](#クイックスタート) · [使い方ガイド](guide.ja.md) · [速度](#速度と互換性) · [学習コード](https://github.com/ElectronGirl/anima-ref-adapter-research)
|
| 15 |
+
|
| 16 |
+
[English](README.md) · [한국어](README.ko.md) · **日本語**
|
| 17 |
+
|
| 18 |
+
</div>
|
| 19 |
+
|
| 20 |
+
<br>
|
| 21 |
+
|
| 22 |
+
[Anima](https://huggingface.co/circlestone-labs/Anima) に参照画像1枚と、シーンだけを書いたプロンプトを渡すと、
|
| 23 |
+
アダプターは**誰を**描くか(髪、目、衣装、アクセサリー)と、**どう**描くかの多くを参照画像から取り込みます。
|
| 24 |
+
**ポーズ、背景、構図はプロンプトに従います。** キャラクター名や絵師・衣装のタグは不要なので、オリジナル
|
| 25 |
+
キャラクターにも使えます。参照画像を2枚並べれば、2人のキャラクターを1枚に描けます。
|
| 26 |
+
|
| 27 |
+
> **通常の LoRA ではありません。** **[ElectronGirl/ComfyUI-Anima-Ref-Adapter](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter)** の **Anima Ref Adapter** ノードが必要です。
|
| 28 |
+
|
| 29 |
+
> **資金不足のため開発を休止しています。** 現在は追加の学習ができず、予定していたキャラクターと画風を
|
| 30 |
+
> 別々に指定する参照機能は公開できていません。学習コード、データ生成コード、実験記録は
|
| 31 |
+
> **[anima-ref-adapter-research](https://github.com/ElectronGirl/anima-ref-adapter-research)** で公開しています。追加学習の支援は **[Ko-fi](https://ko-fi.com/electrongirl)** からお願いします。
|
| 32 |
+
|
| 33 |
+
## v2 の新機能
|
| 34 |
+
|
| 35 |
+
| | |
|
| 36 |
+
|---|---|
|
| 37 |
+
| ⚡ **パイロット版の約2倍の速さ** | RTX PRO 6000 ではサンプリング1ステップあたり 2.1 倍速くなりました。RTX 3060 Ti では 832x1216 の画像1枚が 105 秒から 65 秒になり、参照画像による追加時間は 72 秒から 32 秒に減りました。参照画像の KV を毎ステップ計算し直さず、画像ごとに1回だけ計算してキャッシュします。 |
|
| 38 |
+
| 🧩 **ノード1つ** | **Anima Ref Adapter** ノードを Anima の標準ワークフローに1つ加えるだけで、KSampler をはじめどのサンプラーでも動きます。重みは初回実行時に自動でダウンロードされます。 |
|
| 39 |
+
| 👥 **2人のキャラクター** | 参照画像を2枚並べ、プロンプトにどちらが誰かを書くだけです。 |
|
| 40 |
+
| 📚 **より多くの学習データ** | キャラクター 2,300 人、絵師の画風 1,952 種、画像 15,600 枚で学習しました(パイロット版: 画像 3,600 枚、キャラクター 300 人)。rank 64 です。 |
|
| 41 |
+
|
| 42 |
+
## ショーケース
|
| 43 |
+
|
| 44 |
+
[ノード1つのワークフロー](workflows/anima_ref_adapter.json) を Anima の標準設定で実行した結果です: er_sde、30 steps、
|
| 45 |
+
cfg 4.5、`ref_guidance` 4.5 + APG、プロンプトは `masterpiece, best quality, score_7, safe, 1girl, solo, <シーン>`、ネガティブプロンプトは Anima の
|
| 46 |
+
モデルカードのものです。ほかの LoRA は使っていません。各画像はシード1つだけで、選別していません。ただし
|
| 47 |
+
横になったポーズだけは6枚の中から最も良いものを選びました。
|
| 48 |
+
|
| 49 |
+
### 参照画像1枚
|
| 50 |
+
|
| 51 |
+
<img src="showcase/v2_police.jpg" width="100%" alt="reference and two scenes">
|
| 52 |
+
<sub><code>cowboy shot, sitting, cafe, holding cup, coffee, smile, looking at viewer, indoors, window, day</code> · <code>full body, lying, on side, on bed, head rest, looking at viewer, smile, bedroom, indoors, night, lamp light</code></sub>
|
| 53 |
+
|
| 54 |
+
<img src="showcase/v2_mecha.jpg" width="100%" alt="reference and two scenes">
|
| 55 |
+
<sub><code>full body, flying, from below, sky, clouds, sunlight, dynamic pose, outstretched arm</code> · <code>sitting, on floor, hugging own legs, sleepy, hangar, indoors, dim lighting</code></sub>
|
| 56 |
+
|
| 57 |
+
<img src="showcase/v2_swim.jpg" width="100%" alt="reference and two scenes">
|
| 58 |
+
<sub><code>cowboy shot, beach, ocean, sunset, wind, hand on own hat, sun hat, smile, looking back</code> · <code>upper body, sitting, poolside, legs in water, splashing, laughing, day</code></sub>
|
| 59 |
+
|
| 60 |
+
### 2人のキャラクター
|
| 61 |
+
|
| 62 |
+
参照画像2枚を1枚に横並びでつなぎ(標準の **Image Stitch** ノード)、左と右がそれぞれ誰かを短く書きます。
|
| 63 |
+
`solo` の代わりに `2girls` や `1boy, 1girl` を使い、横長のサイズにします。[ワークフロー](workflows/anima_ref_adapter_two_characters.json)。
|
| 64 |
+
|
| 65 |
+
<img src="showcase/v2_duo_police_mecha.jpg" width="100%" alt="two references and the result">
|
| 66 |
+
<sub><code>2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a mecha girl with aqua hair and mechanical wings, standing side by side, peace sign, smile, city, street, day</code></sub>
|
| 67 |
+
|
| 68 |
+
<img src="showcase/v2_duo_police_swim.jpg" width="100%" alt="two references and the result">
|
| 69 |
+
<sub><code>2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a girl with short black hair in a blue frilled bikini, sitting together on a bench, eating ice cream, park, day</code></sub>
|
| 70 |
+
|
| 71 |
+
<img src="showcase/v2_duo_mecha_swim.jpg" width="100%" alt="two references and the result">
|
| 72 |
+
<sub><code>2girls, the girl on the left is a mecha girl with aqua hair and mechanical wings, the girl on the right is a girl with short black hair in a blue frilled bikini, high five, beach, ocean, day</code></sub>
|
| 73 |
+
|
| 74 |
+
## クイックスタート
|
| 75 |
+
|
| 76 |
+
```bash
|
| 77 |
+
cd ComfyUI/custom_nodes
|
| 78 |
+
git clone https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter.git
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
1. Anima base v1.0、Qwen3-0.6B テキストエンコーダー、Qwen-Image VAE を
|
| 82 |
+
[circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima) から入手します。Anima を使うときと同じです。
|
| 83 |
+
2. ComfyUI を再起動し、[`workflows/anima_ref_adapter.json`](workflows/anima_ref_adapter.json) を開きます。Anima の
|
| 84 |
+
text-to-image ワークフローにノードを1つ加えたもので、ほかのカスタムノードは不要です。
|
| 85 |
+
3. 参照画像を読み込み、シーンだけを書いたプロンプトを入力して実行します。初回は `anima_ref_adapter_v2_r64.safetensors`(183MB)を
|
| 86 |
+
[Hugging Face](https://huggingface.co/ElectronGirl/anima-ref-adapter) から `ComfyUI/models/loras/` にダウンロードします。手動で入れる場合は
|
| 87 |
+
[このファイル](https://huggingface.co/ElectronGirl/anima-ref-adapter/blob/main/anima_ref_adapter_v2_r64.safetensors) を同じフォルダに置いてください。
|
| 88 |
+
|
| 89 |
+
**自作のワークフローでは**、**Anima Ref Adapter** をモデル(ほかの LoRA の後)とサンプラーの間に置き、VAE と
|
| 90 |
+
参照画像をつなぎます。
|
| 91 |
+
|
| 92 |
+
プロンプトの書き方、設定、トラブルシューティングまで順に説明した **[使い方ガイド](guide.ja.md)** があります。
|
| 93 |
+
|
| 94 |
+
## 速度と互換性
|
| 95 |
+
|
| 96 |
+
RTX 3060 Ti 8GB(fp16)、832x1216、参照画像1枚、2回測った速いほう:
|
| 97 |
+
|
| 98 |
+
| 設定 | 画像1枚 |
|
| 99 |
+
|---|---|
|
| 100 |
+
| Anima base、er_sde 30 steps、cfg 4.5、**参照画像なし** | 33 秒 |
|
| 101 |
+
| + パイロット版アダプター、`ref_guidance` 4.5 | 105 秒 |
|
| 102 |
+
| **+ v2 アダプター**、`ref_guidance` 4.5 | **65-67** 秒 |
|
| 103 |
+
| `ref_guidance` 1(追加のモデル呼び出しなし) | 50 秒 |
|
| 104 |
+
| + SageAttention([KJNodes](https://github.com/kijai/ComfyUI-KJNodes) Patch Sage Attention) | 62 秒 |
|
| 105 |
+
| + EasyCache(標準ノード) | 63 秒 |
|
| 106 |
+
| `ref_end` 0.6 | 62 秒 |
|
| 107 |
+
| **turbo LoRA**(strength 1)、10 steps、cfg 1、`ref_guidance` 1 | **11** 秒 |
|
| 108 |
+
|
| 109 |
+
<img src="figures/v2_compat.jpg" width="100%" alt="speed settings with the same seed">
|
| 110 |
+
|
| 111 |
+
- SageAttention、EasyCache、`ref_end` 0.6 は、この GPU でそれぞれ約7%速くなり、画像はほぼ同じです。
|
| 112 |
+
- Anima base 用の **turbo LoRA**(検証したファイル: `anima-turbo-lora-v0.2`)はアダプターの前に置きます。キャラクターは
|
| 113 |
+
保たれますが、絵が turbo 特有の画風に寄るため、参照画像の画風は反映されにくくなります。
|
| 114 |
+
- 未検証: Anima-Turbo・Anima-Aesthetic の完全なモデル、SamplerSPEED、torch.compile。
|
| 115 |
+
|
| 116 |
+
<details>
|
| 117 |
+
<summary>turbo LoRA で作ったショーケース全体(10 steps、cfg 1)</summary>
|
| 118 |
+
|
| 119 |
+
<img src="figures/v2_turbo.jpg" width="100%" alt="turbo LoRA">
|
| 120 |
+
|
| 121 |
+
</details>
|
| 122 |
+
|
| 123 |
+
## 推奨設定
|
| 124 |
+
|
| 125 |
+
| | 推奨値 | 説明 |
|
| 126 |
+
|---|---|---|
|
| 127 |
+
| ベースモデル | Anima base v1.0 | アダプターはこのモデルで学習しました。turbo LoRA も動作します。 |
|
| 128 |
+
| サンプラー | 何でも可。er_sde か Euler、30 steps、`simple` | アダプターなしで Anima を使うときと同じです。 |
|
| 129 |
+
| `cfg` | 4.5 | テキストのガイダンスです。turbo LoRA を使うときは 1 です。 |
|
| 130 |
+
| `ref_guidance` | 4.5 | 1 は速いが弱く、高いほどキャラクターの細部と画風が強くなり、彩度も上がります。 |
|
| 131 |
+
| `correction` | `apg` | または `rescale` |
|
| 132 |
+
| `ref_end` | 1.0 | 0.6 前後でほぼ同じ画像をより速く得ら���ます。 |
|
| 133 |
+
| プロンプト | 品質 + `1girl`/`1boy` + `solo` + シーンのタグ | キャラクター名、絵師タグ、外見のタグは入れません。外見のタグが少しなら問題ありません。 |
|
| 134 |
+
| ほかの LoRA | アダプターノードの前 | |
|
| 135 |
+
|
| 136 |
+
## 仕組み
|
| 137 |
+
|
| 138 |
+
参照画像のトークンは自分自身だけを見てテキストの cross-attention を飛ばし、生成中の画像のトークンは自分自身と
|
| 139 |
+
参照画像の両方を見るように学習しています(非対称 attention)。そのため参照画像側の計算はステップ、プロンプト、
|
| 140 |
+
CFG の分岐に依存せず、ブロックごとの key/value を画像1枚につき1回だけ計算して再利用します。参照画像は生成画像の
|
| 141 |
+
格子の外側にずらした RoPE 座標に置かれるため、ポーズをそのまま写さず、外見として読み取られます。詳しくは
|
| 142 |
+
[English README](README.md#how-it-works) と [技術レポート](report.md)(パイロット版)をご覧ください。
|
| 143 |
+
|
| 144 |
+
## パイロット版(v1)
|
| 145 |
+
|
| 146 |
+
パイロット版(`anima_ref_adapter_pilot_r32.safetensors`、rank 32)も引き続きダウンロードでき、
|
| 147 |
+
[advanced ワークフロー](workflows/anima_ref_adapter_advanced.json) で使えます。パイロット版のギャラリーと、学習から除外した
|
| 148 |
+
キャラクターの結果は [English README](README.md#pilot-v1) にあります。
|
| 149 |
+
|
| 150 |
+
## 制限
|
| 151 |
+
|
| 152 |
+
- キャラクターは画風よりずっとよく再現されます。筆致の強い画風はほとんど再現されません。
|
| 153 |
+
- 小さな模様、傷、イヤリング、珍しい肌の色は抜けやすく、大きな衣装は色が変わることがあります。
|
| 154 |
+
- 参照キャラクターがシーンの中に物(ポスターなど)として再登場することがあります。
|
| 155 |
+
- Anima が生成した画像だけで学習しているため、ベースモデルの偏りをそのまま受け継いでいます。
|
| 156 |
+
|
| 157 |
+
絵師名はデータ生成用のタグとしてのみ使いました。絵師を尊重してください。模倣した絵をその絵師の作品として公開せず、[LICENSE.md](LICENSE.md) 第4条の利用制限を守ってください。
|
| 158 |
+
|
| 159 |
+
## ロードマップ
|
| 160 |
+
|
| 161 |
+
| | |
|
| 162 |
+
|---|---|
|
| 163 |
+
| 参照画像1枚からキャラクターと画風 | ✅ パイロット版、v2 |
|
| 164 |
+
| 参照画像をキャッシュする非対称 attention | ✅ v2 |
|
| 165 |
+
| 参照画像2枚を並べて2人のキャラクター | ✅ v2 |
|
| 166 |
+
| キャラクターと画風を別々に指定する参照 | ⏸️ 休止(実験のみ) |
|
| 167 |
+
| 高解像度での学習、筆致の強い画風と細部の改善 | ⏸️ 休止 |
|
| 168 |
+
|
| 169 |
+
## 支援
|
| 170 |
+
|
| 171 |
+
資金不足のため開発を休止しています。このアダプターが役に立ったら、**[Ko-fi](https://ko-fi.com/electrongirl)** から追加学習(より長い学習、キャラクターと画風を別々に指定する参照)を支援できます。
|
| 172 |
+
|
| 173 |
+
## ライセンス
|
| 174 |
+
|
| 175 |
+
**非商用です。** この重みは CircleStone Model(Anima base v1.0)を改変した派生物で、CircleStone Non-Commercial
|
| 176 |
+
License([LICENSE.md](LICENSE.md)、[NOTICE.txt](NOTICE.txt))のもとで配布しています。独立したプロジェクトであり、
|
| 177 |
+
CircleStone Labs の公式製品ではなく、CircleStone Labs の保証も受けていません。法的な効力は英語の原文にあります。
|
README.ko.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<div align="center">
|
| 2 |
+
|
| 3 |
+
<img src="showcase/banner.jpg" width="100%" alt="Anima Reference Adapter v2">
|
| 4 |
+
|
| 5 |
+
# Anima Reference Adapter (v2)
|
| 6 |
+
|
| 7 |
+
**레퍼런스 이미지에서 캐릭터와 그림체를, 프롬프트에서 자세·장소·구도를.**
|
| 8 |
+
|
| 9 |
+
[](https://huggingface.co/ElectronGirl/anima-ref-adapter)
|
| 10 |
+
[](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter)
|
| 11 |
+
[](https://github.com/ElectronGirl/anima-ref-adapter-research)
|
| 12 |
+
[](https://ko-fi.com/electrongirl)
|
| 13 |
+
|
| 14 |
+
[쇼케이스](#쇼케이스) · [빠른 시작](#빠른-시작) · [사용 가이드](guide.ko.md) · [속도](#속도와-호환성) · [학습 코드](https://github.com/ElectronGirl/anima-ref-adapter-research)
|
| 15 |
+
|
| 16 |
+
[English](README.md) · **한국어** · [日本語](README.ja.md)
|
| 17 |
+
|
| 18 |
+
</div>
|
| 19 |
+
|
| 20 |
+
<br>
|
| 21 |
+
|
| 22 |
+
[Anima](https://huggingface.co/circlestone-labs/Anima)에 레퍼런스 이미지 한 장과 장면만 적은 프롬프트를
|
| 23 |
+
주면, 어댑터가 **누구를** 그리는지(머리, 눈, 의상, 장신구)와 **어떻게** 그리는지의 상당 부분을 레퍼런스에서
|
| 24 |
+
가져옵니다. **자세, 배경, 구도는 프롬프트를 따릅니다.** 캐릭터 이름이나 작가·의상 태그가 필요 없으므로
|
| 25 |
+
오리지널 캐릭터에도 쓸 수 있습니다. 레퍼런스 두 장을 나란히 두면 두 캐릭터를 한 장에 그릴 수 있습니다.
|
| 26 |
+
|
| 27 |
+
> **일반 LoRA가 아닙니다.** **[ElectronGirl/ComfyUI-Anima-Ref-Adapter](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter)**의 **Anima Ref Adapter** 노드가 필요합니다.
|
| 28 |
+
|
| 29 |
+
> **자금 부족으로 개발이 중단되었습니다.** 지금은 추가 학습을 할 수 없고, 계획했던 캐릭터·그림체 분리
|
| 30 |
+
> 레퍼런스는 공개하지 못했습니다. 학습 코드와 데이터 생성 코드, 실험 기록은
|
| 31 |
+
> **[anima-ref-adapter-research](https://github.com/ElectronGirl/anima-ref-adapter-research)**에 공개되어 있습니다. 추가 학습을 후원하려면 **[Ko-fi](https://ko-fi.com/electrongirl)**를 이용해 주세요.
|
| 32 |
+
|
| 33 |
+
## v2의 새로운 점
|
| 34 |
+
|
| 35 |
+
| | |
|
| 36 |
+
|---|---|
|
| 37 |
+
| ⚡ **파일럿보다 약 2배 빠름** | RTX PRO 6000에서 샘플링 스텝당 2.1배 빠릅니다. RTX 3060 Ti에서는 832x1216 이미지 한 장이 105초에서 65초로 줄었고, 레퍼런스 때문에 늘어나는 시간은 72초에서 32초로 줄었습니다. 레퍼런스의 KV를 스텝마다 다시 계산하지 않고 이미지당 한 번만 계산해 캐시합니다. |
|
| 38 |
+
| 🧩 **노드 하나** | **Anima Ref Adapter** 노드 하나를 Anima 기본 워크플로에 끼우면 KSampler를 비롯한 어떤 샘플러와도 동작합니다. 가중치는 처음 실행할 때 자동으로 받아옵니다. |
|
| 39 |
+
| 👥 **두 캐릭터** | 레퍼런스 두 장을 나란히 두고, 프롬프트에 누가 어느 쪽인지 적으면 됩니다. |
|
| 40 |
+
| 📚 **더 많은 학습 데이터** | 캐릭터 2,300명, 작가 그림체 1,952개, 이미지 15,600장으로 학습했습니다(파일럿: 이미지 3,600장, 캐릭터 300명). rank 64입니다. |
|
| 41 |
+
|
| 42 |
+
## 쇼케이스
|
| 43 |
+
|
| 44 |
+
[노드 하나짜리 워크플로](workflows/anima_ref_adapter.json)를 Anima 기본 설정으로 돌린 결과입니다: er_sde, 30 steps,
|
| 45 |
+
cfg 4.5, `ref_guidance` 4.5 + APG, 프롬프트는 `masterpiece, best quality, score_7, safe, 1girl, solo, <장면>`, 부정 프롬프트는 Anima 모델 카드의 것을
|
| 46 |
+
썼습니다. 다른 LoRA는 쓰지 않았습니다. 이미지마다 시드 하나만 썼고 골라내지 않았습니다. 단, 누운 자세는 6장 중
|
| 47 |
+
가장 나은 것을 골랐습니다.
|
| 48 |
+
|
| 49 |
+
### 레퍼런스 한 장
|
| 50 |
+
|
| 51 |
+
<img src="showcase/v2_police.jpg" width="100%" alt="reference and two scenes">
|
| 52 |
+
<sub><code>cowboy shot, sitting, cafe, holding cup, coffee, smile, looking at viewer, indoors, window, day</code> · <code>full body, lying, on side, on bed, head rest, looking at viewer, smile, bedroom, indoors, night, lamp light</code></sub>
|
| 53 |
+
|
| 54 |
+
<img src="showcase/v2_mecha.jpg" width="100%" alt="reference and two scenes">
|
| 55 |
+
<sub><code>full body, flying, from below, sky, clouds, sunlight, dynamic pose, outstretched arm</code> · <code>sitting, on floor, hugging own legs, sleepy, hangar, indoors, dim lighting</code></sub>
|
| 56 |
+
|
| 57 |
+
<img src="showcase/v2_swim.jpg" width="100%" alt="reference and two scenes">
|
| 58 |
+
<sub><code>cowboy shot, beach, ocean, sunset, wind, hand on own hat, sun hat, smile, looking back</code> · <code>upper body, sitting, poolside, legs in water, splashing, laughing, day</code></sub>
|
| 59 |
+
|
| 60 |
+
### 두 캐릭터
|
| 61 |
+
|
| 62 |
+
레퍼런스 두 장을 한 이미지에 나란히 붙이고(기본 **Image Stitch** 노드), 왼쪽과 오른쪽이 각각 누구인지 몇 단어로
|
| 63 |
+
적습니다. `solo` 대신 `2girls`나 `1boy, 1girl`을 쓰고, 가로가 긴 크기를 씁니다. [워크플로](workflows/anima_ref_adapter_two_characters.json).
|
| 64 |
+
|
| 65 |
+
<img src="showcase/v2_duo_police_mecha.jpg" width="100%" alt="two references and the result">
|
| 66 |
+
<sub><code>2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a mecha girl with aqua hair and mechanical wings, standing side by side, peace sign, smile, city, street, day</code></sub>
|
| 67 |
+
|
| 68 |
+
<img src="showcase/v2_duo_police_swim.jpg" width="100%" alt="two references and the result">
|
| 69 |
+
<sub><code>2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a girl with short black hair in a blue frilled bikini, sitting together on a bench, eating ice cream, park, day</code></sub>
|
| 70 |
+
|
| 71 |
+
<img src="showcase/v2_duo_mecha_swim.jpg" width="100%" alt="two references and the result">
|
| 72 |
+
<sub><code>2girls, the girl on the left is a mecha girl with aqua hair and mechanical wings, the girl on the right is a girl with short black hair in a blue frilled bikini, high five, beach, ocean, day</code></sub>
|
| 73 |
+
|
| 74 |
+
## 빠른 시작
|
| 75 |
+
|
| 76 |
+
```bash
|
| 77 |
+
cd ComfyUI/custom_nodes
|
| 78 |
+
git clone https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter.git
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
1. Anima base v1.0, Qwen3-0.6B 텍스트 인코더, Qwen-Image VAE를
|
| 82 |
+
[circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima)에서 받습니다. Anima를 쓸 때와 같습니다.
|
| 83 |
+
2. ComfyUI를 재시작하고 [`workflows/anima_ref_adapter.json`](workflows/anima_ref_adapter.json)을 엽니다. Anima
|
| 84 |
+
text-to-image 워크플로에 노드 하나를 더한 것이며, 다른 커스텀 노드는 필요 없습니다.
|
| 85 |
+
3. 레퍼런스 이미지를 넣고, 장면만 적은 프롬프트를 쓰고, 실행합니다. 처음 실행할 때 `anima_ref_adapter_v2_r64.safetensors`(183MB)를
|
| 86 |
+
[Hugging Face](https://huggingface.co/ElectronGirl/anima-ref-adapter)에서 `ComfyUI/models/loras/`로 받아옵니다. 직접 설치하려면
|
| 87 |
+
[이 파일](https://huggingface.co/ElectronGirl/anima-ref-adapter/blob/main/anima_ref_adapter_v2_r64.safetensors)을 같은 폴더에 넣으면 됩니다.
|
| 88 |
+
|
| 89 |
+
**직접 만든 워크플로에서는** **Anima Ref Adapter**를 모델(다른 LoRA 뒤)과 샘플러 사이에 두고, VAE와 레퍼런스
|
| 90 |
+
이미지를 연결합니다.
|
| 91 |
+
|
| 92 |
+
프롬프트 쓰는 법, 설정, 문제 해결까지 단계별로 정리한 **[사용 가이드](guide.ko.md)**가 있습니다.
|
| 93 |
+
|
| 94 |
+
## 속도와 호환성
|
| 95 |
+
|
| 96 |
+
RTX 3060 Ti 8GB(fp16), 832x1216, 레퍼런스 한 장, 두 번 잰 것 중 빠른 쪽:
|
| 97 |
+
|
| 98 |
+
| 설정 | 이미지 한 장 |
|
| 99 |
+
|---|---|
|
| 100 |
+
| Anima base, er_sde 30 steps, cfg 4.5, **레퍼런스 없음** | 33 초 |
|
| 101 |
+
| + 파일럿 어댑터, `ref_guidance` 4.5 | 105 초 |
|
| 102 |
+
| **+ v2 어댑터**, `ref_guidance` 4.5 | **65-67** 초 |
|
| 103 |
+
| `ref_guidance` 1 (추가 모델 호출 없음) | 50 초 |
|
| 104 |
+
| + SageAttention ([KJNodes](https://github.com/kijai/ComfyUI-KJNodes) Patch Sage Attention) | 62 초 |
|
| 105 |
+
| + EasyCache (기본 노드) | 63 초 |
|
| 106 |
+
| `ref_end` 0.6 | 62 초 |
|
| 107 |
+
| **turbo LoRA**(strength 1), 10 steps, cfg 1, `ref_guidance` 1 | **11** 초 |
|
| 108 |
+
|
| 109 |
+
<img src="figures/v2_compat.jpg" width="100%" alt="speed settings with the same seed">
|
| 110 |
+
|
| 111 |
+
- SageAttention, EasyCache, `ref_end` 0.6은 이 GPU에서 각각 약 7%씩 빨라지고, 그림은 거의 같습니다.
|
| 112 |
+
- Anima base용 **turbo LoRA**(테스트한 파일: `anima-turbo-lora-v0.2`)는 어댑터 앞에 둡니다. 캐릭터는 유지되지만
|
| 113 |
+
그림이 turbo 특유의 화풍 쪽으로 끌려가서, 레퍼런스의 그림체는 덜 반영됩니다.
|
| 114 |
+
- 테스트하지 않은 것: Anima-Turbo·Anima-Aesthetic 전체 모델, SamplerSPEED, torch.compile.
|
| 115 |
+
|
| 116 |
+
<details>
|
| 117 |
+
<summary>turbo LoRA로 만든 쇼케이스 전체 (10 steps, cfg 1)</summary>
|
| 118 |
+
|
| 119 |
+
<img src="figures/v2_turbo.jpg" width="100%" alt="turbo LoRA">
|
| 120 |
+
|
| 121 |
+
</details>
|
| 122 |
+
|
| 123 |
+
## 권장 설정
|
| 124 |
+
|
| 125 |
+
| | 권장값 | 설명 |
|
| 126 |
+
|---|---|---|
|
| 127 |
+
| 기본 모델 | Anima base v1.0 | 어댑터를 이 모델로 학습했습니다. turbo LoRA도 동작합니다. |
|
| 128 |
+
| 샘플러 | 아무거나; er_sde나 Euler, 30 steps, `simple` | 어댑터 없이 Anima를 쓸 때와 같습니다. |
|
| 129 |
+
| `cfg` | 4.5 | 텍스트 가이던스입니다. turbo LoRA를 쓸 때는 1입니다. |
|
| 130 |
+
| `ref_guidance` | 4.5 | 1이면 빠르지만 약하고, 높을수록 캐릭터 세부와 그림체가 강해지며 채도도 올라갑니다. |
|
| 131 |
+
| `correction` | `apg` | 또는 `rescale` |
|
| 132 |
+
| `ref_end` | 1.0 | 0.6 정도면 거의 같은 그림을 더 빨리 얻습니다. |
|
| 133 |
+
| 프롬프트 | 퀄리티 + `1girl`/`1boy` + `solo` + 장면 태그 | 캐릭터 이름, 작가 태그, 외모 태그는 넣지 않습니다. 외모 태그 몇 개는 괜찮습니다. |
|
| 134 |
+
| 다른 LoRA | 어댑터 노드 앞 | |
|
| 135 |
+
|
| 136 |
+
## 작동 원리
|
| 137 |
+
|
| 138 |
+
레퍼런스 토큰은 자기 자신만 보고 텍스트 cross-attention을 건너뛰도록, 생성 중인 이미지의 토큰은 자기 자신과
|
| 139 |
+
레퍼런스를 함께 보도록 학습했습니다(비대칭 attention). 그래서 ��퍼런스 쪽 계산은 스텝·프롬프트·CFG 분기와
|
| 140 |
+
무관하고, 블록별 key/value를 이미지당 한 번만 계산해 재사용합니다. 레퍼런스는 생성 이미지 격자 바깥으로 밀린
|
| 141 |
+
RoPE 좌표에 놓이기 때문에, 자세를 그대로 베끼지 않고 외형으로 읽힙니다. 자세한 내용은
|
| 142 |
+
[English README](README.md#how-it-works)와 [기술 보고서](report.md)(파일럿)를 참고해 주세요.
|
| 143 |
+
|
| 144 |
+
## 파일럿 (v1)
|
| 145 |
+
|
| 146 |
+
파일럿(`anima_ref_adapter_pilot_r32.safetensors`, rank 32)도 계속 받을 수 있고,
|
| 147 |
+
[advanced 워크플로](workflows/anima_ref_adapter_advanced.json)로 쓸 수 있습니다. 파일럿 갤러리와 학습에서 뺀 캐릭터의
|
| 148 |
+
결과는 [English README](README.md#pilot-v1)에 있습니다.
|
| 149 |
+
|
| 150 |
+
## 한계
|
| 151 |
+
|
| 152 |
+
- 캐릭터는 그림체보다 훨씬 잘 옮겨집니다. 붓질이 강한 그림체는 거의 옮겨지지 않습니다.
|
| 153 |
+
- 작은 무늬, 흉터, 귀걸이, 특이한 피부색은 자주 빠지고, 큰 의상은 색이 달라질 수 있습니다.
|
| 154 |
+
- 레퍼런스 캐릭터가 장면 안에 사물(포스터 등)로 다시 나타날 때가 있습니다.
|
| 155 |
+
- Anima가 생성한 이미지로만 학습했으므로 기본 모델의 편향을 그대로 가집니다.
|
| 156 |
+
|
| 157 |
+
작가 이름은 데이터 생성용 태그로만 썼습니다. 작가를 존중해 주세요. 모방한 그림을 그 작가의 작품인 것처럼 내놓지 말고, [LICENSE.md](LICENSE.md) 4조의 사용 제한을 지켜 주세요.
|
| 158 |
+
|
| 159 |
+
## 로드맵
|
| 160 |
+
|
| 161 |
+
| | |
|
| 162 |
+
|---|---|
|
| 163 |
+
| 레퍼런스 한 장에서 캐릭터와 그림체 | ✅ 파일럿, v2 |
|
| 164 |
+
| 레퍼런스 캐시를 쓰는 비대칭 attention | ✅ v2 |
|
| 165 |
+
| 레퍼런스 두 장을 나란히 두어 두 캐릭터 | ✅ v2 |
|
| 166 |
+
| 캐릭터·그림체 분리 레퍼런스 | ⏸️ 중단 (실험만 진행) |
|
| 167 |
+
| 고해상도 학습, 붓질이 강한 그림체와 세부 개선 | ⏸️ 중단 |
|
| 168 |
+
|
| 169 |
+
## 후원
|
| 170 |
+
|
| 171 |
+
자금 부족으로 개발이 중단되었습니다. 이 어댑터가 유용했다면 **[Ko-fi](https://ko-fi.com/electrongirl)**에서 추가 학습(더 긴 학습, 캐릭터·그림체 분리 레퍼런스)을 후원할 수 있습니다.
|
| 172 |
+
|
| 173 |
+
## 라이선스
|
| 174 |
+
|
| 175 |
+
**비상업용입니다.** 이 가중치는 CircleStone Model(Anima base v1.0)을 수정한 파생물이며, CircleStone
|
| 176 |
+
Non-Commercial License([LICENSE.md](LICENSE.md), [NOTICE.txt](NOTICE.txt))로 배포합니다. 독립 프로젝트이며
|
| 177 |
+
CircleStone Labs의 공식 제품이 아니고, CircleStone Labs의 보증을 받지 않았습니다. 법적 효력은 영어 원문에 있습니다.
|
README.md
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: circlestone-labs-non-commercial-license
|
| 4 |
+
license_link: LICENSE.md
|
| 5 |
+
base_model: circlestone-labs/Anima
|
| 6 |
+
base_model_relation: adapter
|
| 7 |
+
pipeline_tag: text-to-image
|
| 8 |
+
tags:
|
| 9 |
+
- lora
|
| 10 |
+
- anima
|
| 11 |
+
- comfyui
|
| 12 |
+
- reference-image
|
| 13 |
+
- character-consistency
|
| 14 |
+
- style-transfer
|
| 15 |
+
- anime
|
| 16 |
+
widget:
|
| 17 |
+
- text: "masterpiece, best quality, score_7, safe, 1girl, solo, cowboy shot, sitting, cafe, holding cup, coffee, smile, looking at viewer, indoors, window, day"
|
| 18 |
+
output:
|
| 19 |
+
url: showcase/v2/police_cafe.jpg
|
| 20 |
+
- text: "masterpiece, best quality, score_7, safe, 1girl, solo, full body, lying, on side, on bed, head rest, looking at viewer, smile, bedroom, indoors, night, lamp light"
|
| 21 |
+
output:
|
| 22 |
+
url: showcase/v2/police_lie.jpg
|
| 23 |
+
- text: "masterpiece, best quality, score_7, safe, 1girl, solo, full body, flying, from below, sky, clouds, sunlight, dynamic pose, outstretched arm"
|
| 24 |
+
output:
|
| 25 |
+
url: showcase/v2/mecha_fly.jpg
|
| 26 |
+
- text: "masterpiece, best quality, score_7, safe, 1girl, solo, sitting, on floor, hugging own legs, sleepy, hangar, indoors, dim lighting"
|
| 27 |
+
output:
|
| 28 |
+
url: showcase/v2/mecha_sit.jpg
|
| 29 |
+
- text: "masterpiece, best quality, score_7, safe, 1girl, solo, cowboy shot, beach, ocean, sunset, wind, hand on own hat, sun hat, smile, looking back"
|
| 30 |
+
output:
|
| 31 |
+
url: showcase/v2/swim_beach.jpg
|
| 32 |
+
- text: "masterpiece, best quality, score_7, safe, 1girl, solo, upper body, sitting, poolside, legs in water, splashing, laughing, day"
|
| 33 |
+
output:
|
| 34 |
+
url: showcase/v2/swim_pool.jpg
|
| 35 |
+
- text: "masterpiece, best quality, score_7, safe, 2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a mecha girl with aqua hair and mechanical wings, standing side by side, peace sign, smile, city, street, day"
|
| 36 |
+
output:
|
| 37 |
+
url: showcase/v2/duo_police_mecha.jpg
|
| 38 |
+
- text: "masterpiece, best quality, score_7, safe, 2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a girl with short black hair in a blue frilled bikini, sitting together on a bench, eating ice cream, park, day"
|
| 39 |
+
output:
|
| 40 |
+
url: showcase/v2/duo_police_swim.jpg
|
| 41 |
+
- text: "masterpiece, best quality, score_7, safe, 2girls, the girl on the left is a mecha girl with aqua hair and mechanical wings, the girl on the right is a girl with short black hair in a blue frilled bikini, high five, beach, ocean, day"
|
| 42 |
+
output:
|
| 43 |
+
url: showcase/v2/duo_mecha_swim.jpg
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
<div align="center">
|
| 47 |
+
|
| 48 |
+
<img src="showcase/banner.jpg" width="100%" alt="Anima Reference Adapter v2">
|
| 49 |
+
|
| 50 |
+
# Anima Reference Adapter (v2)
|
| 51 |
+
|
| 52 |
+
**Character and style from a reference image. Pose, place and framing from your prompt.**
|
| 53 |
+
|
| 54 |
+
[](https://huggingface.co/ElectronGirl/anima-ref-adapter)
|
| 55 |
+
[](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter)
|
| 56 |
+
[](https://github.com/ElectronGirl/anima-ref-adapter-research)
|
| 57 |
+
[](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/LICENSE)
|
| 58 |
+
[](https://huggingface.co/ElectronGirl/anima-ref-adapter/blob/main/LICENSE.md)
|
| 59 |
+
[](https://ko-fi.com/electrongirl)
|
| 60 |
+
|
| 61 |
+
[Showcase](#showcase) · [Quick start](#quick-start) · [Guide](guide.en.md) · [Speed](#speed-and-compatibility) · [Nodes](#nodes) · [How it works](#how-it-works) · [Training code](https://github.com/ElectronGirl/anima-ref-adapter-research)
|
| 62 |
+
|
| 63 |
+
**English** · [한국어](README.ko.md) · [日本語](README.ja.md)
|
| 64 |
+
|
| 65 |
+
</div>
|
| 66 |
+
|
| 67 |
+
<br>
|
| 68 |
+
|
| 69 |
+
Give [Anima](https://huggingface.co/circlestone-labs/Anima) one reference image and a prompt that describes
|
| 70 |
+
only the scene. The adapter keeps **who** is drawn (hair, eyes, outfit, accessories) and much of **how** it is
|
| 71 |
+
drawn; **pose, background and composition follow the prompt**. No character name, artist tag or outfit tags,
|
| 72 |
+
so it works for original characters too. Two references side by side give two characters in one image.
|
| 73 |
+
|
| 74 |
+
> **This is not a plain LoRA.** It needs the **Anima Ref Adapter** node from
|
| 75 |
+
> **[ElectronGirl/ComfyUI-Anima-Ref-Adapter](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter)**.
|
| 76 |
+
|
| 77 |
+
> **Development is paused for lack of funding.** Further training is not possible for now, and the planned
|
| 78 |
+
> separate character and style references are not released. The training code, data generation and
|
| 79 |
+
> experiment log are public in **[anima-ref-adapter-research](https://github.com/ElectronGirl/anima-ref-adapter-research)**. To support further training:
|
| 80 |
+
> **[Ko-fi](https://ko-fi.com/electrongirl)**.
|
| 81 |
+
|
| 82 |
+
## What's new in v2
|
| 83 |
+
|
| 84 |
+
| | |
|
| 85 |
+
|---|---|
|
| 86 |
+
| ⚡ **About 2x faster than the pilot** | 2.1x per sampling step on an RTX PRO 6000. On an RTX 3060 Ti an 832x1216 image takes 65 s instead of 105 s: the reference adds 32 s instead of 72 s. The reference is encoded once per image instead of at every step. |
|
| 87 |
+
| 🧩 **One node** | **Anima Ref Adapter** drops into the standard Anima workflow and works with KSampler and any other sampler. The weights download on first use. |
|
| 88 |
+
| 👥 **Two characters** | Two references side by side, and a prompt that says who is on which side. |
|
| 89 |
+
| 📚 **More training data** | 15,600 images of 2,300 characters in 1,952 artist styles (pilot: 3,600 images, 300 characters), rank 64. |
|
| 90 |
+
|
| 91 |
+
## Showcase
|
| 92 |
+
|
| 93 |
+
The [one-node workflow](workflows/anima_ref_adapter.json) with Anima's default settings: er_sde, 30 steps, cfg 4.5,
|
| 94 |
+
`ref_guidance` 4.5 with APG, prompt `masterpiece, best quality, score_7, safe, 1girl, solo, <scene>` and the negative prompt from the Anima
|
| 95 |
+
model card. No other LoRAs. One seed per image, not cherry-picked, except the lying pose (the best of six).
|
| 96 |
+
|
| 97 |
+
### One reference
|
| 98 |
+
|
| 99 |
+
<img src="showcase/v2_police.jpg" width="100%" alt="reference and two scenes">
|
| 100 |
+
<sub><code>cowboy shot, sitting, cafe, holding cup, coffee, smile, looking at viewer, indoors, window, day</code> · <code>full body, lying, on side, on bed, head rest, looking at viewer, smile, bedroom, indoors, night, lamp light</code></sub>
|
| 101 |
+
|
| 102 |
+
<img src="showcase/v2_mecha.jpg" width="100%" alt="reference and two scenes">
|
| 103 |
+
<sub><code>full body, flying, from below, sky, clouds, sunlight, dynamic pose, outstretched arm</code> · <code>sitting, on floor, hugging own legs, sleepy, hangar, indoors, dim lighting</code></sub>
|
| 104 |
+
|
| 105 |
+
<img src="showcase/v2_swim.jpg" width="100%" alt="reference and two scenes">
|
| 106 |
+
<sub><code>cowboy shot, beach, ocean, sunset, wind, hand on own hat, sun hat, smile, looking back</code> · <code>upper body, sitting, poolside, legs in water, splashing, laughing, day</code></sub>
|
| 107 |
+
|
| 108 |
+
### Two characters
|
| 109 |
+
|
| 110 |
+
Put the two references side by side in one image (the core **Image Stitch** node), write who is on the left
|
| 111 |
+
and who is on the right with a few words each, use `2girls` or `1boy, 1girl` instead of `solo`, and a
|
| 112 |
+
landscape size. [Workflow](workflows/anima_ref_adapter_two_characters.json).
|
| 113 |
+
|
| 114 |
+
<img src="showcase/v2_duo_police_mecha.jpg" width="100%" alt="two references and the result">
|
| 115 |
+
<sub><code>2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a mecha girl with aqua hair and mechanical wings, standing side by side, peace sign, smile, city, street, day</code></sub>
|
| 116 |
+
|
| 117 |
+
<img src="showcase/v2_duo_police_swim.jpg" width="100%" alt="two references and the result">
|
| 118 |
+
<sub><code>2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a girl with short black hair in a blue frilled bikini, sitting together on a bench, eating ice cream, park, day</code></sub>
|
| 119 |
+
|
| 120 |
+
<img src="showcase/v2_duo_mecha_swim.jpg" width="100%" alt="two references and the result">
|
| 121 |
+
<sub><code>2girls, the girl on the left is a mecha girl with aqua hair and mechanical wings, the girl on the right is a girl with short black hair in a blue frilled bikini, high five, beach, ocean, day</code></sub>
|
| 122 |
+
|
| 123 |
+
## Quick start
|
| 124 |
+
|
| 125 |
+
```bash
|
| 126 |
+
cd ComfyUI/custom_nodes
|
| 127 |
+
git clone https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter.git
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
1. Get Anima base v1.0, the Qwen3-0.6B text encoder and the Qwen-Image VAE from
|
| 131 |
+
[circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima), as for Anima itself.
|
| 132 |
+
2. Restart ComfyUI and open [`workflows/anima_ref_adapter.json`](workflows/anima_ref_adapter.json): the Anima
|
| 133 |
+
text-to-image workflow plus one node. No other custom nodes are needed.
|
| 134 |
+
3. Load a reference image, write a prompt that describes only the scene, and queue. The first run downloads
|
| 135 |
+
`anima_ref_adapter_v2_r64.safetensors` (183 MB) from [Hugging Face](https://huggingface.co/ElectronGirl/anima-ref-adapter) into `ComfyUI/models/loras/`; to install it by hand,
|
| 136 |
+
[download it](https://huggingface.co/ElectronGirl/anima-ref-adapter/blob/main/anima_ref_adapter_v2_r64.safetensors) into that folder.
|
| 137 |
+
|
| 138 |
+
**In your own workflow:** put **Anima Ref Adapter** between the model (after any other LoRAs) and the
|
| 139 |
+
sampler, and connect the VAE and the reference image.
|
| 140 |
+
|
| 141 |
+
Step by step, with prompt tips and troubleshooting: **[user guide](guide.en.md)**.
|
| 142 |
+
|
| 143 |
+
## Speed and compatibility
|
| 144 |
+
|
| 145 |
+
RTX 3060 Ti 8 GB (fp16), 832x1216, one reference; the faster of two runs:
|
| 146 |
+
|
| 147 |
+
| setup | time per image |
|
| 148 |
+
|---|---|
|
| 149 |
+
| Anima base, er_sde 30 steps, cfg 4.5, **no reference** | 33 s |
|
| 150 |
+
| + pilot adapter, `ref_guidance` 4.5 | 105 s |
|
| 151 |
+
| **+ v2 adapter**, `ref_guidance` 4.5 | **65-67 s** |
|
| 152 |
+
| `ref_guidance` 1 (no extra model call) | 50 s |
|
| 153 |
+
| + SageAttention ([KJNodes](https://github.com/kijai/ComfyUI-KJNodes) Patch Sage Attention) | 62 s |
|
| 154 |
+
| + EasyCache (core) | 63 s |
|
| 155 |
+
| `ref_end` 0.6 | 62 s |
|
| 156 |
+
| **turbo LoRA** (strength 1), 10 steps, cfg 1, `ref_guidance` 1 | **11 s** |
|
| 157 |
+
|
| 158 |
+
<img src="figures/v2_compat.jpg" width="100%" alt="the same seed with each setting">
|
| 159 |
+
|
| 160 |
+
- SageAttention, EasyCache and `ref_end` 0.6 each save about 7% on this GPU, with nearly the same image.
|
| 161 |
+
- A **turbo LoRA** for Anima base (tested: `anima-turbo-lora-v0.2`) goes in front of the adapter. It keeps
|
| 162 |
+
the characters but pulls the drawing toward its own look, so less of the reference style comes through.
|
| 163 |
+
|
| 164 |
+
<details>
|
| 165 |
+
<summary>The whole showcase with the turbo LoRA (10 steps, cfg 1)</summary>
|
| 166 |
+
|
| 167 |
+
<img src="figures/v2_turbo.jpg" width="100%" alt="showcase with the turbo LoRA">
|
| 168 |
+
|
| 169 |
+
</details>
|
| 170 |
+
|
| 171 |
+
Not tested: the Anima-Turbo and Anima-Aesthetic full models, SamplerSPEED, torch.compile.
|
| 172 |
+
|
| 173 |
+
## Nodes
|
| 174 |
+
|
| 175 |
+
| node | |
|
| 176 |
+
|---|---|
|
| 177 |
+
| **Anima Ref Adapter** | The one to use. `MODEL` + `VAE` + reference `IMAGE` + adapter LoRA -> `MODEL` for any sampler. The released adapter files are listed before they are downloaded and fetched on first use. The reference is resized to `ref_megapixels` (1.0) with its aspect ratio. `ref_guidance` runs as a post-CFG patch, one extra model call per step when it is not 1; `ref_end` stops that call early. |
|
| 178 |
+
| Anima Ref Adapter Loader, Anima Ref Latent, Anima Ref Guider | The separate nodes, for the pilot adapter (it needs the reference at the output size) and the guider options `ref_start` and `outside`. [Workflow](workflows/anima_ref_adapter_advanced.json). |
|
| 179 |
+
|
| 180 |
+
## Recommended settings
|
| 181 |
+
|
| 182 |
+
| | recommended | notes |
|
| 183 |
+
|---|---|---|
|
| 184 |
+
| base model | Anima base v1.0 | the adapter was trained on it; a turbo LoRA also works |
|
| 185 |
+
| sampler | any; er_sde or Euler, 30 steps, `simple` | as for Anima without the adapter |
|
| 186 |
+
| `cfg` | 4.5 | text guidance; 1 with a turbo LoRA |
|
| 187 |
+
| `ref_guidance` | 4.5 | 1 = cheaper and weaker; higher = more character detail and style, more saturation |
|
| 188 |
+
| `correction` | `apg` | or `rescale` (phi 0.5) |
|
| 189 |
+
| `ref_end` | 1.0 | ~0.6 is faster with nearly the same image |
|
| 190 |
+
| prompt | quality + `1girl` / `1boy` + `solo` + scene tags | no character name, artist tag or outfit tags; a few appearance tags are fine |
|
| 191 |
+
| other LoRAs | in front of the adapter node | |
|
| 192 |
+
|
| 193 |
+
## How it works
|
| 194 |
+
|
| 195 |
+
- **Asymmetric attention.** Target tokens attend to themselves and the reference; reference tokens attend
|
| 196 |
+
only to themselves and skip the text cross-attention. The reference therefore depends on nothing that
|
| 197 |
+
changes during sampling, so its keys and values are computed once per image and reused by every step and
|
| 198 |
+
both CFG branches. It may have any size.
|
| 199 |
+
- The reference sits at **shifted RoPE coordinates**, past the target grid, so it is read as appearance and
|
| 200 |
+
not copied pixel-aligned (no pose copying).
|
| 201 |
+
- A **rank-64 LoRA**, active only with the reference, learns to read it. Training pairs are the same character
|
| 202 |
+
in different scenes, generated by Anima, with the character's name, artist and appearance tags removed
|
| 203 |
+
from the target prompt.
|
| 204 |
+
- **Separate text and reference guidance**, with adaptive projected guidance (APG) against over-saturation.
|
| 205 |
+
|
| 206 |
+
| 832x1216, RTX PRO 6000, CFG | pilot (two-frame) | v2 (asymmetric) | no reference |
|
| 207 |
+
|---|---|---|---|
|
| 208 |
+
| one sampling step | 0.58 s | 0.28 s (+ 0.1 s once to encode the reference) | 0.24 s |
|
| 209 |
+
|
| 210 |
+
The pilot instead appended the reference as a second latent frame and recomputed it at every step. Its
|
| 211 |
+
method, data and failure modes: **[technical report](report.md)**.
|
| 212 |
+
|
| 213 |
+
## Pilot (v1)
|
| 214 |
+
|
| 215 |
+
The pilot (`anima_ref_adapter_pilot_r32.safetensors`, rank 32) stays available and works with the
|
| 216 |
+
[advanced workflow](workflows/anima_ref_adapter_advanced.json).
|
| 217 |
+
|
| 218 |
+
<details>
|
| 219 |
+
<summary>Pilot gallery and held-out characters</summary>
|
| 220 |
+
|
| 221 |
+
Prompt `masterpiece, best quality, score_7, newest, highres, absurdres, safe, <gender>, solo, <scene>`;
|
| 222 |
+
Euler 28 steps, cfg 4.5, reference guidance 4.5 + APG, context detailer LoRA 0.3, base slider LoRA 0.6,
|
| 223 |
+
Anima Safe PAG. Not cherry-picked.
|
| 224 |
+
|
| 225 |
+
<img src="showcase/pilot_man.jpg" width="100%" alt="pilot: reference and six scenes">
|
| 226 |
+
<sub><code>full body, walking, hands in pockets, city, street, night, rain</code> · <code>upper body, sitting, holding cup, drinking, cafe, indoors, window, sunlight</code> · <code>cowboy shot, looking at viewer, smile, beach, ocean, sunset</code> · <code>portrait, from side, looking afar, cherry blossoms, petals</code> · <code>upper body, reading, holding book, library, bookshelf</code> · <code>full body, standing, snow, forest, winter</code></sub>
|
| 227 |
+
|
| 228 |
+
<img src="showcase/pilot_girl.jpg" width="100%" alt="pilot: reference and six scenes">
|
| 229 |
+
<sub><code>full body, walking, smile, city, street, night, neon lights</code> · <code>upper body, sitting, eating, cake, cafe, indoors</code> · <code>cowboy shot, looking back, smile, beach, ocean, sunset</code> · <code>portrait, closed eyes, smile, cherry blossoms, petals, wind</code> · <code>full body, sitting, on chair, crossed legs, classroom, sunlight</code> · <code>upper body, holding umbrella, rain, street, looking at viewer</code></sub>
|
| 230 |
+
|
| 231 |
+
**Held-out characters**, excluded from training. Each row: the reference, the adapter's result for a new
|
| 232 |
+
scene, the same scene-only prompt without the adapter, and the base model with the character named and its
|
| 233 |
+
appearance tags.
|
| 234 |
+
|
| 235 |
+
<img src="figures/fig2_heldout.jpg" width="100%" alt="held-out characters">
|
| 236 |
+
|
| 237 |
+
| character | scene tags |
|
| 238 |
+
|---|---|
|
| 239 |
+
| Tohru | `full body, looking at viewer, heart hands, crying, simple background, white background` |
|
| 240 |
+
| Eternity Larva | `full body, looking at viewer, against wall, closed eyes, gradient background, sunlight` |
|
| 241 |
+
| Meiko | `portrait, from side, writing, crying, beach, ocean, light rays` |
|
| 242 |
+
| Crocodile | `upper body, from below, drinking, sad, bookshelf, indoors` |
|
| 243 |
+
|
| 244 |
+
| pilot training | |
|
| 245 |
+
|---|---|
|
| 246 |
+
| data | 3,600 images generated by Anima: 600 groups of one character in one artist style x 6 scenes; 300 characters, 427 artists; 12 characters held out |
|
| 247 |
+
| pairs | 17,280 (reference, target) pairs; target prompt keeps scene tags only (70%), + some appearance tags (20%), or nothing (10%) |
|
| 248 |
+
| optimization | flow matching, batch 4, AdamW 1e-4 cosine, bf16, one RTX PRO 6000 Max-Q |
|
| 249 |
+
|
| 250 |
+
</details>
|
| 251 |
+
|
| 252 |
+
## Limitations
|
| 253 |
+
|
| 254 |
+
- Identity transfers much better than style; strongly painterly styles barely transfer.
|
| 255 |
+
- Small patterns, scars, earrings and unusual skin tones are often lost; large garments can drift in color.
|
| 256 |
+
- The reference character occasionally reappears as an object in the scene.
|
| 257 |
+
- Trained only on images generated by Anima; it inherits the base model's biases.
|
| 258 |
+
|
| 259 |
+
Artist names were used only as generation tags. Please respect artists: do not pass off imitations as
|
| 260 |
+
their work, and follow the use restrictions in §4 of [LICENSE.md](LICENSE.md).
|
| 261 |
+
|
| 262 |
+
## Roadmap
|
| 263 |
+
|
| 264 |
+
| | status |
|
| 265 |
+
|---|---|
|
| 266 |
+
| Single reference: character and style from one image | ✅ pilot, v2 |
|
| 267 |
+
| Asymmetric attention with a cached reference | ✅ v2 |
|
| 268 |
+
| Two characters from two references side by side | ✅ v2 |
|
| 269 |
+
| Separate character and style references | ⏸️ paused (experiments only) |
|
| 270 |
+
| Higher-resolution training, better painterly styles and fine details | ⏸️ paused |
|
| 271 |
+
|
| 272 |
+
## Support
|
| 273 |
+
|
| 274 |
+
Development is paused for lack of funding. If the adapter is useful to you, you can support further
|
| 275 |
+
training (longer runs, separate character and style references) on **[Ko-fi](https://ko-fi.com/electrongirl)**.
|
| 276 |
+
|
| 277 |
+
## License and attribution
|
| 278 |
+
|
| 279 |
+
**Non-commercial.** These weights are a modified derivative of the CircleStone Model (Anima base v1.0),
|
| 280 |
+
distributed under the CircleStone Non-Commercial License ([LICENSE.md](LICENSE.md), [NOTICE.txt](NOTICE.txt)).
|
| 281 |
+
This is an independent project, not an official product of CircleStone Labs and not endorsed by it.
|
| 282 |
+
|
| 283 |
+
> The CircleStone Model is licensed by CircleStone Labs LLC under the CircleStone Non-Commercial License. Copyright CircleStone Labs LLC. IN NO EVENT SHALL CIRCLESTONE LABS LLC BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL.
|
| 284 |
+
|
| 285 |
+
## Files
|
| 286 |
+
|
| 287 |
+
| file | |
|
| 288 |
+
|---|---|
|
| 289 |
+
| `anima_ref_adapter_v2_r64.safetensors` | v2: rank 64, asymmetric attention (metadata `arch: asym`), bf16, 840 tensors |
|
| 290 |
+
| `anima_ref_adapter_pilot_r32.safetensors` | pilot: rank 32, two-frame, bf16, 840 tensors |
|
| 291 |
+
| `workflows/` | `anima_ref_adapter.json` (one reference), `anima_ref_adapter_two_characters.json`, `anima_ref_adapter_advanced.json` (separate nodes, pilot) |
|
| 292 |
+
| `showcase/`, `figures/` | gallery images and figures |
|
| 293 |
+
| `report.md` | technical report (pilot) |
|
| 294 |
+
| `README.ko.md`, `README.ja.md`, `guide.*.md` | Korean and Japanese model card; user guides in English, Korean and Japanese |
|
| 295 |
+
| `LICENSE.md`, `NOTICE.txt` | CircleStone Non-Commercial License and attribution notice |
|
anima_ref_adapter_pilot_r32.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d42a07284a82ababd783a893db48048d0cfa0c3fdc0cda51fa82369755ed13ab
|
| 3 |
+
size 91853888
|
anima_ref_adapter_v2_r64.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71dda6079e18d354e16e3347bc49a9b710afd9495c378efbb833d30cac9cb81b
|
| 3 |
+
size 183605032
|
figures/fig1_loss.png
ADDED
|
figures/fig2_heldout.jpg
ADDED
|
Git LFS Details
|
figures/fig3_unseen_artist_oc.jpg
ADDED
|
Git LFS Details
|
figures/fig4_ref_guidance.jpg
ADDED
|
Git LFS Details
|
figures/fig5_corrections.jpg
ADDED
|
Git LFS Details
|
figures/fig6_failures.jpg
ADDED
|
Git LFS Details
|
figures/v2_compat.jpg
ADDED
|
Git LFS Details
|
figures/v2_turbo.jpg
ADDED
|
Git LFS Details
|
guide.en.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Anima Reference Adapter: user guide
|
| 2 |
+
|
| 3 |
+
**English** · [한국어](guide.ko.md) · [日本語](guide.ja.md)
|
| 4 |
+
|
| 5 |
+
This guide walks through installing the adapter in ComfyUI, making a first image, writing prompts, using
|
| 6 |
+
two characters, tuning the settings and fixing common problems. For the method and measurements, see the
|
| 7 |
+
[README](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter).
|
| 8 |
+
|
| 9 |
+
## 1. What you need
|
| 10 |
+
|
| 11 |
+
- **ComfyUI** that runs Anima. If you can already make images with Anima, you have everything.
|
| 12 |
+
- The Anima files from [circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima):
|
| 13 |
+
- `anima-base-v1.0.safetensors` in `ComfyUI/models/diffusion_models/`
|
| 14 |
+
- `qwen_3_06b_base.safetensors` in `ComfyUI/models/text_encoders/`
|
| 15 |
+
- `qwen_image_vae.safetensors` in `ComfyUI/models/vae/`
|
| 16 |
+
- About 1 GB of free VRAM on top of what Anima needs (the reference's cached keys and values at 1 MP).
|
| 17 |
+
It was tested on an 8 GB RTX 3060 Ti.
|
| 18 |
+
|
| 19 |
+
The adapter weights do not need a separate download: the node fetches them on first use.
|
| 20 |
+
|
| 21 |
+
## 2. Install the nodes
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
cd ComfyUI/custom_nodes
|
| 25 |
+
git clone https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter.git
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
Restart ComfyUI. Without git, download the repository as a ZIP from GitHub (Code → Download ZIP) and
|
| 29 |
+
unpack it into `ComfyUI/custom_nodes/`.
|
| 30 |
+
|
| 31 |
+
## 3. Your first image
|
| 32 |
+
|
| 33 |
+
1. Download [`anima_ref_adapter.json`](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/workflows/anima_ref_adapter.json)
|
| 34 |
+
and drag it onto the ComfyUI canvas. It is the standard Anima text-to-image workflow with one extra node,
|
| 35 |
+
**Anima Ref Adapter**, between the model loader and the KSampler.
|
| 36 |
+
2. In **Load Image**, choose your reference image.
|
| 37 |
+
3. In the positive prompt, keep the quality tags and describe only the scene (see section 4).
|
| 38 |
+
4. Queue. The first run downloads `anima_ref_adapter_v2_r64.safetensors` (183 MB) into
|
| 39 |
+
`ComfyUI/models/loras/`; later runs start right away.
|
| 40 |
+
|
| 41 |
+
<img src="https://raw.githubusercontent.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/main/docs/showcase/v2_police.jpg" width="100%" alt="reference and results">
|
| 42 |
+
|
| 43 |
+
## 4. Writing the prompt
|
| 44 |
+
|
| 45 |
+
The reference supplies the character (face, hair, eyes, outfit, accessories) and much of the drawing style.
|
| 46 |
+
The prompt supplies everything else.
|
| 47 |
+
|
| 48 |
+
| write | do not write |
|
| 49 |
+
|---|---|
|
| 50 |
+
| quality tags: `masterpiece, best quality, score_7, safe,` | the character's name |
|
| 51 |
+
| `1girl` or `1boy`, and `solo` | artist tags |
|
| 52 |
+
| framing: `cowboy shot`, `full body`, `upper body`, `portrait` | hair, eye and outfit tags (a few are fine) |
|
| 53 |
+
| pose and action: `sitting`, `lying, on side`, `holding cup` | |
|
| 54 |
+
| expression: `smile`, `sleepy`, `laughing` | |
|
| 55 |
+
| place, time and light: `cafe, indoors, day`, `beach, sunset` | |
|
| 56 |
+
|
| 57 |
+
Example: `masterpiece, best quality, score_7, safe, 1girl, solo, cowboy shot, sitting, cafe, holding cup, smile, looking at viewer, indoors, window, day`
|
| 58 |
+
|
| 59 |
+
Tips:
|
| 60 |
+
|
| 61 |
+
- Write a pose that differs from the reference's. The adapter is trained not to copy the reference's pose,
|
| 62 |
+
and a clear pose in the prompt helps.
|
| 63 |
+
- Parts the reference does not show (the legs in a bust-up image, the back of an outfit) are guessed by the
|
| 64 |
+
model. A reference that shows the whole character gives more consistent outfits.
|
| 65 |
+
- Anima's negative prompt from its model card works as is.
|
| 66 |
+
|
| 67 |
+
## 5. Two characters
|
| 68 |
+
|
| 69 |
+
<img src="https://raw.githubusercontent.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/main/docs/showcase/v2_duo_police_mecha.jpg" width="100%" alt="two references and the result">
|
| 70 |
+
|
| 71 |
+
1. Open [`anima_ref_adapter_two_characters.json`](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/workflows/anima_ref_adapter_two_characters.json).
|
| 72 |
+
It has two **Load Image** nodes joined side by side by the core **Image Stitch** node.
|
| 73 |
+
2. Load the left character in the first image and the right character in the second.
|
| 74 |
+
3. Replace `solo` with `2girls` (or `1boy, 1girl`, `2boys`) and say who is where, with a few words each:
|
| 75 |
+
`2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a mecha girl with aqua hair and mechanical wings, standing side by side, peace sign, smile, city, street, day`
|
| 76 |
+
4. Use a landscape size such as 1216x832.
|
| 77 |
+
|
| 78 |
+
The two drawing styles tend to merge into one; the characters themselves stay apart.
|
| 79 |
+
|
| 80 |
+
## 6. Settings
|
| 81 |
+
|
| 82 |
+
All on the **Anima Ref Adapter** node.
|
| 83 |
+
|
| 84 |
+
| setting | default | what it does |
|
| 85 |
+
|---|---|---|
|
| 86 |
+
| `ref_guidance` | 4.5 | How hard to push toward the reference. Raise it (5-6) when the character drifts; lower it when colors get too strong. At 1 there is no extra model call, so it is faster but weaker. |
|
| 87 |
+
| `correction` | `apg` | Keeps colors in check at high guidance. `rescale` is an alternative; `none` turns it off. |
|
| 88 |
+
| `ref_end` | 1.0 | The point in the schedule after which `ref_guidance` stops (the reference itself stays). About 0.6 is faster with nearly the same image. |
|
| 89 |
+
| `ref_megapixels` | 1.0 | Size the reference is resized to. Lower it (0.5-0.7) to save VRAM. |
|
| 90 |
+
| `strength` | 1.0 | Strength of the adapter LoRA. |
|
| 91 |
+
|
| 92 |
+
Other LoRAs (style, detail) go **in front of** the adapter node, between the model loader and Anima Ref
|
| 93 |
+
Adapter.
|
| 94 |
+
|
| 95 |
+
## 7. Making it faster
|
| 96 |
+
|
| 97 |
+
| method | how | effect (RTX 3060 Ti, 832x1216) |
|
| 98 |
+
|---|---|---|
|
| 99 |
+
| turbo LoRA | a turbo LoRA for Anima base in front of the adapter; 10 steps, cfg 1, `ref_guidance` 1 | 67 s → 11 s; the reference style weakens |
|
| 100 |
+
| `ref_guidance` 1 | on the node | 67 s → 50 s |
|
| 101 |
+
| SageAttention | KJNodes **Patch Sage Attention** in front of the adapter | about 7% |
|
| 102 |
+
| EasyCache | the core **EasyCache** node after the adapter | about 7% |
|
| 103 |
+
| `ref_end` 0.6 | on the node | about 7% |
|
| 104 |
+
|
| 105 |
+
## 8. Troubleshooting
|
| 106 |
+
|
| 107 |
+
| problem | what to do |
|
| 108 |
+
|---|---|
|
| 109 |
+
| The result looks like an ordinary Anima image, not the reference | Check that the KSampler's `model` comes from **Anima Ref Adapter**, not from the model loader directly. Raise `ref_guidance`. |
|
| 110 |
+
| Colors are too strong or burnt | Lower `ref_guidance` (3-4) and keep `correction` on `apg`. |
|
| 111 |
+
| The pose copies the reference | Write a clear, different pose and framing in the prompt. |
|
| 112 |
+
| The reference character appears again as a poster or a figure in the scene | A known limitation; change the seed or lower `ref_guidance`. |
|
| 113 |
+
| The download fails | Download [`anima_ref_adapter_v2_r64.safetensors`](https://huggingface.co/ElectronGirl/anima-ref-adapter/blob/main/anima_ref_adapter_v2_r64.safetensors) by hand into `ComfyUI/models/loras/`. |
|
| 114 |
+
| Out of memory | Lower `ref_megapixels`, or use a smaller output size. |
|
| 115 |
+
| You want the pilot adapter | Use [`anima_ref_adapter_advanced.json`](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/workflows/anima_ref_adapter_advanced.json): the pilot needs the reference at the output size. |
|
| 116 |
+
|
| 117 |
+
## 9. Forge Neo
|
| 118 |
+
|
| 119 |
+
An extension for Stable Diffusion WebUI Forge (Neo) is available:
|
| 120 |
+
[sd-forge-anima-ref-adapter](https://github.com/ElectronGirl/sd-forge-anima-ref-adapter).
|
guide.ja.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Anima Reference Adapter 使い方ガイド
|
| 2 |
+
|
| 3 |
+
[English](guide.en.md) · [한국어](guide.ko.md) · **日本語**
|
| 4 |
+
|
| 5 |
+
このガイドでは、ComfyUI へのアダプターのインストール、最初の画像の生成、プロンプトの書き方、2人のキャラクターを
|
| 6 |
+
一緒に描く方法、設定の調整、よくある問題の解決方法を順に説明します。仕組みと測定結果は
|
| 7 |
+
[README](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/README.ja.md) をご覧ください。
|
| 8 |
+
|
| 9 |
+
## 1. 必要なもの
|
| 10 |
+
|
| 11 |
+
- Anima が動く **ComfyUI**。すでに Anima で画像を生成できていれば、準備は完了しています。
|
| 12 |
+
- [circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima) から入手する Anima のファイル3つ:
|
| 13 |
+
- `anima-base-v1.0.safetensors` → `ComfyUI/models/diffusion_models/`
|
| 14 |
+
- `qwen_3_06b_base.safetensors` → `ComfyUI/models/text_encoders/`
|
| 15 |
+
- `qwen_image_vae.safetensors` → `ComfyUI/models/vae/`
|
| 16 |
+
- Anima に必要な VRAM に加えて約 1GB。1MP の参照画像の key/value をキャッシュするために使います。
|
| 17 |
+
8GB の RTX 3060 Ti で動作を確認しています。
|
| 18 |
+
|
| 19 |
+
アダプターの重みを別途ダウンロードする必要はありません。初回実行時にノードが自動で取得します。
|
| 20 |
+
|
| 21 |
+
## 2. ノードのインストール
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
cd ComfyUI/custom_nodes
|
| 25 |
+
git clone https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter.git
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
ComfyUI を再起動してください。git がない場合は、GitHub から ZIP をダウンロードし(Code → Download ZIP)、
|
| 29 |
+
`ComfyUI/custom_nodes/` に展開します。
|
| 30 |
+
|
| 31 |
+
## 3. 最初の画像
|
| 32 |
+
|
| 33 |
+
1. [`anima_ref_adapter.json`](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/workflows/anima_ref_adapter.json)
|
| 34 |
+
をダウンロードし、ComfyUI の画面にドラッグします。Anima 標準の text-to-image ワークフローに、
|
| 35 |
+
**Anima Ref Adapter** ノードを1つ(モデルローダーと KSampler の間に)加えたものです。
|
| 36 |
+
2. **Load Image** ノードで参照画像を選びます。
|
| 37 |
+
3. ポジティブプロンプトは品質タグをそのまま残し、シーンだけを書きます(4章を参照)。
|
| 38 |
+
4. 実行します。初回は `anima_ref_adapter_v2_r64.safetensors`(183MB)を `ComfyUI/models/loras/` に
|
| 39 |
+
ダウンロードし、2回目以降はすぐに始まります。
|
| 40 |
+
|
| 41 |
+
<img src="https://raw.githubusercontent.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/main/docs/showcase/v2_police.jpg" width="100%" alt="参照画像と結果">
|
| 42 |
+
|
| 43 |
+
## 4. プロンプトの書き方
|
| 44 |
+
|
| 45 |
+
キャラクター(顔、髪、目、衣装、アクセサリー)と画風の多くは参照画像から取り込みます。それ以外はすべて
|
| 46 |
+
プロンプトで決めます。
|
| 47 |
+
|
| 48 |
+
| 書くもの | 書かないもの |
|
| 49 |
+
|---|---|
|
| 50 |
+
| 品質タグ: `masterpiece, best quality, score_7, safe,` | キャラクター名 |
|
| 51 |
+
| `1girl` または `1boy`、そして `solo` | 絵師タグ |
|
| 52 |
+
| 構図: `cowboy shot`, `full body`, `upper body`, `portrait` | 髪・目・衣装のタグ(少しなら問題ありません) |
|
| 53 |
+
| ポーズと動作: `sitting`, `lying, on side`, `holding cup` | |
|
| 54 |
+
| 表情: `smile`, `sleepy`, `laughing` | |
|
| 55 |
+
| 場所・時間・光: `cafe, indoors, day`, `beach, sunset` | |
|
| 56 |
+
|
| 57 |
+
例: `masterpiece, best quality, score_7, safe, 1girl, solo, cowboy shot, sitting, cafe, holding cup, smile, looking at viewer, indoors, window, day`
|
| 58 |
+
|
| 59 |
+
ポイント:
|
| 60 |
+
|
| 61 |
+
- 参照画像とは違うポーズを書くのがおすすめです。アダプターは参照画像のポーズをまねしないように学習されて
|
| 62 |
+
おり、プロンプトにポーズがはっきり書かれていると、その効果がより確実になります。
|
| 63 |
+
- 参照画像に写っていない部分(バストアップ画像の脚、衣装の背面など)はモデルが推測して描きます。
|
| 64 |
+
キャラクター全体が写った参照画像を使うと、衣装がより安定します。
|
| 65 |
+
- ネガティブプロンプトは Anima のモデルカードにあるものをそのまま使えます。
|
| 66 |
+
|
| 67 |
+
## 5. 2人のキャラクター
|
| 68 |
+
|
| 69 |
+
<img src="https://raw.githubusercontent.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/main/docs/showcase/v2_duo_police_mecha.jpg" width="100%" alt="参照画像2枚と結果">
|
| 70 |
+
|
| 71 |
+
1. [`anima_ref_adapter_two_characters.json`](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/workflows/anima_ref_adapter_two_characters.json)
|
| 72 |
+
を開きます。2つの **Load Image** ノードを、標準の **Image Stitch** ノードが左右につなぎます。
|
| 73 |
+
2. 1枚目に左のキャラクター、2枚目に右のキャラクターを読み込みます。
|
| 74 |
+
3. `solo` の代わりに `2girls`(または `1boy, 1girl`、`2boys`)と書き、どちらが誰かを短く書きます:
|
| 75 |
+
`2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a mecha girl with aqua hair and mechanical wings, standing side by side, peace sign, smile, city, street, day`
|
| 76 |
+
4. 1216x832 のような横長のサイズを使います。
|
| 77 |
+
|
| 78 |
+
2人のキャラクターは混ざらずに描き分けられますが、画風は2人の中間あたりで1つにまとまる傾向があります。
|
| 79 |
+
|
| 80 |
+
## 6. 設定
|
| 81 |
+
|
| 82 |
+
すべて **Anima Ref Adapter** ノードにあります。
|
| 83 |
+
|
| 84 |
+
| 設定 | 既定値 | 役割 |
|
| 85 |
+
|---|---|---|
|
| 86 |
+
| `ref_guidance` | 4.5 | 参照画像に寄せる強さです。キャラクターがずれるときは 5〜6 に上げ、色が濃すぎるときは下げます。1 にするとモデルの呼び出しが1回減るので速くなりますが、効果は弱くなります。 |
|
| 87 |
+
| `correction` | `apg` | ガイダンスが強いときの色の行き過ぎを抑えます。`rescale` も使え、`none` で無効になります。 |
|
| 88 |
+
| `ref_end` | 1.0 | サンプリングのこの時点以降は `ref_guidance` を止めます(参照画像そのものは最後まで残ります)。0.6 前後にすると、ほぼ同じ画像をより速く得られます。 |
|
| 89 |
+
| `ref_megapixels` | 1.0 | 参照画像をこの面積に縮小・拡大します。VRAM が足りないときは 0.5〜0.7 に下げます。 |
|
| 90 |
+
| `strength` | 1.0 | アダプター LoRA の強さです。 |
|
| 91 |
+
|
| 92 |
+
ほかの LoRA(画風、ディテールなど)はアダプターノードの**前**、つまりモデルローダーと Anima Ref Adapter の
|
| 93 |
+
間に置きます。
|
| 94 |
+
|
| 95 |
+
## 7. 高速化
|
| 96 |
+
|
| 97 |
+
| 方法 | 設定 | 効果(RTX 3060 Ti、832x1216) |
|
| 98 |
+
|---|---|---|
|
| 99 |
+
| turbo LoRA | Anima base 用の turbo LoRA をアダプターの前に置き、10 steps、cfg 1、`ref_guidance` 1 | 67秒 → 11秒。参照画像の画風は弱くなります。 |
|
| 100 |
+
| `ref_guidance` 1 | ノードで設定 | 67秒 → 50秒 |
|
| 101 |
+
| SageAttention | KJNodes の **Patch Sage Attention** をアダプターの前に置く | 約7% |
|
| 102 |
+
| EasyCache | 標準の **EasyCache** ノードをアダプターの後に置く | 約7% |
|
| 103 |
+
| `ref_end` 0.6 | ノードで設定 | 約7% |
|
| 104 |
+
|
| 105 |
+
## 8. トラブルシューティング
|
| 106 |
+
|
| 107 |
+
| 症状 | 対処 |
|
| 108 |
+
|---|---|
|
| 109 |
+
| 参照画像ではなく、普通の Anima の画像になる | KSampler の `model` がモデルローダーから直接ではなく、**Anima Ref Adapter** から来ているか確認してください。`ref_guidance` を上げてみてください。 |
|
| 110 |
+
| 色が濃すぎる、焼けたように見える | `ref_guidance` を 3〜4 に下げ、`correction` は `apg` のままにします。 |
|
| 111 |
+
| 参照画像のポーズをそのまま写してしまう | プロンプトに、参照画像とは違うポーズと構図をはっきり書きます。 |
|
| 112 |
+
| 参照キャラクターがシーンの中にポスターやフィギュアとして再登場する | 既知の制限です。シードを変えるか、`ref_guidance` を下げてください。 |
|
| 113 |
+
| 自動ダウンロードに失敗する | [`anima_ref_adapter_v2_r64.safetensors`](https://huggingface.co/ElectronGirl/anima-ref-adapter/blob/main/anima_ref_adapter_v2_r64.safetensors) を手動でダウンロードし、`ComfyUI/models/loras/` に置きます。 |
|
| 114 |
+
| メモリが足りない | `ref_megapixels` を下げるか、出力サイズを小さくします。 |
|
| 115 |
+
| パイロット版アダプターを使いたい | [`anima_ref_adapter_advanced.json`](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/workflows/anima_ref_adapter_advanced.json) を使ってください。パイロット版は参照画像が出力と同じサイズである必要があります。 |
|
| 116 |
+
|
| 117 |
+
## 9. Forge Neo
|
| 118 |
+
|
| 119 |
+
Stable Diffusion WebUI Forge (Neo) 用の拡張機能もあります:
|
| 120 |
+
[sd-forge-anima-ref-adapter](https://github.com/ElectronGirl/sd-forge-anima-ref-adapter)。
|
guide.ko.md
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Anima Reference Adapter 사용 가이드
|
| 2 |
+
|
| 3 |
+
[English](guide.en.md) · **한국어** · [日本語](guide.ja.md)
|
| 4 |
+
|
| 5 |
+
이 가이드는 ComfyUI에 어댑터를 설치하고, 첫 이미지를 만들고, 프롬프트를 쓰고, 두 캐릭터를 함께 그리고,
|
| 6 |
+
설정을 조절하고, 자주 생기는 문제를 해결하는 방법을 순서대로 설명합니다. 작동 원리와 측정 결과는
|
| 7 |
+
[README](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/README.ko.md)에 있습니다.
|
| 8 |
+
|
| 9 |
+
## 1. 준비물
|
| 10 |
+
|
| 11 |
+
- Anima를 돌릴 수 있는 **ComfyUI**. 이미 Anima로 이미지를 만들고 있다면 준비가 끝난 것입니다.
|
| 12 |
+
- [circlestone-labs/Anima](https://huggingface.co/circlestone-labs/Anima)에서 받는 Anima 파일 3개:
|
| 13 |
+
- `anima-base-v1.0.safetensors` → `ComfyUI/models/diffusion_models/`
|
| 14 |
+
- `qwen_3_06b_base.safetensors` → `ComfyUI/models/text_encoders/`
|
| 15 |
+
- `qwen_image_vae.safetensors` → `ComfyUI/models/vae/`
|
| 16 |
+
- Anima를 돌리는 데 필요한 VRAM 외에 약 1GB가 더 필요합니다. 1MP 레퍼런스의 key/value를 캐시해 두는 데 쓰입니다.
|
| 17 |
+
8GB인 RTX 3060 Ti에서 테스트했습니다.
|
| 18 |
+
|
| 19 |
+
어댑터 가중치는 따로 받지 않아도 됩니다. 처음 실행할 때 노드가 직접 받아옵니다.
|
| 20 |
+
|
| 21 |
+
## 2. 노드 설치
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
cd ComfyUI/custom_nodes
|
| 25 |
+
git clone https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter.git
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
ComfyUI를 재시작합니다. git이 없다면 GitHub에서 ZIP으로 받아(Code → Download ZIP)
|
| 29 |
+
`ComfyUI/custom_nodes/`에 압축을 풀면 됩니다.
|
| 30 |
+
|
| 31 |
+
## 3. 첫 이미지 만들기
|
| 32 |
+
|
| 33 |
+
1. [`anima_ref_adapter.json`](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/workflows/anima_ref_adapter.json)을
|
| 34 |
+
받아서 ComfyUI 화면에 끌어다 놓습니다. Anima의 기본 text-to-image 워크플로에 **Anima Ref Adapter** 노드
|
| 35 |
+
하나를 모델 로더와 KSampler 사이에 더한 것입니다.
|
| 36 |
+
2. **Load Image** 노드에서 레퍼런스 이미지를 고릅니다.
|
| 37 |
+
3. 긍정 프롬프트에는 퀄리티 태그를 그대로 두고 장면만 씁니다(4장 참고).
|
| 38 |
+
4. 실행합니다. 처음 실행할 때 `anima_ref_adapter_v2_r64.safetensors`(183MB)를 `ComfyUI/models/loras/`로
|
| 39 |
+
받아오고, 그다음부터는 바로 시작합니다.
|
| 40 |
+
|
| 41 |
+
<img src="https://raw.githubusercontent.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/main/docs/showcase/v2_police.jpg" width="100%" alt="레퍼런스와 결과">
|
| 42 |
+
|
| 43 |
+
## 4. 프롬프트 쓰는 법
|
| 44 |
+
|
| 45 |
+
캐릭터(얼굴, 머리, 눈, 의상, 장신구)와 그림체의 상당 부분은 레퍼런스에서 가져옵니다. 나머지는 모두
|
| 46 |
+
프롬프트에서 정합니다.
|
| 47 |
+
|
| 48 |
+
| 쓸 것 | 쓰지 않을 것 |
|
| 49 |
+
|---|---|
|
| 50 |
+
| 퀄리티 태그: `masterpiece, best quality, score_7, safe,` | 캐릭터 이름 |
|
| 51 |
+
| `1girl` 또는 `1boy`, 그리고 `solo` | 작가 태그 |
|
| 52 |
+
| 구도: `cowboy shot`, `full body`, `upper body`, `portrait` | 머리·눈·의상 태그(몇 개 정도는 괜찮습니다) |
|
| 53 |
+
| 자세와 동작: `sitting`, `lying, on side`, `holding cup` | |
|
| 54 |
+
| 표정: `smile`, `sleepy`, `laughing` | |
|
| 55 |
+
| 장소·시간·조명: `cafe, indoors, day`, `beach, sunset` | |
|
| 56 |
+
|
| 57 |
+
예시: `masterpiece, best quality, score_7, safe, 1girl, solo, cowboy shot, sitting, cafe, holding cup, smile, looking at viewer, indoors, window, day`
|
| 58 |
+
|
| 59 |
+
도움이 되는 점:
|
| 60 |
+
|
| 61 |
+
- 레퍼런스와 다른 자세를 쓰는 것이 좋습니다. 어댑터는 레퍼런스의 자세를 따라 하지 않도록 학습되었고,
|
| 62 |
+
프롬프트에 자세가 분명하게 적혀 있으면 그 효과가 더 확실해집니다.
|
| 63 |
+
- 레퍼런스에 보이지 않는 부분(상반신 이미지의 다리, 의상의 뒷면 등)은 모델이 추측해서 그립니다.
|
| 64 |
+
캐릭터 전체가 보이는 레퍼런스를 쓰면 의상이 더 일정하게 유지됩니다.
|
| 65 |
+
- 부정 프롬프트는 Anima 모델 카드에 있는 것을 그대로 쓰면 됩니다.
|
| 66 |
+
|
| 67 |
+
## 5. 두 캐릭터 함께 그리기
|
| 68 |
+
|
| 69 |
+
<img src="https://raw.githubusercontent.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/main/docs/showcase/v2_duo_police_mecha.jpg" width="100%" alt="레퍼런스 두 장과 결과">
|
| 70 |
+
|
| 71 |
+
1. [`anima_ref_adapter_two_characters.json`](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/workflows/anima_ref_adapter_two_characters.json)을
|
| 72 |
+
엽니다. **Load Image** 노드 두 개를 기본 **Image Stitch** 노드가 좌우로 이어 붙입니다.
|
| 73 |
+
2. 첫 번째 이미지에는 왼쪽에 올 캐릭터를, 두 번째 이미지에는 오른쪽에 올 캐릭터를 넣습니다.
|
| 74 |
+
3. `solo` 대신 `2girls`(또는 `1boy, 1girl`, `2boys`)를 쓰고, 누가 어느 쪽인지 몇 단어로 적습니다.
|
| 75 |
+
`2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a mecha girl with aqua hair and mechanical wings, standing side by side, peace sign, smile, city, street, day`
|
| 76 |
+
4. 1216x832처럼 가로가 긴 크기를 씁니다.
|
| 77 |
+
|
| 78 |
+
두 캐릭터는 섞이지 않고 따로 그려지지만, 그림체�� 둘의 중간쯤으로 하나로 맞춰지는 경향이 있습니다.
|
| 79 |
+
|
| 80 |
+
## 6. 설정
|
| 81 |
+
|
| 82 |
+
모두 **Anima Ref Adapter** 노드에 있습니다.
|
| 83 |
+
|
| 84 |
+
| 설정 | 기본값 | 역할 |
|
| 85 |
+
|---|---|---|
|
| 86 |
+
| `ref_guidance` | 4.5 | 레퍼런스 쪽으로 미는 세기입니다. 캐릭터가 달라지면 5~6으로 올리고, 색이 너무 진해지면 낮춥니다. 1로 두면 모델을 한 번 덜 호출하므로 빠르지만 약해집니다. |
|
| 87 |
+
| `correction` | `apg` | 가이던스가 높을 때 색이 과해지는 것을 막습니다. `rescale`도 쓸 수 있고, `none`은 끕니다. |
|
| 88 |
+
| `ref_end` | 1.0 | 샘플링 진행 중 이 지점부터 `ref_guidance`를 멈춥니다. 레퍼런스 자체는 끝까지 유지됩니다. 0.6 정도로 두면 거의 같은 그림을 더 빨리 얻습니다. |
|
| 89 |
+
| `ref_megapixels` | 1.0 | 레퍼런스를 줄이거나 늘리는 크기입니다. VRAM이 부족하면 0.5~0.7로 낮춥니다. |
|
| 90 |
+
| `strength` | 1.0 | 어댑터 LoRA의 세기입니다. |
|
| 91 |
+
|
| 92 |
+
다른 LoRA(그림체, 디테일 등)는 어댑터 노드 **앞**, 즉 모델 로더와 Anima Ref Adapter 사이에 둡니다.
|
| 93 |
+
|
| 94 |
+
## 7. 더 빠르게
|
| 95 |
+
|
| 96 |
+
| 방법 | 설정 | 효과 (RTX 3060 Ti, 832x1216) |
|
| 97 |
+
|---|---|---|
|
| 98 |
+
| turbo LoRA | Anima base용 turbo LoRA를 어댑터 앞에 두고 10 steps, cfg 1, `ref_guidance` 1 | 67초 → 11초. 레퍼런스 그림체는 약해집니다. |
|
| 99 |
+
| `ref_guidance` 1 | 노드에서 설정 | 67초 → 50초 |
|
| 100 |
+
| SageAttention | KJNodes의 **Patch Sage Attention**을 어댑터 앞에 둠 | 약 7% |
|
| 101 |
+
| EasyCache | 기본 **EasyCache** 노드를 어댑터 뒤에 둠 | 약 7% |
|
| 102 |
+
| `ref_end` 0.6 | 노드에서 설정 | 약 7% |
|
| 103 |
+
|
| 104 |
+
## 8. 문제 해결
|
| 105 |
+
|
| 106 |
+
| 증상 | 해결 방법 |
|
| 107 |
+
|---|---|
|
| 108 |
+
| 레퍼런스가 아니라 평범한 Anima 그림이 나옵니다 | KSampler의 `model` 입력이 모델 로더가 아니라 **Anima Ref Adapter**에서 오는지 확인합니다. `ref_guidance`를 올려 봅니다. |
|
| 109 |
+
| 색이 너무 진하거나 탄 것처럼 보입니다 | `ref_guidance`를 3~4로 낮추고 `correction`은 `apg`로 둡니다. |
|
| 110 |
+
| 레퍼런스의 자세를 그대로 따라 합니다 | 프롬프트에 레퍼런스와 다른 자세와 구도를 분명하게 씁니다. |
|
| 111 |
+
| 레퍼런스 캐릭터가 장면 안에 포스터나 피규어로 다시 나옵니다 | 알려진 한계입니다. 시드를 바꾸거나 `ref_guidance`를 낮춥니다. |
|
| 112 |
+
| 자동 다운로드가 실패합니다 | [`anima_ref_adapter_v2_r64.safetensors`](https://huggingface.co/ElectronGirl/anima-ref-adapter/blob/main/anima_ref_adapter_v2_r64.safetensors)를 직접 받아 `ComfyUI/models/loras/`에 넣습니다. |
|
| 113 |
+
| 메모리가 부족합니다 | `ref_megapixels`를 낮추거나 출력 크기를 줄입니다. |
|
| 114 |
+
| 파일럿 어댑터를 쓰고 싶습니다 | [`anima_ref_adapter_advanced.json`](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter/blob/main/workflows/anima_ref_adapter_advanced.json)을 씁니다. 파일럿은 레퍼런스가 출력과 같은 크기여야 합니다. |
|
| 115 |
+
|
| 116 |
+
## 9. Forge Neo
|
| 117 |
+
|
| 118 |
+
Stable Diffusion WebUI Forge (Neo)용 확장도 있습니다:
|
| 119 |
+
[sd-forge-anima-ref-adapter](https://github.com/ElectronGirl/sd-forge-anima-ref-adapter).
|
report.md
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Anima Reference Adapter: Single-Image Character and Style Transfer with an Offset-RoPE Reference Frame
|
| 2 |
+
|
| 3 |
+
**ElectronGirl** · October 2026 · Technical report (pilot release)
|
| 4 |
+
|
| 5 |
+
Weights: [ElectronGirl/anima-ref-adapter](https://huggingface.co/ElectronGirl/anima-ref-adapter) · Code: [ElectronGirl/ComfyUI-Anima-Ref-Adapter](https://github.com/ElectronGirl/ComfyUI-Anima-Ref-Adapter)
|
| 6 |
+
|
| 7 |
+
## Abstract
|
| 8 |
+
|
| 9 |
+
We present a lightweight reference adapter for Anima, a 2B-parameter anime text-to-image diffusion
|
| 10 |
+
transformer built on Cosmos-Predict2. Given one reference image, the adapter reproduces the depicted
|
| 11 |
+
character and, to a lesser degree, its drawing style in a new scene described by a prompt that contains
|
| 12 |
+
neither a character name nor artist or appearance tags. The reference is appended as a second latent
|
| 13 |
+
frame on the time axis, fed clean (timestep 0), and its rotary position coordinates are shifted past the
|
| 14 |
+
target grid, so the model cannot reuse its video prior to copy the reference pixel by pixel. A rank-32
|
| 15 |
+
LoRA (45.9M parameters), active only while a reference is attached, learns to read this frame. Training
|
| 16 |
+
pairs are synthesized with Anima itself: images of the same character in the same style but different
|
| 17 |
+
scenes, rendered with exact Danbooru appearance and outfit tags so that the identity stays fixed within
|
| 18 |
+
a group. A pilot trained on 3,600 generated images (300 characters) for 2,000 steps transfers
|
| 19 |
+
hairstyle, colors, outfits and accessories to held-out characters and to original characters drawn
|
| 20 |
+
in an artist style unseen in training, while pose and background follow the prompt. We also describe
|
| 21 |
+
separate text and reference guidance with an adaptive projection that limits over-saturation, and
|
| 22 |
+
document failure modes. This is a pilot release; a larger dataset is being generated.
|
| 23 |
+
|
| 24 |
+
## 1. Introduction
|
| 25 |
+
|
| 26 |
+
Text-to-image anime models are usually steered towards a character or an artist with tags. That works
|
| 27 |
+
only for characters and artists the model already knows, and the prompt must spell out every visual
|
| 28 |
+
trait. Reference-based conditioning (IP-Adapter [1], in-context editing models such as FLUX.1 Kontext
|
| 29 |
+
[2], OminiControl [3]) instead takes the identity from an image.
|
| 30 |
+
|
| 31 |
+
Anima uses the Cosmos-Predict2 MiniTrainDIT [4], a video-capable DiT with 3D rotary position embeddings
|
| 32 |
+
over (t, h, w). ComfyUI-Cosmos-Reference exploits this by appending a reference latent as an extra frame.
|
| 33 |
+
Without training this works surprisingly well for editing, but it also copies the reference's pose and
|
| 34 |
+
layout: with aligned (h, w) coordinates in consecutive frames, the video prior reads the reference as
|
| 35 |
+
the previous frame of the same shot.
|
| 36 |
+
|
| 37 |
+
Our goal is the opposite trade-off: keep **who** (identity, outfit) and **how it is drawn** (style),
|
| 38 |
+
discard **where and in which pose**. We make three changes:
|
| 39 |
+
|
| 40 |
+
1. **Clean reference frame.** The reference frame receives timestep 0, the target frame receives σ.
|
| 41 |
+
2. **Offset RoPE.** The reference frame's h coordinates are shifted by one target height (plus training
|
| 42 |
+
jitter). Spatial correspondence no longer exists, so the model must use the reference as a source of
|
| 43 |
+
appearance rather than as a layout to continue.
|
| 44 |
+
3. **LoRA trained on synthetic pairs** in which the target prompt omits everything the reference
|
| 45 |
+
should provide.
|
| 46 |
+
|
| 47 |
+
## 2. Method
|
| 48 |
+
|
| 49 |
+
### 2.1 Architecture
|
| 50 |
+
|
| 51 |
+
Anima: Cosmos-Predict2 MiniTrainDIT, 28 blocks, width 2048, 16 heads, 2×2 spatial patches over a
|
| 52 |
+
16-channel Wan 2.1 VAE latent (8× downsampling), Qwen3-0.6B text encoder with an LLM adapter producing
|
| 53 |
+
the cross-attention context. Flow matching with shift 3.
|
| 54 |
+
|
| 55 |
+
For a target latent x_t ∈ R^{16×1×H×W} and a reference latent r (the reference image letterboxed to
|
| 56 |
+
the output size with white padding and VAE-encoded), the DiT input is the two-frame clip [x_t, r]:
|
| 57 |
+
|
| 58 |
+
| | target frame | reference frame |
|
| 59 |
+
|---|---|---|
|
| 60 |
+
| timestep | σ | 0 |
|
| 61 |
+
| RoPE t | 0 | 1 |
|
| 62 |
+
| RoPE h | 0 … H_p−1 | H_p + δ … 2H_p − 1 + δ |
|
| 63 |
+
| RoPE w | 0 … W_p−1 | 0 … W_p−1 |
|
| 64 |
+
|
| 65 |
+
H_p, W_p are the patch-grid sizes; δ ~ U{0, …, 8} during training and δ = 0 at inference. All tokens
|
| 66 |
+
attend to each other through self-attention; the output for the reference frame is discarded. The
|
| 67 |
+
per-frame timestep uses the model's existing (B, T) timestep path, so no new parameters are needed
|
| 68 |
+
for it.
|
| 69 |
+
|
| 70 |
+
**LoRA.** Rank 32, α = 32, on every block's self-attention and cross-attention projections
|
| 71 |
+
(q, k, v, out) and both MLP layers: 280 modules, 45.9M trainable parameters. The base model, text
|
| 72 |
+
encoder and VAE are frozen. At inference the LoRA is applied through forward hooks and only during
|
| 73 |
+
model calls that carry a reference, so the same loaded base model can also produce a reference-free
|
| 74 |
+
branch (Sec. 2.3).
|
| 75 |
+
|
| 76 |
+
### 2.2 Training objective
|
| 77 |
+
|
| 78 |
+
Rectified-flow matching on the target frame only:
|
| 79 |
+
|
| 80 |
+
x_t = (1 − σ) x_0 + σ ε, loss = ‖ v_θ([x_t, r], σ, c) − (ε − x_0) ‖²
|
| 81 |
+
|
| 82 |
+
with σ drawn by applying Anima's shift-3 map to u ~ U(0, 1) (σ = 3u / (1 + 2u)), i.e. the inference
|
| 83 |
+
schedule's time distribution.
|
| 84 |
+
|
| 85 |
+
### 2.3 Guidance
|
| 86 |
+
|
| 87 |
+
With the reference in both CFG branches (standard CFG on the adapted model), only the text is amplified.
|
| 88 |
+
We use separate text and reference scales in the spirit of InstructPix2Pix [5]:
|
| 89 |
+
|
| 90 |
+
x̂ = D(∅) + s_r · (D(r, ∅) − D(∅)) + s_t · (D(r, c) − D(r, ∅))
|
| 91 |
+
|
| 92 |
+
where D(·) is the denoised prediction, ∅ the negative prompt, c the positive prompt, and D(∅) the base
|
| 93 |
+
model without reference or LoRA. s_r = 1 recovers plain CFG with the reference in both branches;
|
| 94 |
+
s_r = s_t removes the reference from the unconditional branch. High s_r over-saturates, so the
|
| 95 |
+
combined update relative to D(r, c) is corrected either with CFG rescale [6] (match the standard
|
| 96 |
+
deviation of D(r, c), blend with φ) or with adaptive projected guidance (APG) [7] (drop the component of
|
| 97 |
+
the update parallel to D(r, c)).
|
| 98 |
+
|
| 99 |
+
## 3. Data
|
| 100 |
+
|
| 101 |
+
All training images are generated by Anima base v1.0. No scraped images are used for training.
|
| 102 |
+
|
| 103 |
+
**Characters.** Danbooru characters with ≥1,000 posts from a 2026 wiki dump (kierarkia/danbooru-wiki-2026).
|
| 104 |
+
For each, appearance and outfit tags are mined from single-character posts in
|
| 105 |
+
trojblue/danbooru2025-metadata (9.1M posts): appearance tags (hair, eyes, anatomy, species) appearing in
|
| 106 |
+
≥40% of the character's posts (at most 8), outfit tags in ≥30% (at most 10), gender if ≥60%. Tags are
|
| 107 |
+
classified with the Mexes/danbooru-tag-taxonomy (CC BY 4.0) and written in exact Danbooru spelling.
|
| 108 |
+
Without these tags Anima drew the same character inconsistently across seeds; with them, identity
|
| 109 |
+
is stable within a group.
|
| 110 |
+
|
| 111 |
+
**Styles.** Artists with ≥300 posts; a style is one artist (50%), or a weighted mix of two (35%) or
|
| 112 |
+
three (15%).
|
| 113 |
+
|
| 114 |
+
**Groups.** A group is one (character, style) pair rendered 6 times, each with an independently sampled
|
| 115 |
+
framing, camera angle, pose, expression, background and lighting (Danbooru tags validated against the
|
| 116 |
+
taxonomy) and one of four ~1 MP resolutions. Characters and styles are each used in two groups.
|
| 117 |
+
Prompt: quality tags, rating (`safe`), artists, gender, `solo`, character, copyright, appearance,
|
| 118 |
+
outfit, scene; the usual negative quality tags.
|
| 119 |
+
|
| 120 |
+
**Pilot set.** 600 groups, 3,600 images, 300 characters, 427 artists; generated in 4.25 h on one
|
| 121 |
+
RTX PRO 6000 Blackwell Max-Q (bf16, SageAttention 2, SamplerSPEED with an Euler base, 24 steps,
|
| 122 |
+
CFG 4.5). Twelve characters, chosen by hash, are
|
| 123 |
+
held out entirely; 576 groups remain for training.
|
| 124 |
+
|
| 125 |
+
**Pairs.** Every ordered pair (reference, target) of distinct images in a training group: 17,280 pairs.
|
| 126 |
+
The target prompt is reduced so that the reference must carry identity and style:
|
| 127 |
+
|
| 128 |
+
| variant | share | prompt |
|
| 129 |
+
|---|---|---|
|
| 130 |
+
| scene only | 70% | quality, rating, gender, `solo`, scene tags |
|
| 131 |
+
| partial | 20% | + a random 30–70% of the appearance/outfit tags |
|
| 132 |
+
| minimal | 10% | quality, rating, gender, `solo` |
|
| 133 |
+
|
| 134 |
+
Character names, copyright and artist tags are never in a target prompt. The reference is letterboxed
|
| 135 |
+
to the target resolution and VAE-encoded once (10,866 reference latents).
|
| 136 |
+
|
| 137 |
+
## 4. Training
|
| 138 |
+
|
| 139 |
+
| setting | value |
|
| 140 |
+
|---|---|
|
| 141 |
+
| steps / batch | 2,000 / 4 (same-resolution buckets) |
|
| 142 |
+
| optimizer | AdamW, lr 1e-4, 100 warm-up steps, cosine to 1e-5, no weight decay, grad-norm clip 1.0 |
|
| 143 |
+
| precision | bf16 base weights and activations, fp32 LoRA weights |
|
| 144 |
+
| memory | gradient checkpointing on the first 16 of 28 blocks; 47.6 GB peak |
|
| 145 |
+
| hardware / time | 1× RTX PRO 6000 Max-Q, 4.1 s/step, 2.4 h |
|
| 146 |
+
|
| 147 |
+
The training forward re-uses ComfyUI's Anima modules. Before training, a self-test checks that our
|
| 148 |
+
two-frame forward with no reference reproduces ComfyUI's own forward (maximum absolute difference 0.0),
|
| 149 |
+
so the trained LoRA plugs back into ComfyUI unchanged.
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
|
| 153 |
+
*Figure 1. Training loss (flow-matching MSE, 10-step means and EMA).*
|
| 154 |
+
|
| 155 |
+
## 5. Results
|
| 156 |
+
|
| 157 |
+
All samples use Euler, 30 steps, text CFG 4.5. Evaluation is qualitative; we have not yet computed
|
| 158 |
+
identity or style similarity metrics.
|
| 159 |
+
|
| 160 |
+
### 5.1 Held-out characters
|
| 161 |
+
|
| 162 |
+

|
| 163 |
+
|
| 164 |
+
*Figure 2. Held-out characters (never seen in training). Columns: reference; adapter with a scene-only
|
| 165 |
+
prompt; the same prompt without the adapter; the generator's image with full character tags.
|
| 166 |
+
Reference guidance 1 (reference in both CFG branches).*
|
| 167 |
+
|
| 168 |
+
For most held-out characters the adapter reproduces hair color and style, eye color, outfit and
|
| 169 |
+
signature accessories (horns and tail, halo, butterfly wings, maid headdress), while the prompt alone
|
| 170 |
+
yields a generic character. Pose, framing and background follow the prompt in all 18 evaluation cases;
|
| 171 |
+
we did not observe pose copying.
|
| 172 |
+
|
| 173 |
+
### 5.2 Original characters in an unseen artist style
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
|
| 177 |
+
*Figure 3. References are original characters described only by appearance tags and drawn by the base
|
| 178 |
+
model with an artist tag that is not in the training set. Columns: reference; adapter (scene-only
|
| 179 |
+
prompt); base model with artist + description tags.*
|
| 180 |
+
|
| 181 |
+
Character design transfers well (gradient twintails, star hair ornaments, neckerchief; silver hair,
|
| 182 |
+
red scarf, gloves). The artist's painterly rendering, soft lighting and muted palette do not transfer at
|
| 183 |
+
reference guidance 1: outputs fall back to a crisper default Anima look.
|
| 184 |
+
|
| 185 |
+
### 5.3 Reference guidance
|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
|
| 189 |
+
*Figure 4. Crops at reference guidance s_r = 1, 2.5, 4.5, 6 (left to right after the reference; last
|
| 190 |
+
column: base model with full tags).*
|
| 191 |
+
|
| 192 |
+
Raising s_r moves the result towards the reference: hair texture and highlights, eye rendering, the
|
| 193 |
+
cool palette, small accessories (bandage, gloves, heterochromia) that s_r = 1 dropped. The painterly
|
| 194 |
+
rendering still does not appear, which suggests the LoRA has learned little of it rather than that it is
|
| 195 |
+
under-amplified. Above ~4.5 colors over-saturate and a color drift present at s_r = 1 (a black hoodie
|
| 196 |
+
drawn dark green) is amplified.
|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
|
| 200 |
+
*Figure 5. s_r = 4.5 without correction, CFG rescale φ = 0.5 and 0.7, APG; APG at s_r = 6; base model with
|
| 201 |
+
full tags.*
|
| 202 |
+
|
| 203 |
+
Both corrections reduce saturation while keeping the reference traits; APG allows s_r = 6 with less
|
| 204 |
+
saturation than uncorrected s_r = 4.5. We use s_r = 4.5–6 with APG as the default.
|
| 205 |
+
|
| 206 |
+
### 5.4 Failure modes
|
| 207 |
+
|
| 208 |
+

|
| 209 |
+
|
| 210 |
+
*Figure 6. Failure cases.*
|
| 211 |
+
|
| 212 |
+
- **Fine details:** small patterns (a checkered haori), scars, earrings and unusual skin tones (pale or
|
| 213 |
+
grey skin) are often lost.
|
| 214 |
+
- **Reference duplication:** occasionally the reference character reappears as an object in the scene
|
| 215 |
+
(e.g. a plush toy of the character).
|
| 216 |
+
- **Color drift** of large garments, amplified by high reference guidance.
|
| 217 |
+
- **Multi-resolution samplers.** SamplerSPEED renders early steps at half resolution. Shrinking the
|
| 218 |
+
reference latent to match produces off-manifold latents and broken images at high s_r. Encoding a
|
| 219 |
+
separate half-resolution reference through the VAE removes the artifacts, but compositions remain
|
| 220 |
+
unreliable because the adapter never saw half-resolution pairs. We recommend single-resolution
|
| 221 |
+
samplers for now.
|
| 222 |
+
|
| 223 |
+
## 6. Limitations
|
| 224 |
+
|
| 225 |
+
- Pilot scale: 300 training characters, 2,000 steps, rank 32.
|
| 226 |
+
- Style transfer is weak for strongly painterly styles; identity transfer is much stronger than style
|
| 227 |
+
transfer.
|
| 228 |
+
- No quantitative evaluation yet.
|
| 229 |
+
- All training data is synthetic; the adapter inherits Anima's biases and failure modes.
|
| 230 |
+
- Weights are a derivative of Anima and are distributed under the CircleStone Non-Commercial License.
|
| 231 |
+
|
| 232 |
+
## 7. Ongoing work
|
| 233 |
+
|
| 234 |
+
- **Character × style grid.** A 12,000-image set is being generated: 2,000 new characters, each drawn in
|
| 235 |
+
3 styles, each style used for 3 characters, 2 scenes per cell, 70% single-artist styles. It yields
|
| 236 |
+
same-character/different-style and same-style/different-character pairs for an adapter with separate
|
| 237 |
+
character and style reference slots.
|
| 238 |
+
- **Low-noise weighting.** Style and texture are decided late in sampling; the current σ distribution
|
| 239 |
+
concentrates training at high noise.
|
| 240 |
+
- **Half-resolution pairs** for compatibility with progressive samplers.
|
| 241 |
+
- **Metrics** for identity and style similarity on held-out characters and artists.
|
| 242 |
+
|
| 243 |
+
## 8. Usage and licensing
|
| 244 |
+
|
| 245 |
+
The ComfyUI nodes (Apache-2.0) are in this repository; the LoRA is on Hugging Face under the
|
| 246 |
+
CircleStone Non-Commercial License. This is an independent project and is not affiliated with or
|
| 247 |
+
endorsed by CircleStone Labs. Artist names are used as generation tags only; please respect artists
|
| 248 |
+
and do not use the adapter to pass off imitations as their work.
|
| 249 |
+
|
| 250 |
+
**Attribution notice.** The CircleStone Model is licensed by CircleStone Labs LLC under the CircleStone
|
| 251 |
+
Non-Commercial License. Copyright CircleStone Labs LLC. IN NO EVENT SHALL CIRCLESTONE LABS LLC BE LIABLE
|
| 252 |
+
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 253 |
+
FROM, OUT OF OR IN CONNECTION WITH USE OF THIS MODEL. The adapter weights are a modified derivative of
|
| 254 |
+
the CircleStone Model (Anima base v1.0).
|
| 255 |
+
|
| 256 |
+
## Acknowledgements
|
| 257 |
+
|
| 258 |
+
Anima (CircleStone Labs); ComfyUI; ComfyUI-Cosmos-Reference for the temporal reference idea;
|
| 259 |
+
kierarkia/danbooru-wiki-2026, trojblue/danbooru2025-metadata (MIT) and Mexes/danbooru-tag-taxonomy
|
| 260 |
+
(CC BY 4.0) for tag statistics; SageAttention [8] and ComfyUI-SPEED for generation speed;
|
| 261 |
+
comfyui-anima-safe-pag for perturbed-attention guidance [9].
|
| 262 |
+
|
| 263 |
+
## References
|
| 264 |
+
|
| 265 |
+
1. H. Ye et al. IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models. 2023.
|
| 266 |
+
2. Black Forest Labs. FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Space. 2025.
|
| 267 |
+
3. Z. Tan et al. OminiControl: Minimal and Universal Control for Diffusion Transformer. 2024.
|
| 268 |
+
4. NVIDIA. Cosmos World Foundation Model Platform for Physical AI (Cosmos-Predict2). 2025.
|
| 269 |
+
5. T. Brooks, A. Holynski, A. Efros. InstructPix2Pix: Learning to Follow Image Editing Instructions. CVPR 2023.
|
| 270 |
+
6. S. Lin et al. Common Diffusion Noise Schedules and Sample Steps are Flawed. WACV 2024.
|
| 271 |
+
7. S. Sadat, O. Hilliges, R. Weber. Eliminating Oversaturation and Artifacts of High Guidance Scales in Diffusion Models. ICLR 2025.
|
| 272 |
+
8. J. Zhang et al. SageAttention2: Efficient Attention with Thorough Outlier Smoothing and Per-thread INT4 Quantization. 2024.
|
| 273 |
+
9. D. Ahn et al. Self-Rectifying Diffusion Sampling with Perturbed-Attention Guidance. ECCV 2024.
|
| 274 |
+
10. E. Hu et al. LoRA: Low-Rank Adaptation of Large Language Models. ICLR 2022.
|
| 275 |
+
11. X. Liu, C. Gong, Q. Liu. Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow. ICLR 2023.
|
showcase/banner.jpg
ADDED
|
Git LFS Details
|
showcase/pilot_girl.jpg
ADDED
|
Git LFS Details
|
showcase/pilot_man.jpg
ADDED
|
Git LFS Details
|
showcase/v2/duo_mecha_swim.jpg
ADDED
|
Git LFS Details
|
showcase/v2/duo_police_mecha.jpg
ADDED
|
Git LFS Details
|
showcase/v2/duo_police_swim.jpg
ADDED
|
Git LFS Details
|
showcase/v2/mecha_fly.jpg
ADDED
|
Git LFS Details
|
showcase/v2/mecha_sit.jpg
ADDED
|
Git LFS Details
|
showcase/v2/police_cafe.jpg
ADDED
|
showcase/v2/police_lie.jpg
ADDED
|
showcase/v2/swim_beach.jpg
ADDED
|
Git LFS Details
|
showcase/v2/swim_pool.jpg
ADDED
|
Git LFS Details
|
showcase/v2_duo_mecha_swim.jpg
ADDED
|
Git LFS Details
|
showcase/v2_duo_police_mecha.jpg
ADDED
|
Git LFS Details
|
showcase/v2_duo_police_swim.jpg
ADDED
|
Git LFS Details
|
showcase/v2_mecha.jpg
ADDED
|
Git LFS Details
|
showcase/v2_police.jpg
ADDED
|
Git LFS Details
|
showcase/v2_swim.jpg
ADDED
|
Git LFS Details
|
workflows/anima_ref_adapter.json
ADDED
|
@@ -0,0 +1,575 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"last_node_id": 20,
|
| 3 |
+
"last_link_id": 12,
|
| 4 |
+
"nodes": [
|
| 5 |
+
{
|
| 6 |
+
"id": 1,
|
| 7 |
+
"type": "UNETLoader",
|
| 8 |
+
"pos": [
|
| 9 |
+
40,
|
| 10 |
+
40
|
| 11 |
+
],
|
| 12 |
+
"size": [
|
| 13 |
+
320,
|
| 14 |
+
90
|
| 15 |
+
],
|
| 16 |
+
"flags": {},
|
| 17 |
+
"order": 0,
|
| 18 |
+
"mode": 0,
|
| 19 |
+
"inputs": [],
|
| 20 |
+
"outputs": [
|
| 21 |
+
{
|
| 22 |
+
"name": "MODEL",
|
| 23 |
+
"type": "MODEL",
|
| 24 |
+
"slot_index": 0,
|
| 25 |
+
"links": [
|
| 26 |
+
1
|
| 27 |
+
]
|
| 28 |
+
}
|
| 29 |
+
],
|
| 30 |
+
"properties": {
|
| 31 |
+
"Node name for S&R": "UNETLoader"
|
| 32 |
+
},
|
| 33 |
+
"widgets_values": [
|
| 34 |
+
"anima-base-v1.0.safetensors",
|
| 35 |
+
"default"
|
| 36 |
+
]
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"id": 2,
|
| 40 |
+
"type": "CLIPLoader",
|
| 41 |
+
"pos": [
|
| 42 |
+
40,
|
| 43 |
+
170
|
| 44 |
+
],
|
| 45 |
+
"size": [
|
| 46 |
+
320,
|
| 47 |
+
110
|
| 48 |
+
],
|
| 49 |
+
"flags": {},
|
| 50 |
+
"order": 1,
|
| 51 |
+
"mode": 0,
|
| 52 |
+
"inputs": [],
|
| 53 |
+
"outputs": [
|
| 54 |
+
{
|
| 55 |
+
"name": "CLIP",
|
| 56 |
+
"type": "CLIP",
|
| 57 |
+
"slot_index": 0,
|
| 58 |
+
"links": [
|
| 59 |
+
4,
|
| 60 |
+
5
|
| 61 |
+
]
|
| 62 |
+
}
|
| 63 |
+
],
|
| 64 |
+
"properties": {
|
| 65 |
+
"Node name for S&R": "CLIPLoader"
|
| 66 |
+
},
|
| 67 |
+
"widgets_values": [
|
| 68 |
+
"qwen_3_06b_base.safetensors",
|
| 69 |
+
"stable_diffusion",
|
| 70 |
+
"default"
|
| 71 |
+
]
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"id": 3,
|
| 75 |
+
"type": "VAELoader",
|
| 76 |
+
"pos": [
|
| 77 |
+
40,
|
| 78 |
+
320
|
| 79 |
+
],
|
| 80 |
+
"size": [
|
| 81 |
+
320,
|
| 82 |
+
60
|
| 83 |
+
],
|
| 84 |
+
"flags": {},
|
| 85 |
+
"order": 2,
|
| 86 |
+
"mode": 0,
|
| 87 |
+
"inputs": [],
|
| 88 |
+
"outputs": [
|
| 89 |
+
{
|
| 90 |
+
"name": "VAE",
|
| 91 |
+
"type": "VAE",
|
| 92 |
+
"slot_index": 0,
|
| 93 |
+
"links": [
|
| 94 |
+
2,
|
| 95 |
+
11
|
| 96 |
+
]
|
| 97 |
+
}
|
| 98 |
+
],
|
| 99 |
+
"properties": {
|
| 100 |
+
"Node name for S&R": "VAELoader"
|
| 101 |
+
},
|
| 102 |
+
"widgets_values": [
|
| 103 |
+
"qwen_image_vae.safetensors"
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"id": 7,
|
| 108 |
+
"type": "LoadImage",
|
| 109 |
+
"pos": [
|
| 110 |
+
40,
|
| 111 |
+
420
|
| 112 |
+
],
|
| 113 |
+
"size": [
|
| 114 |
+
320,
|
| 115 |
+
400
|
| 116 |
+
],
|
| 117 |
+
"flags": {},
|
| 118 |
+
"order": 3,
|
| 119 |
+
"mode": 0,
|
| 120 |
+
"inputs": [],
|
| 121 |
+
"outputs": [
|
| 122 |
+
{
|
| 123 |
+
"name": "IMAGE",
|
| 124 |
+
"type": "IMAGE",
|
| 125 |
+
"slot_index": 0,
|
| 126 |
+
"links": [
|
| 127 |
+
3
|
| 128 |
+
]
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "MASK",
|
| 132 |
+
"type": "MASK",
|
| 133 |
+
"slot_index": 1,
|
| 134 |
+
"links": null
|
| 135 |
+
}
|
| 136 |
+
],
|
| 137 |
+
"properties": {
|
| 138 |
+
"Node name for S&R": "LoadImage"
|
| 139 |
+
},
|
| 140 |
+
"widgets_values": [
|
| 141 |
+
"reference.png",
|
| 142 |
+
"image"
|
| 143 |
+
],
|
| 144 |
+
"title": "Reference"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"id": 4,
|
| 148 |
+
"type": "AnimaRefAdapter",
|
| 149 |
+
"pos": [
|
| 150 |
+
400,
|
| 151 |
+
40
|
| 152 |
+
],
|
| 153 |
+
"size": [
|
| 154 |
+
320,
|
| 155 |
+
220
|
| 156 |
+
],
|
| 157 |
+
"flags": {},
|
| 158 |
+
"order": 4,
|
| 159 |
+
"mode": 0,
|
| 160 |
+
"inputs": [
|
| 161 |
+
{
|
| 162 |
+
"name": "model",
|
| 163 |
+
"type": "MODEL",
|
| 164 |
+
"link": 1
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"name": "vae",
|
| 168 |
+
"type": "VAE",
|
| 169 |
+
"link": 2
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"name": "image",
|
| 173 |
+
"type": "IMAGE",
|
| 174 |
+
"link": 3
|
| 175 |
+
}
|
| 176 |
+
],
|
| 177 |
+
"outputs": [
|
| 178 |
+
{
|
| 179 |
+
"name": "MODEL",
|
| 180 |
+
"type": "MODEL",
|
| 181 |
+
"slot_index": 0,
|
| 182 |
+
"links": [
|
| 183 |
+
6
|
| 184 |
+
]
|
| 185 |
+
}
|
| 186 |
+
],
|
| 187 |
+
"properties": {
|
| 188 |
+
"Node name for S&R": "AnimaRefAdapter"
|
| 189 |
+
},
|
| 190 |
+
"widgets_values": [
|
| 191 |
+
"anima_ref_adapter_v2_r64.safetensors",
|
| 192 |
+
4.5,
|
| 193 |
+
"apg",
|
| 194 |
+
1.0,
|
| 195 |
+
1.0,
|
| 196 |
+
1.0
|
| 197 |
+
]
|
| 198 |
+
},
|
| 199 |
+
{
|
| 200 |
+
"id": 9,
|
| 201 |
+
"type": "CLIPTextEncode",
|
| 202 |
+
"pos": [
|
| 203 |
+
760,
|
| 204 |
+
40
|
| 205 |
+
],
|
| 206 |
+
"size": [
|
| 207 |
+
420,
|
| 208 |
+
200
|
| 209 |
+
],
|
| 210 |
+
"flags": {},
|
| 211 |
+
"order": 5,
|
| 212 |
+
"mode": 0,
|
| 213 |
+
"inputs": [
|
| 214 |
+
{
|
| 215 |
+
"name": "clip",
|
| 216 |
+
"type": "CLIP",
|
| 217 |
+
"link": 4
|
| 218 |
+
}
|
| 219 |
+
],
|
| 220 |
+
"outputs": [
|
| 221 |
+
{
|
| 222 |
+
"name": "CONDITIONING",
|
| 223 |
+
"type": "CONDITIONING",
|
| 224 |
+
"slot_index": 0,
|
| 225 |
+
"links": [
|
| 226 |
+
7
|
| 227 |
+
]
|
| 228 |
+
}
|
| 229 |
+
],
|
| 230 |
+
"properties": {
|
| 231 |
+
"Node name for S&R": "CLIPTextEncode"
|
| 232 |
+
},
|
| 233 |
+
"widgets_values": [
|
| 234 |
+
"masterpiece, best quality, score_7, safe, 1girl, solo, cowboy shot, sitting, cafe, holding cup, smile, looking at viewer, indoors, window, day"
|
| 235 |
+
],
|
| 236 |
+
"title": "Positive"
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"id": 10,
|
| 240 |
+
"type": "CLIPTextEncode",
|
| 241 |
+
"pos": [
|
| 242 |
+
760,
|
| 243 |
+
280
|
| 244 |
+
],
|
| 245 |
+
"size": [
|
| 246 |
+
420,
|
| 247 |
+
140
|
| 248 |
+
],
|
| 249 |
+
"flags": {},
|
| 250 |
+
"order": 6,
|
| 251 |
+
"mode": 0,
|
| 252 |
+
"inputs": [
|
| 253 |
+
{
|
| 254 |
+
"name": "clip",
|
| 255 |
+
"type": "CLIP",
|
| 256 |
+
"link": 5
|
| 257 |
+
}
|
| 258 |
+
],
|
| 259 |
+
"outputs": [
|
| 260 |
+
{
|
| 261 |
+
"name": "CONDITIONING",
|
| 262 |
+
"type": "CONDITIONING",
|
| 263 |
+
"slot_index": 0,
|
| 264 |
+
"links": [
|
| 265 |
+
8
|
| 266 |
+
]
|
| 267 |
+
}
|
| 268 |
+
],
|
| 269 |
+
"properties": {
|
| 270 |
+
"Node name for S&R": "CLIPTextEncode"
|
| 271 |
+
},
|
| 272 |
+
"widgets_values": [
|
| 273 |
+
"worst quality, low quality, score_1, score_2, score_3, artist name, blurry, jpeg artifacts, chromatic aberration"
|
| 274 |
+
],
|
| 275 |
+
"title": "Negative"
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"id": 20,
|
| 279 |
+
"type": "EmptyLatentImage",
|
| 280 |
+
"pos": [
|
| 281 |
+
760,
|
| 282 |
+
460
|
| 283 |
+
],
|
| 284 |
+
"size": [
|
| 285 |
+
420,
|
| 286 |
+
110
|
| 287 |
+
],
|
| 288 |
+
"flags": {},
|
| 289 |
+
"order": 7,
|
| 290 |
+
"mode": 0,
|
| 291 |
+
"inputs": [],
|
| 292 |
+
"outputs": [
|
| 293 |
+
{
|
| 294 |
+
"name": "LATENT",
|
| 295 |
+
"type": "LATENT",
|
| 296 |
+
"slot_index": 0,
|
| 297 |
+
"links": [
|
| 298 |
+
9
|
| 299 |
+
]
|
| 300 |
+
}
|
| 301 |
+
],
|
| 302 |
+
"properties": {
|
| 303 |
+
"Node name for S&R": "EmptyLatentImage"
|
| 304 |
+
},
|
| 305 |
+
"widgets_values": [
|
| 306 |
+
832,
|
| 307 |
+
1216,
|
| 308 |
+
1
|
| 309 |
+
]
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"id": 15,
|
| 313 |
+
"type": "KSampler",
|
| 314 |
+
"pos": [
|
| 315 |
+
1220,
|
| 316 |
+
40
|
| 317 |
+
],
|
| 318 |
+
"size": [
|
| 319 |
+
320,
|
| 320 |
+
270
|
| 321 |
+
],
|
| 322 |
+
"flags": {},
|
| 323 |
+
"order": 8,
|
| 324 |
+
"mode": 0,
|
| 325 |
+
"inputs": [
|
| 326 |
+
{
|
| 327 |
+
"name": "model",
|
| 328 |
+
"type": "MODEL",
|
| 329 |
+
"link": 6
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"name": "positive",
|
| 333 |
+
"type": "CONDITIONING",
|
| 334 |
+
"link": 7
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"name": "negative",
|
| 338 |
+
"type": "CONDITIONING",
|
| 339 |
+
"link": 8
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"name": "latent_image",
|
| 343 |
+
"type": "LATENT",
|
| 344 |
+
"link": 9
|
| 345 |
+
}
|
| 346 |
+
],
|
| 347 |
+
"outputs": [
|
| 348 |
+
{
|
| 349 |
+
"name": "LATENT",
|
| 350 |
+
"type": "LATENT",
|
| 351 |
+
"slot_index": 0,
|
| 352 |
+
"links": [
|
| 353 |
+
10
|
| 354 |
+
]
|
| 355 |
+
}
|
| 356 |
+
],
|
| 357 |
+
"properties": {
|
| 358 |
+
"Node name for S&R": "KSampler"
|
| 359 |
+
},
|
| 360 |
+
"widgets_values": [
|
| 361 |
+
20261029,
|
| 362 |
+
"randomize",
|
| 363 |
+
30,
|
| 364 |
+
4.5,
|
| 365 |
+
"er_sde",
|
| 366 |
+
"simple",
|
| 367 |
+
1.0
|
| 368 |
+
]
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"id": 16,
|
| 372 |
+
"type": "VAEDecode",
|
| 373 |
+
"pos": [
|
| 374 |
+
1220,
|
| 375 |
+
350
|
| 376 |
+
],
|
| 377 |
+
"size": [
|
| 378 |
+
320,
|
| 379 |
+
50
|
| 380 |
+
],
|
| 381 |
+
"flags": {},
|
| 382 |
+
"order": 9,
|
| 383 |
+
"mode": 0,
|
| 384 |
+
"inputs": [
|
| 385 |
+
{
|
| 386 |
+
"name": "samples",
|
| 387 |
+
"type": "LATENT",
|
| 388 |
+
"link": 10
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"name": "vae",
|
| 392 |
+
"type": "VAE",
|
| 393 |
+
"link": 11
|
| 394 |
+
}
|
| 395 |
+
],
|
| 396 |
+
"outputs": [
|
| 397 |
+
{
|
| 398 |
+
"name": "IMAGE",
|
| 399 |
+
"type": "IMAGE",
|
| 400 |
+
"slot_index": 0,
|
| 401 |
+
"links": [
|
| 402 |
+
12
|
| 403 |
+
]
|
| 404 |
+
}
|
| 405 |
+
],
|
| 406 |
+
"properties": {
|
| 407 |
+
"Node name for S&R": "VAEDecode"
|
| 408 |
+
},
|
| 409 |
+
"widgets_values": []
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"id": 17,
|
| 413 |
+
"type": "SaveImage",
|
| 414 |
+
"pos": [
|
| 415 |
+
1580,
|
| 416 |
+
40
|
| 417 |
+
],
|
| 418 |
+
"size": [
|
| 419 |
+
560,
|
| 420 |
+
760
|
| 421 |
+
],
|
| 422 |
+
"flags": {},
|
| 423 |
+
"order": 10,
|
| 424 |
+
"mode": 0,
|
| 425 |
+
"inputs": [
|
| 426 |
+
{
|
| 427 |
+
"name": "images",
|
| 428 |
+
"type": "IMAGE",
|
| 429 |
+
"link": 12
|
| 430 |
+
}
|
| 431 |
+
],
|
| 432 |
+
"outputs": [],
|
| 433 |
+
"properties": {
|
| 434 |
+
"Node name for S&R": "SaveImage"
|
| 435 |
+
},
|
| 436 |
+
"widgets_values": [
|
| 437 |
+
"anima_ref_adapter/image"
|
| 438 |
+
]
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"id": 19,
|
| 442 |
+
"type": "MarkdownNote",
|
| 443 |
+
"pos": [
|
| 444 |
+
400,
|
| 445 |
+
600
|
| 446 |
+
],
|
| 447 |
+
"size": [
|
| 448 |
+
780,
|
| 449 |
+
520
|
| 450 |
+
],
|
| 451 |
+
"flags": {},
|
| 452 |
+
"order": 11,
|
| 453 |
+
"mode": 0,
|
| 454 |
+
"inputs": [],
|
| 455 |
+
"outputs": [],
|
| 456 |
+
"title": "How to use",
|
| 457 |
+
"properties": {},
|
| 458 |
+
"widgets_values": [
|
| 459 |
+
"## Anima Reference Adapter\n\nThe Anima default workflow plus one node. The reference gives **who** is drawn and much of **how**; the prompt gives pose, scene and framing.\n\n- **Prompt**: quality tags, `1girl` / `1boy`, `solo`, then scene tags. No character name, artist tag or outfit tags needed.\n- **Anima Ref Adapter**: put it after the model loader and any LoRAs.\n - `ref_guidance` 4.5: how hard to push toward the reference (1 = no extra model call, weaker).\n - `correction` apg: keeps colors in check.\n - `ref_end` 1.0: set ~0.6 to save time with nearly the same image.\n- Any sampler works. Defaults here: er_sde, simple, 30 steps, cfg 4.5.\n- **Faster**: a turbo LoRA in front of the adapter with 10 steps, cfg 1, ref_guidance 1; SageAttention; EasyCache.\n"
|
| 460 |
+
],
|
| 461 |
+
"color": "#432",
|
| 462 |
+
"bgcolor": "#653"
|
| 463 |
+
}
|
| 464 |
+
],
|
| 465 |
+
"links": [
|
| 466 |
+
[
|
| 467 |
+
1,
|
| 468 |
+
1,
|
| 469 |
+
0,
|
| 470 |
+
4,
|
| 471 |
+
0,
|
| 472 |
+
"MODEL"
|
| 473 |
+
],
|
| 474 |
+
[
|
| 475 |
+
2,
|
| 476 |
+
3,
|
| 477 |
+
0,
|
| 478 |
+
4,
|
| 479 |
+
1,
|
| 480 |
+
"VAE"
|
| 481 |
+
],
|
| 482 |
+
[
|
| 483 |
+
3,
|
| 484 |
+
7,
|
| 485 |
+
0,
|
| 486 |
+
4,
|
| 487 |
+
2,
|
| 488 |
+
"IMAGE"
|
| 489 |
+
],
|
| 490 |
+
[
|
| 491 |
+
4,
|
| 492 |
+
2,
|
| 493 |
+
0,
|
| 494 |
+
9,
|
| 495 |
+
0,
|
| 496 |
+
"CLIP"
|
| 497 |
+
],
|
| 498 |
+
[
|
| 499 |
+
5,
|
| 500 |
+
2,
|
| 501 |
+
0,
|
| 502 |
+
10,
|
| 503 |
+
0,
|
| 504 |
+
"CLIP"
|
| 505 |
+
],
|
| 506 |
+
[
|
| 507 |
+
6,
|
| 508 |
+
4,
|
| 509 |
+
0,
|
| 510 |
+
15,
|
| 511 |
+
0,
|
| 512 |
+
"MODEL"
|
| 513 |
+
],
|
| 514 |
+
[
|
| 515 |
+
7,
|
| 516 |
+
9,
|
| 517 |
+
0,
|
| 518 |
+
15,
|
| 519 |
+
1,
|
| 520 |
+
"CONDITIONING"
|
| 521 |
+
],
|
| 522 |
+
[
|
| 523 |
+
8,
|
| 524 |
+
10,
|
| 525 |
+
0,
|
| 526 |
+
15,
|
| 527 |
+
2,
|
| 528 |
+
"CONDITIONING"
|
| 529 |
+
],
|
| 530 |
+
[
|
| 531 |
+
9,
|
| 532 |
+
20,
|
| 533 |
+
0,
|
| 534 |
+
15,
|
| 535 |
+
3,
|
| 536 |
+
"LATENT"
|
| 537 |
+
],
|
| 538 |
+
[
|
| 539 |
+
10,
|
| 540 |
+
15,
|
| 541 |
+
0,
|
| 542 |
+
16,
|
| 543 |
+
0,
|
| 544 |
+
"LATENT"
|
| 545 |
+
],
|
| 546 |
+
[
|
| 547 |
+
11,
|
| 548 |
+
3,
|
| 549 |
+
0,
|
| 550 |
+
16,
|
| 551 |
+
1,
|
| 552 |
+
"VAE"
|
| 553 |
+
],
|
| 554 |
+
[
|
| 555 |
+
12,
|
| 556 |
+
16,
|
| 557 |
+
0,
|
| 558 |
+
17,
|
| 559 |
+
0,
|
| 560 |
+
"IMAGE"
|
| 561 |
+
]
|
| 562 |
+
],
|
| 563 |
+
"groups": [],
|
| 564 |
+
"config": {},
|
| 565 |
+
"extra": {
|
| 566 |
+
"ds": {
|
| 567 |
+
"scale": 0.75,
|
| 568 |
+
"offset": [
|
| 569 |
+
0,
|
| 570 |
+
0
|
| 571 |
+
]
|
| 572 |
+
}
|
| 573 |
+
},
|
| 574 |
+
"version": 0.4
|
| 575 |
+
}
|
workflows/anima_ref_adapter_advanced.json
ADDED
|
@@ -0,0 +1,844 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"last_node_id": 19,
|
| 3 |
+
"last_link_id": 19,
|
| 4 |
+
"nodes": [
|
| 5 |
+
{
|
| 6 |
+
"id": 1,
|
| 7 |
+
"type": "UNETLoader",
|
| 8 |
+
"pos": [
|
| 9 |
+
40,
|
| 10 |
+
40
|
| 11 |
+
],
|
| 12 |
+
"size": [
|
| 13 |
+
300,
|
| 14 |
+
90
|
| 15 |
+
],
|
| 16 |
+
"flags": {},
|
| 17 |
+
"order": 0,
|
| 18 |
+
"mode": 0,
|
| 19 |
+
"inputs": [],
|
| 20 |
+
"outputs": [
|
| 21 |
+
{
|
| 22 |
+
"name": "MODEL",
|
| 23 |
+
"type": "MODEL",
|
| 24 |
+
"slot_index": 0,
|
| 25 |
+
"links": [
|
| 26 |
+
1
|
| 27 |
+
]
|
| 28 |
+
}
|
| 29 |
+
],
|
| 30 |
+
"properties": {
|
| 31 |
+
"Node name for S&R": "UNETLoader"
|
| 32 |
+
},
|
| 33 |
+
"widgets_values": [
|
| 34 |
+
"anima-base-v1.0.safetensors",
|
| 35 |
+
"default"
|
| 36 |
+
],
|
| 37 |
+
"title": "Base model"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"id": 2,
|
| 41 |
+
"type": "CLIPLoader",
|
| 42 |
+
"pos": [
|
| 43 |
+
40,
|
| 44 |
+
170
|
| 45 |
+
],
|
| 46 |
+
"size": [
|
| 47 |
+
300,
|
| 48 |
+
110
|
| 49 |
+
],
|
| 50 |
+
"flags": {},
|
| 51 |
+
"order": 1,
|
| 52 |
+
"mode": 0,
|
| 53 |
+
"inputs": [],
|
| 54 |
+
"outputs": [
|
| 55 |
+
{
|
| 56 |
+
"name": "CLIP",
|
| 57 |
+
"type": "CLIP",
|
| 58 |
+
"slot_index": 0,
|
| 59 |
+
"links": [
|
| 60 |
+
4,
|
| 61 |
+
5
|
| 62 |
+
]
|
| 63 |
+
}
|
| 64 |
+
],
|
| 65 |
+
"properties": {
|
| 66 |
+
"Node name for S&R": "CLIPLoader"
|
| 67 |
+
},
|
| 68 |
+
"widgets_values": [
|
| 69 |
+
"qwen_3_06b_base.safetensors",
|
| 70 |
+
"stable_diffusion",
|
| 71 |
+
"default"
|
| 72 |
+
]
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"id": 3,
|
| 76 |
+
"type": "VAELoader",
|
| 77 |
+
"pos": [
|
| 78 |
+
40,
|
| 79 |
+
320
|
| 80 |
+
],
|
| 81 |
+
"size": [
|
| 82 |
+
300,
|
| 83 |
+
60
|
| 84 |
+
],
|
| 85 |
+
"flags": {},
|
| 86 |
+
"order": 2,
|
| 87 |
+
"mode": 0,
|
| 88 |
+
"inputs": [],
|
| 89 |
+
"outputs": [
|
| 90 |
+
{
|
| 91 |
+
"name": "VAE",
|
| 92 |
+
"type": "VAE",
|
| 93 |
+
"slot_index": 0,
|
| 94 |
+
"links": [
|
| 95 |
+
3,
|
| 96 |
+
17
|
| 97 |
+
]
|
| 98 |
+
}
|
| 99 |
+
],
|
| 100 |
+
"properties": {
|
| 101 |
+
"Node name for S&R": "VAELoader"
|
| 102 |
+
},
|
| 103 |
+
"widgets_values": [
|
| 104 |
+
"qwen_image_vae.safetensors"
|
| 105 |
+
]
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"id": 4,
|
| 109 |
+
"type": "AnimaRefAdapterLoader",
|
| 110 |
+
"pos": [
|
| 111 |
+
380,
|
| 112 |
+
40
|
| 113 |
+
],
|
| 114 |
+
"size": [
|
| 115 |
+
330,
|
| 116 |
+
110
|
| 117 |
+
],
|
| 118 |
+
"flags": {},
|
| 119 |
+
"order": 3,
|
| 120 |
+
"mode": 0,
|
| 121 |
+
"inputs": [
|
| 122 |
+
{
|
| 123 |
+
"name": "model",
|
| 124 |
+
"type": "MODEL",
|
| 125 |
+
"link": 1
|
| 126 |
+
}
|
| 127 |
+
],
|
| 128 |
+
"outputs": [
|
| 129 |
+
{
|
| 130 |
+
"name": "MODEL",
|
| 131 |
+
"type": "MODEL",
|
| 132 |
+
"slot_index": 0,
|
| 133 |
+
"links": [
|
| 134 |
+
6,
|
| 135 |
+
10
|
| 136 |
+
]
|
| 137 |
+
}
|
| 138 |
+
],
|
| 139 |
+
"properties": {
|
| 140 |
+
"Node name for S&R": "AnimaRefAdapterLoader"
|
| 141 |
+
},
|
| 142 |
+
"widgets_values": [
|
| 143 |
+
"anima_ref_adapter_v2_r64.safetensors",
|
| 144 |
+
1.0,
|
| 145 |
+
1.0
|
| 146 |
+
],
|
| 147 |
+
"title": "Ref adapter LoRA"
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"id": 7,
|
| 151 |
+
"type": "LoadImage",
|
| 152 |
+
"pos": [
|
| 153 |
+
40,
|
| 154 |
+
460
|
| 155 |
+
],
|
| 156 |
+
"size": [
|
| 157 |
+
320,
|
| 158 |
+
380
|
| 159 |
+
],
|
| 160 |
+
"flags": {},
|
| 161 |
+
"order": 4,
|
| 162 |
+
"mode": 0,
|
| 163 |
+
"inputs": [],
|
| 164 |
+
"outputs": [
|
| 165 |
+
{
|
| 166 |
+
"name": "IMAGE",
|
| 167 |
+
"type": "IMAGE",
|
| 168 |
+
"slot_index": 0,
|
| 169 |
+
"links": [
|
| 170 |
+
2
|
| 171 |
+
]
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"name": "MASK",
|
| 175 |
+
"type": "MASK",
|
| 176 |
+
"slot_index": 1,
|
| 177 |
+
"links": null
|
| 178 |
+
}
|
| 179 |
+
],
|
| 180 |
+
"properties": {
|
| 181 |
+
"Node name for S&R": "LoadImage"
|
| 182 |
+
},
|
| 183 |
+
"widgets_values": [
|
| 184 |
+
"reference.png",
|
| 185 |
+
"image"
|
| 186 |
+
],
|
| 187 |
+
"title": "Reference image"
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"id": 8,
|
| 191 |
+
"type": "AnimaRefLatent",
|
| 192 |
+
"pos": [
|
| 193 |
+
380,
|
| 194 |
+
460
|
| 195 |
+
],
|
| 196 |
+
"size": [
|
| 197 |
+
330,
|
| 198 |
+
150
|
| 199 |
+
],
|
| 200 |
+
"flags": {},
|
| 201 |
+
"order": 5,
|
| 202 |
+
"mode": 0,
|
| 203 |
+
"inputs": [
|
| 204 |
+
{
|
| 205 |
+
"name": "image",
|
| 206 |
+
"type": "IMAGE",
|
| 207 |
+
"link": 2
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"name": "vae",
|
| 211 |
+
"type": "VAE",
|
| 212 |
+
"link": 3
|
| 213 |
+
}
|
| 214 |
+
],
|
| 215 |
+
"outputs": [
|
| 216 |
+
{
|
| 217 |
+
"name": "ref_latent",
|
| 218 |
+
"type": "LATENT",
|
| 219 |
+
"slot_index": 0,
|
| 220 |
+
"links": [
|
| 221 |
+
9
|
| 222 |
+
]
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"name": "empty_latent",
|
| 226 |
+
"type": "LATENT",
|
| 227 |
+
"slot_index": 1,
|
| 228 |
+
"links": [
|
| 229 |
+
15
|
| 230 |
+
]
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"name": "ref_image",
|
| 234 |
+
"type": "IMAGE",
|
| 235 |
+
"slot_index": 2,
|
| 236 |
+
"links": [
|
| 237 |
+
19
|
| 238 |
+
]
|
| 239 |
+
}
|
| 240 |
+
],
|
| 241 |
+
"properties": {
|
| 242 |
+
"Node name for S&R": "AnimaRefLatent"
|
| 243 |
+
},
|
| 244 |
+
"widgets_values": [
|
| 245 |
+
896,
|
| 246 |
+
1152,
|
| 247 |
+
255
|
| 248 |
+
],
|
| 249 |
+
"title": "Reference + output size"
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"id": 9,
|
| 253 |
+
"type": "CLIPTextEncode",
|
| 254 |
+
"pos": [
|
| 255 |
+
750,
|
| 256 |
+
40
|
| 257 |
+
],
|
| 258 |
+
"size": [
|
| 259 |
+
420,
|
| 260 |
+
200
|
| 261 |
+
],
|
| 262 |
+
"flags": {},
|
| 263 |
+
"order": 6,
|
| 264 |
+
"mode": 0,
|
| 265 |
+
"inputs": [
|
| 266 |
+
{
|
| 267 |
+
"name": "clip",
|
| 268 |
+
"type": "CLIP",
|
| 269 |
+
"link": 4
|
| 270 |
+
}
|
| 271 |
+
],
|
| 272 |
+
"outputs": [
|
| 273 |
+
{
|
| 274 |
+
"name": "CONDITIONING",
|
| 275 |
+
"type": "CONDITIONING",
|
| 276 |
+
"slot_index": 0,
|
| 277 |
+
"links": [
|
| 278 |
+
7
|
| 279 |
+
]
|
| 280 |
+
}
|
| 281 |
+
],
|
| 282 |
+
"properties": {
|
| 283 |
+
"Node name for S&R": "CLIPTextEncode"
|
| 284 |
+
},
|
| 285 |
+
"widgets_values": [
|
| 286 |
+
"masterpiece, best quality, score_7, safe, 1girl, solo, cowboy shot, sitting, cafe, holding cup, smile, looking at viewer, indoors, window, day"
|
| 287 |
+
],
|
| 288 |
+
"title": "Positive (scene only)"
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"id": 10,
|
| 292 |
+
"type": "CLIPTextEncode",
|
| 293 |
+
"pos": [
|
| 294 |
+
750,
|
| 295 |
+
280
|
| 296 |
+
],
|
| 297 |
+
"size": [
|
| 298 |
+
420,
|
| 299 |
+
160
|
| 300 |
+
],
|
| 301 |
+
"flags": {},
|
| 302 |
+
"order": 7,
|
| 303 |
+
"mode": 0,
|
| 304 |
+
"inputs": [
|
| 305 |
+
{
|
| 306 |
+
"name": "clip",
|
| 307 |
+
"type": "CLIP",
|
| 308 |
+
"link": 5
|
| 309 |
+
}
|
| 310 |
+
],
|
| 311 |
+
"outputs": [
|
| 312 |
+
{
|
| 313 |
+
"name": "CONDITIONING",
|
| 314 |
+
"type": "CONDITIONING",
|
| 315 |
+
"slot_index": 0,
|
| 316 |
+
"links": [
|
| 317 |
+
8
|
| 318 |
+
]
|
| 319 |
+
}
|
| 320 |
+
],
|
| 321 |
+
"properties": {
|
| 322 |
+
"Node name for S&R": "CLIPTextEncode"
|
| 323 |
+
},
|
| 324 |
+
"widgets_values": [
|
| 325 |
+
"worst quality, low quality, score_1, score_2, score_3, artist name, blurry, jpeg artifacts, chromatic aberration"
|
| 326 |
+
],
|
| 327 |
+
"title": "Negative"
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"id": 11,
|
| 331 |
+
"type": "AnimaRefGuider",
|
| 332 |
+
"pos": [
|
| 333 |
+
1210,
|
| 334 |
+
40
|
| 335 |
+
],
|
| 336 |
+
"size": [
|
| 337 |
+
320,
|
| 338 |
+
170
|
| 339 |
+
],
|
| 340 |
+
"flags": {},
|
| 341 |
+
"order": 8,
|
| 342 |
+
"mode": 0,
|
| 343 |
+
"inputs": [
|
| 344 |
+
{
|
| 345 |
+
"name": "model",
|
| 346 |
+
"type": "MODEL",
|
| 347 |
+
"link": 6
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"name": "positive",
|
| 351 |
+
"type": "CONDITIONING",
|
| 352 |
+
"link": 7
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"name": "negative",
|
| 356 |
+
"type": "CONDITIONING",
|
| 357 |
+
"link": 8
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"name": "ref_latent",
|
| 361 |
+
"type": "LATENT",
|
| 362 |
+
"link": 9
|
| 363 |
+
}
|
| 364 |
+
],
|
| 365 |
+
"outputs": [
|
| 366 |
+
{
|
| 367 |
+
"name": "GUIDER",
|
| 368 |
+
"type": "GUIDER",
|
| 369 |
+
"slot_index": 0,
|
| 370 |
+
"links": [
|
| 371 |
+
12
|
| 372 |
+
]
|
| 373 |
+
}
|
| 374 |
+
],
|
| 375 |
+
"properties": {
|
| 376 |
+
"Node name for S&R": "AnimaRefGuider"
|
| 377 |
+
},
|
| 378 |
+
"widgets_values": [
|
| 379 |
+
4.5,
|
| 380 |
+
4.5,
|
| 381 |
+
"apg",
|
| 382 |
+
0.5,
|
| 383 |
+
0.0,
|
| 384 |
+
1.0,
|
| 385 |
+
"reference, no extra guidance"
|
| 386 |
+
]
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"id": 12,
|
| 390 |
+
"type": "KSamplerSelect",
|
| 391 |
+
"pos": [
|
| 392 |
+
1210,
|
| 393 |
+
250
|
| 394 |
+
],
|
| 395 |
+
"size": [
|
| 396 |
+
320,
|
| 397 |
+
60
|
| 398 |
+
],
|
| 399 |
+
"flags": {},
|
| 400 |
+
"order": 9,
|
| 401 |
+
"mode": 0,
|
| 402 |
+
"inputs": [],
|
| 403 |
+
"outputs": [
|
| 404 |
+
{
|
| 405 |
+
"name": "SAMPLER",
|
| 406 |
+
"type": "SAMPLER",
|
| 407 |
+
"slot_index": 0,
|
| 408 |
+
"links": [
|
| 409 |
+
13
|
| 410 |
+
]
|
| 411 |
+
}
|
| 412 |
+
],
|
| 413 |
+
"properties": {
|
| 414 |
+
"Node name for S&R": "KSamplerSelect"
|
| 415 |
+
},
|
| 416 |
+
"widgets_values": [
|
| 417 |
+
"er_sde"
|
| 418 |
+
]
|
| 419 |
+
},
|
| 420 |
+
{
|
| 421 |
+
"id": 13,
|
| 422 |
+
"type": "BasicScheduler",
|
| 423 |
+
"pos": [
|
| 424 |
+
1210,
|
| 425 |
+
350
|
| 426 |
+
],
|
| 427 |
+
"size": [
|
| 428 |
+
320,
|
| 429 |
+
110
|
| 430 |
+
],
|
| 431 |
+
"flags": {},
|
| 432 |
+
"order": 10,
|
| 433 |
+
"mode": 0,
|
| 434 |
+
"inputs": [
|
| 435 |
+
{
|
| 436 |
+
"name": "model",
|
| 437 |
+
"type": "MODEL",
|
| 438 |
+
"link": 10
|
| 439 |
+
}
|
| 440 |
+
],
|
| 441 |
+
"outputs": [
|
| 442 |
+
{
|
| 443 |
+
"name": "SIGMAS",
|
| 444 |
+
"type": "SIGMAS",
|
| 445 |
+
"slot_index": 0,
|
| 446 |
+
"links": [
|
| 447 |
+
14
|
| 448 |
+
]
|
| 449 |
+
}
|
| 450 |
+
],
|
| 451 |
+
"properties": {
|
| 452 |
+
"Node name for S&R": "BasicScheduler"
|
| 453 |
+
},
|
| 454 |
+
"widgets_values": [
|
| 455 |
+
"simple",
|
| 456 |
+
30,
|
| 457 |
+
1.0
|
| 458 |
+
]
|
| 459 |
+
},
|
| 460 |
+
{
|
| 461 |
+
"id": 14,
|
| 462 |
+
"type": "RandomNoise",
|
| 463 |
+
"pos": [
|
| 464 |
+
1210,
|
| 465 |
+
500
|
| 466 |
+
],
|
| 467 |
+
"size": [
|
| 468 |
+
320,
|
| 469 |
+
90
|
| 470 |
+
],
|
| 471 |
+
"flags": {},
|
| 472 |
+
"order": 11,
|
| 473 |
+
"mode": 0,
|
| 474 |
+
"inputs": [],
|
| 475 |
+
"outputs": [
|
| 476 |
+
{
|
| 477 |
+
"name": "NOISE",
|
| 478 |
+
"type": "NOISE",
|
| 479 |
+
"slot_index": 0,
|
| 480 |
+
"links": [
|
| 481 |
+
11
|
| 482 |
+
]
|
| 483 |
+
}
|
| 484 |
+
],
|
| 485 |
+
"properties": {
|
| 486 |
+
"Node name for S&R": "RandomNoise"
|
| 487 |
+
},
|
| 488 |
+
"widgets_values": [
|
| 489 |
+
20261027,
|
| 490 |
+
"randomize"
|
| 491 |
+
]
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"id": 15,
|
| 495 |
+
"type": "SamplerCustomAdvanced",
|
| 496 |
+
"pos": [
|
| 497 |
+
1570,
|
| 498 |
+
40
|
| 499 |
+
],
|
| 500 |
+
"size": [
|
| 501 |
+
280,
|
| 502 |
+
130
|
| 503 |
+
],
|
| 504 |
+
"flags": {},
|
| 505 |
+
"order": 12,
|
| 506 |
+
"mode": 0,
|
| 507 |
+
"inputs": [
|
| 508 |
+
{
|
| 509 |
+
"name": "noise",
|
| 510 |
+
"type": "NOISE",
|
| 511 |
+
"link": 11
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"name": "guider",
|
| 515 |
+
"type": "GUIDER",
|
| 516 |
+
"link": 12
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"name": "sampler",
|
| 520 |
+
"type": "SAMPLER",
|
| 521 |
+
"link": 13
|
| 522 |
+
},
|
| 523 |
+
{
|
| 524 |
+
"name": "sigmas",
|
| 525 |
+
"type": "SIGMAS",
|
| 526 |
+
"link": 14
|
| 527 |
+
},
|
| 528 |
+
{
|
| 529 |
+
"name": "latent_image",
|
| 530 |
+
"type": "LATENT",
|
| 531 |
+
"link": 15
|
| 532 |
+
}
|
| 533 |
+
],
|
| 534 |
+
"outputs": [
|
| 535 |
+
{
|
| 536 |
+
"name": "output",
|
| 537 |
+
"type": "LATENT",
|
| 538 |
+
"slot_index": 0,
|
| 539 |
+
"links": [
|
| 540 |
+
16
|
| 541 |
+
]
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"name": "denoised_output",
|
| 545 |
+
"type": "LATENT",
|
| 546 |
+
"slot_index": 1,
|
| 547 |
+
"links": null
|
| 548 |
+
}
|
| 549 |
+
],
|
| 550 |
+
"properties": {
|
| 551 |
+
"Node name for S&R": "SamplerCustomAdvanced"
|
| 552 |
+
},
|
| 553 |
+
"widgets_values": []
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"id": 16,
|
| 557 |
+
"type": "VAEDecode",
|
| 558 |
+
"pos": [
|
| 559 |
+
1570,
|
| 560 |
+
220
|
| 561 |
+
],
|
| 562 |
+
"size": [
|
| 563 |
+
280,
|
| 564 |
+
50
|
| 565 |
+
],
|
| 566 |
+
"flags": {},
|
| 567 |
+
"order": 13,
|
| 568 |
+
"mode": 0,
|
| 569 |
+
"inputs": [
|
| 570 |
+
{
|
| 571 |
+
"name": "samples",
|
| 572 |
+
"type": "LATENT",
|
| 573 |
+
"link": 16
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"name": "vae",
|
| 577 |
+
"type": "VAE",
|
| 578 |
+
"link": 17
|
| 579 |
+
}
|
| 580 |
+
],
|
| 581 |
+
"outputs": [
|
| 582 |
+
{
|
| 583 |
+
"name": "IMAGE",
|
| 584 |
+
"type": "IMAGE",
|
| 585 |
+
"slot_index": 0,
|
| 586 |
+
"links": [
|
| 587 |
+
18
|
| 588 |
+
]
|
| 589 |
+
}
|
| 590 |
+
],
|
| 591 |
+
"properties": {
|
| 592 |
+
"Node name for S&R": "VAEDecode"
|
| 593 |
+
},
|
| 594 |
+
"widgets_values": []
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"id": 17,
|
| 598 |
+
"type": "SaveImage",
|
| 599 |
+
"pos": [
|
| 600 |
+
1890,
|
| 601 |
+
40
|
| 602 |
+
],
|
| 603 |
+
"size": [
|
| 604 |
+
520,
|
| 605 |
+
640
|
| 606 |
+
],
|
| 607 |
+
"flags": {},
|
| 608 |
+
"order": 14,
|
| 609 |
+
"mode": 0,
|
| 610 |
+
"inputs": [
|
| 611 |
+
{
|
| 612 |
+
"name": "images",
|
| 613 |
+
"type": "IMAGE",
|
| 614 |
+
"link": 18
|
| 615 |
+
}
|
| 616 |
+
],
|
| 617 |
+
"outputs": [],
|
| 618 |
+
"properties": {
|
| 619 |
+
"Node name for S&R": "SaveImage"
|
| 620 |
+
},
|
| 621 |
+
"widgets_values": [
|
| 622 |
+
"anima_ref_adapter/test"
|
| 623 |
+
]
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"id": 18,
|
| 627 |
+
"type": "PreviewImage",
|
| 628 |
+
"pos": [
|
| 629 |
+
750,
|
| 630 |
+
480
|
| 631 |
+
],
|
| 632 |
+
"size": [
|
| 633 |
+
420,
|
| 634 |
+
520
|
| 635 |
+
],
|
| 636 |
+
"flags": {},
|
| 637 |
+
"order": 15,
|
| 638 |
+
"mode": 0,
|
| 639 |
+
"inputs": [
|
| 640 |
+
{
|
| 641 |
+
"name": "images",
|
| 642 |
+
"type": "IMAGE",
|
| 643 |
+
"link": 19
|
| 644 |
+
}
|
| 645 |
+
],
|
| 646 |
+
"outputs": [],
|
| 647 |
+
"properties": {
|
| 648 |
+
"Node name for S&R": "PreviewImage"
|
| 649 |
+
},
|
| 650 |
+
"widgets_values": [],
|
| 651 |
+
"title": "Reference as fed (letterboxed)"
|
| 652 |
+
},
|
| 653 |
+
{
|
| 654 |
+
"id": 19,
|
| 655 |
+
"type": "MarkdownNote",
|
| 656 |
+
"pos": [
|
| 657 |
+
40,
|
| 658 |
+
880
|
| 659 |
+
],
|
| 660 |
+
"size": [
|
| 661 |
+
670,
|
| 662 |
+
620
|
| 663 |
+
],
|
| 664 |
+
"flags": {},
|
| 665 |
+
"order": 16,
|
| 666 |
+
"mode": 0,
|
| 667 |
+
"inputs": [],
|
| 668 |
+
"outputs": [],
|
| 669 |
+
"title": "How to use",
|
| 670 |
+
"properties": {},
|
| 671 |
+
"widgets_values": [
|
| 672 |
+
"## Anima Reference Adapter (advanced)\n\nThe separate nodes, for the pilot adapter and for options the one-node workflow does not expose.\n\n- **Anima Ref Latent** fits the reference into the output size (white letterbox) and returns the empty latent for that size. The pilot needs the reference at the output size; v2 reads any size.\n- **Anima Ref Guider** (`SamplerCustomAdvanced`): `cfg`, `ref_guidance`, `correction`, and the window `ref_start` / `ref_end` with `outside` = keep the reference without extra guidance, or drop it.\n- **Anima Ref Adapter Loader**: keep `ref_offset_h` at 1.0 (training value).\n"
|
| 673 |
+
],
|
| 674 |
+
"color": "#432",
|
| 675 |
+
"bgcolor": "#653"
|
| 676 |
+
}
|
| 677 |
+
],
|
| 678 |
+
"links": [
|
| 679 |
+
[
|
| 680 |
+
1,
|
| 681 |
+
1,
|
| 682 |
+
0,
|
| 683 |
+
4,
|
| 684 |
+
0,
|
| 685 |
+
"MODEL"
|
| 686 |
+
],
|
| 687 |
+
[
|
| 688 |
+
2,
|
| 689 |
+
7,
|
| 690 |
+
0,
|
| 691 |
+
8,
|
| 692 |
+
0,
|
| 693 |
+
"IMAGE"
|
| 694 |
+
],
|
| 695 |
+
[
|
| 696 |
+
3,
|
| 697 |
+
3,
|
| 698 |
+
0,
|
| 699 |
+
8,
|
| 700 |
+
1,
|
| 701 |
+
"VAE"
|
| 702 |
+
],
|
| 703 |
+
[
|
| 704 |
+
4,
|
| 705 |
+
2,
|
| 706 |
+
0,
|
| 707 |
+
9,
|
| 708 |
+
0,
|
| 709 |
+
"CLIP"
|
| 710 |
+
],
|
| 711 |
+
[
|
| 712 |
+
5,
|
| 713 |
+
2,
|
| 714 |
+
0,
|
| 715 |
+
10,
|
| 716 |
+
0,
|
| 717 |
+
"CLIP"
|
| 718 |
+
],
|
| 719 |
+
[
|
| 720 |
+
6,
|
| 721 |
+
4,
|
| 722 |
+
0,
|
| 723 |
+
11,
|
| 724 |
+
0,
|
| 725 |
+
"MODEL"
|
| 726 |
+
],
|
| 727 |
+
[
|
| 728 |
+
7,
|
| 729 |
+
9,
|
| 730 |
+
0,
|
| 731 |
+
11,
|
| 732 |
+
1,
|
| 733 |
+
"CONDITIONING"
|
| 734 |
+
],
|
| 735 |
+
[
|
| 736 |
+
8,
|
| 737 |
+
10,
|
| 738 |
+
0,
|
| 739 |
+
11,
|
| 740 |
+
2,
|
| 741 |
+
"CONDITIONING"
|
| 742 |
+
],
|
| 743 |
+
[
|
| 744 |
+
9,
|
| 745 |
+
8,
|
| 746 |
+
0,
|
| 747 |
+
11,
|
| 748 |
+
3,
|
| 749 |
+
"LATENT"
|
| 750 |
+
],
|
| 751 |
+
[
|
| 752 |
+
10,
|
| 753 |
+
4,
|
| 754 |
+
0,
|
| 755 |
+
13,
|
| 756 |
+
0,
|
| 757 |
+
"MODEL"
|
| 758 |
+
],
|
| 759 |
+
[
|
| 760 |
+
11,
|
| 761 |
+
14,
|
| 762 |
+
0,
|
| 763 |
+
15,
|
| 764 |
+
0,
|
| 765 |
+
"NOISE"
|
| 766 |
+
],
|
| 767 |
+
[
|
| 768 |
+
12,
|
| 769 |
+
11,
|
| 770 |
+
0,
|
| 771 |
+
15,
|
| 772 |
+
1,
|
| 773 |
+
"GUIDER"
|
| 774 |
+
],
|
| 775 |
+
[
|
| 776 |
+
13,
|
| 777 |
+
12,
|
| 778 |
+
0,
|
| 779 |
+
15,
|
| 780 |
+
2,
|
| 781 |
+
"SAMPLER"
|
| 782 |
+
],
|
| 783 |
+
[
|
| 784 |
+
14,
|
| 785 |
+
13,
|
| 786 |
+
0,
|
| 787 |
+
15,
|
| 788 |
+
3,
|
| 789 |
+
"SIGMAS"
|
| 790 |
+
],
|
| 791 |
+
[
|
| 792 |
+
15,
|
| 793 |
+
8,
|
| 794 |
+
1,
|
| 795 |
+
15,
|
| 796 |
+
4,
|
| 797 |
+
"LATENT"
|
| 798 |
+
],
|
| 799 |
+
[
|
| 800 |
+
16,
|
| 801 |
+
15,
|
| 802 |
+
0,
|
| 803 |
+
16,
|
| 804 |
+
0,
|
| 805 |
+
"LATENT"
|
| 806 |
+
],
|
| 807 |
+
[
|
| 808 |
+
17,
|
| 809 |
+
3,
|
| 810 |
+
0,
|
| 811 |
+
16,
|
| 812 |
+
1,
|
| 813 |
+
"VAE"
|
| 814 |
+
],
|
| 815 |
+
[
|
| 816 |
+
18,
|
| 817 |
+
16,
|
| 818 |
+
0,
|
| 819 |
+
17,
|
| 820 |
+
0,
|
| 821 |
+
"IMAGE"
|
| 822 |
+
],
|
| 823 |
+
[
|
| 824 |
+
19,
|
| 825 |
+
8,
|
| 826 |
+
2,
|
| 827 |
+
18,
|
| 828 |
+
0,
|
| 829 |
+
"IMAGE"
|
| 830 |
+
]
|
| 831 |
+
],
|
| 832 |
+
"groups": [],
|
| 833 |
+
"config": {},
|
| 834 |
+
"extra": {
|
| 835 |
+
"ds": {
|
| 836 |
+
"scale": 0.75,
|
| 837 |
+
"offset": [
|
| 838 |
+
0,
|
| 839 |
+
0
|
| 840 |
+
]
|
| 841 |
+
}
|
| 842 |
+
},
|
| 843 |
+
"version": 0.4
|
| 844 |
+
}
|
workflows/anima_ref_adapter_two_characters.json
ADDED
|
@@ -0,0 +1,677 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"last_node_id": 22,
|
| 3 |
+
"last_link_id": 14,
|
| 4 |
+
"nodes": [
|
| 5 |
+
{
|
| 6 |
+
"id": 1,
|
| 7 |
+
"type": "UNETLoader",
|
| 8 |
+
"pos": [
|
| 9 |
+
40,
|
| 10 |
+
40
|
| 11 |
+
],
|
| 12 |
+
"size": [
|
| 13 |
+
320,
|
| 14 |
+
90
|
| 15 |
+
],
|
| 16 |
+
"flags": {},
|
| 17 |
+
"order": 0,
|
| 18 |
+
"mode": 0,
|
| 19 |
+
"inputs": [],
|
| 20 |
+
"outputs": [
|
| 21 |
+
{
|
| 22 |
+
"name": "MODEL",
|
| 23 |
+
"type": "MODEL",
|
| 24 |
+
"slot_index": 0,
|
| 25 |
+
"links": [
|
| 26 |
+
3
|
| 27 |
+
]
|
| 28 |
+
}
|
| 29 |
+
],
|
| 30 |
+
"properties": {
|
| 31 |
+
"Node name for S&R": "UNETLoader"
|
| 32 |
+
},
|
| 33 |
+
"widgets_values": [
|
| 34 |
+
"anima-base-v1.0.safetensors",
|
| 35 |
+
"default"
|
| 36 |
+
]
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"id": 2,
|
| 40 |
+
"type": "CLIPLoader",
|
| 41 |
+
"pos": [
|
| 42 |
+
40,
|
| 43 |
+
170
|
| 44 |
+
],
|
| 45 |
+
"size": [
|
| 46 |
+
320,
|
| 47 |
+
110
|
| 48 |
+
],
|
| 49 |
+
"flags": {},
|
| 50 |
+
"order": 1,
|
| 51 |
+
"mode": 0,
|
| 52 |
+
"inputs": [],
|
| 53 |
+
"outputs": [
|
| 54 |
+
{
|
| 55 |
+
"name": "CLIP",
|
| 56 |
+
"type": "CLIP",
|
| 57 |
+
"slot_index": 0,
|
| 58 |
+
"links": [
|
| 59 |
+
6,
|
| 60 |
+
7
|
| 61 |
+
]
|
| 62 |
+
}
|
| 63 |
+
],
|
| 64 |
+
"properties": {
|
| 65 |
+
"Node name for S&R": "CLIPLoader"
|
| 66 |
+
},
|
| 67 |
+
"widgets_values": [
|
| 68 |
+
"qwen_3_06b_base.safetensors",
|
| 69 |
+
"stable_diffusion",
|
| 70 |
+
"default"
|
| 71 |
+
]
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"id": 3,
|
| 75 |
+
"type": "VAELoader",
|
| 76 |
+
"pos": [
|
| 77 |
+
40,
|
| 78 |
+
320
|
| 79 |
+
],
|
| 80 |
+
"size": [
|
| 81 |
+
320,
|
| 82 |
+
60
|
| 83 |
+
],
|
| 84 |
+
"flags": {},
|
| 85 |
+
"order": 2,
|
| 86 |
+
"mode": 0,
|
| 87 |
+
"inputs": [],
|
| 88 |
+
"outputs": [
|
| 89 |
+
{
|
| 90 |
+
"name": "VAE",
|
| 91 |
+
"type": "VAE",
|
| 92 |
+
"slot_index": 0,
|
| 93 |
+
"links": [
|
| 94 |
+
4,
|
| 95 |
+
13
|
| 96 |
+
]
|
| 97 |
+
}
|
| 98 |
+
],
|
| 99 |
+
"properties": {
|
| 100 |
+
"Node name for S&R": "VAELoader"
|
| 101 |
+
},
|
| 102 |
+
"widgets_values": [
|
| 103 |
+
"qwen_image_vae.safetensors"
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"id": 7,
|
| 108 |
+
"type": "LoadImage",
|
| 109 |
+
"pos": [
|
| 110 |
+
40,
|
| 111 |
+
420
|
| 112 |
+
],
|
| 113 |
+
"size": [
|
| 114 |
+
320,
|
| 115 |
+
400
|
| 116 |
+
],
|
| 117 |
+
"flags": {},
|
| 118 |
+
"order": 3,
|
| 119 |
+
"mode": 0,
|
| 120 |
+
"inputs": [],
|
| 121 |
+
"outputs": [
|
| 122 |
+
{
|
| 123 |
+
"name": "IMAGE",
|
| 124 |
+
"type": "IMAGE",
|
| 125 |
+
"slot_index": 0,
|
| 126 |
+
"links": [
|
| 127 |
+
1
|
| 128 |
+
]
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"name": "MASK",
|
| 132 |
+
"type": "MASK",
|
| 133 |
+
"slot_index": 1,
|
| 134 |
+
"links": null
|
| 135 |
+
}
|
| 136 |
+
],
|
| 137 |
+
"properties": {
|
| 138 |
+
"Node name for S&R": "LoadImage"
|
| 139 |
+
},
|
| 140 |
+
"widgets_values": [
|
| 141 |
+
"ref_police.webp",
|
| 142 |
+
"image"
|
| 143 |
+
],
|
| 144 |
+
"title": "Reference (left)"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"id": 21,
|
| 148 |
+
"type": "LoadImage",
|
| 149 |
+
"pos": [
|
| 150 |
+
40,
|
| 151 |
+
860
|
| 152 |
+
],
|
| 153 |
+
"size": [
|
| 154 |
+
320,
|
| 155 |
+
400
|
| 156 |
+
],
|
| 157 |
+
"flags": {},
|
| 158 |
+
"order": 4,
|
| 159 |
+
"mode": 0,
|
| 160 |
+
"inputs": [],
|
| 161 |
+
"outputs": [
|
| 162 |
+
{
|
| 163 |
+
"name": "IMAGE",
|
| 164 |
+
"type": "IMAGE",
|
| 165 |
+
"slot_index": 0,
|
| 166 |
+
"links": [
|
| 167 |
+
2
|
| 168 |
+
]
|
| 169 |
+
},
|
| 170 |
+
{
|
| 171 |
+
"name": "MASK",
|
| 172 |
+
"type": "MASK",
|
| 173 |
+
"slot_index": 1,
|
| 174 |
+
"links": null
|
| 175 |
+
}
|
| 176 |
+
],
|
| 177 |
+
"properties": {
|
| 178 |
+
"Node name for S&R": "LoadImage"
|
| 179 |
+
},
|
| 180 |
+
"widgets_values": [
|
| 181 |
+
"ref_mecha.webp",
|
| 182 |
+
"image"
|
| 183 |
+
],
|
| 184 |
+
"title": "Reference (right)"
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"id": 22,
|
| 188 |
+
"type": "ImageStitch",
|
| 189 |
+
"pos": [
|
| 190 |
+
400,
|
| 191 |
+
420
|
| 192 |
+
],
|
| 193 |
+
"size": [
|
| 194 |
+
320,
|
| 195 |
+
130
|
| 196 |
+
],
|
| 197 |
+
"flags": {},
|
| 198 |
+
"order": 5,
|
| 199 |
+
"mode": 0,
|
| 200 |
+
"inputs": [
|
| 201 |
+
{
|
| 202 |
+
"name": "image1",
|
| 203 |
+
"type": "IMAGE",
|
| 204 |
+
"link": 1
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"name": "image2",
|
| 208 |
+
"type": "IMAGE",
|
| 209 |
+
"link": 2
|
| 210 |
+
}
|
| 211 |
+
],
|
| 212 |
+
"outputs": [
|
| 213 |
+
{
|
| 214 |
+
"name": "IMAGE",
|
| 215 |
+
"type": "IMAGE",
|
| 216 |
+
"slot_index": 0,
|
| 217 |
+
"links": [
|
| 218 |
+
5
|
| 219 |
+
]
|
| 220 |
+
}
|
| 221 |
+
],
|
| 222 |
+
"properties": {
|
| 223 |
+
"Node name for S&R": "ImageStitch"
|
| 224 |
+
},
|
| 225 |
+
"widgets_values": [
|
| 226 |
+
"right",
|
| 227 |
+
true,
|
| 228 |
+
0,
|
| 229 |
+
"white"
|
| 230 |
+
]
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"id": 4,
|
| 234 |
+
"type": "AnimaRefAdapter",
|
| 235 |
+
"pos": [
|
| 236 |
+
400,
|
| 237 |
+
40
|
| 238 |
+
],
|
| 239 |
+
"size": [
|
| 240 |
+
320,
|
| 241 |
+
220
|
| 242 |
+
],
|
| 243 |
+
"flags": {},
|
| 244 |
+
"order": 6,
|
| 245 |
+
"mode": 0,
|
| 246 |
+
"inputs": [
|
| 247 |
+
{
|
| 248 |
+
"name": "model",
|
| 249 |
+
"type": "MODEL",
|
| 250 |
+
"link": 3
|
| 251 |
+
},
|
| 252 |
+
{
|
| 253 |
+
"name": "vae",
|
| 254 |
+
"type": "VAE",
|
| 255 |
+
"link": 4
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"name": "image",
|
| 259 |
+
"type": "IMAGE",
|
| 260 |
+
"link": 5
|
| 261 |
+
}
|
| 262 |
+
],
|
| 263 |
+
"outputs": [
|
| 264 |
+
{
|
| 265 |
+
"name": "MODEL",
|
| 266 |
+
"type": "MODEL",
|
| 267 |
+
"slot_index": 0,
|
| 268 |
+
"links": [
|
| 269 |
+
8
|
| 270 |
+
]
|
| 271 |
+
}
|
| 272 |
+
],
|
| 273 |
+
"properties": {
|
| 274 |
+
"Node name for S&R": "AnimaRefAdapter"
|
| 275 |
+
},
|
| 276 |
+
"widgets_values": [
|
| 277 |
+
"anima_ref_adapter_v2_r64.safetensors",
|
| 278 |
+
4.5,
|
| 279 |
+
"apg",
|
| 280 |
+
1.0,
|
| 281 |
+
1.0,
|
| 282 |
+
1.0
|
| 283 |
+
]
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"id": 9,
|
| 287 |
+
"type": "CLIPTextEncode",
|
| 288 |
+
"pos": [
|
| 289 |
+
760,
|
| 290 |
+
40
|
| 291 |
+
],
|
| 292 |
+
"size": [
|
| 293 |
+
420,
|
| 294 |
+
200
|
| 295 |
+
],
|
| 296 |
+
"flags": {},
|
| 297 |
+
"order": 7,
|
| 298 |
+
"mode": 0,
|
| 299 |
+
"inputs": [
|
| 300 |
+
{
|
| 301 |
+
"name": "clip",
|
| 302 |
+
"type": "CLIP",
|
| 303 |
+
"link": 6
|
| 304 |
+
}
|
| 305 |
+
],
|
| 306 |
+
"outputs": [
|
| 307 |
+
{
|
| 308 |
+
"name": "CONDITIONING",
|
| 309 |
+
"type": "CONDITIONING",
|
| 310 |
+
"slot_index": 0,
|
| 311 |
+
"links": [
|
| 312 |
+
9
|
| 313 |
+
]
|
| 314 |
+
}
|
| 315 |
+
],
|
| 316 |
+
"properties": {
|
| 317 |
+
"Node name for S&R": "CLIPTextEncode"
|
| 318 |
+
},
|
| 319 |
+
"widgets_values": [
|
| 320 |
+
"masterpiece, best quality, score_7, safe, 2girls, the girl on the left is a policewoman with black hair over one eye, the girl on the right is a mecha girl with aqua hair and mechanical wings, standing side by side, peace sign, smile, city, street, day"
|
| 321 |
+
],
|
| 322 |
+
"title": "Positive"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"id": 10,
|
| 326 |
+
"type": "CLIPTextEncode",
|
| 327 |
+
"pos": [
|
| 328 |
+
760,
|
| 329 |
+
280
|
| 330 |
+
],
|
| 331 |
+
"size": [
|
| 332 |
+
420,
|
| 333 |
+
140
|
| 334 |
+
],
|
| 335 |
+
"flags": {},
|
| 336 |
+
"order": 8,
|
| 337 |
+
"mode": 0,
|
| 338 |
+
"inputs": [
|
| 339 |
+
{
|
| 340 |
+
"name": "clip",
|
| 341 |
+
"type": "CLIP",
|
| 342 |
+
"link": 7
|
| 343 |
+
}
|
| 344 |
+
],
|
| 345 |
+
"outputs": [
|
| 346 |
+
{
|
| 347 |
+
"name": "CONDITIONING",
|
| 348 |
+
"type": "CONDITIONING",
|
| 349 |
+
"slot_index": 0,
|
| 350 |
+
"links": [
|
| 351 |
+
10
|
| 352 |
+
]
|
| 353 |
+
}
|
| 354 |
+
],
|
| 355 |
+
"properties": {
|
| 356 |
+
"Node name for S&R": "CLIPTextEncode"
|
| 357 |
+
},
|
| 358 |
+
"widgets_values": [
|
| 359 |
+
"worst quality, low quality, score_1, score_2, score_3, artist name, blurry, jpeg artifacts, chromatic aberration"
|
| 360 |
+
],
|
| 361 |
+
"title": "Negative"
|
| 362 |
+
},
|
| 363 |
+
{
|
| 364 |
+
"id": 20,
|
| 365 |
+
"type": "EmptyLatentImage",
|
| 366 |
+
"pos": [
|
| 367 |
+
760,
|
| 368 |
+
460
|
| 369 |
+
],
|
| 370 |
+
"size": [
|
| 371 |
+
420,
|
| 372 |
+
110
|
| 373 |
+
],
|
| 374 |
+
"flags": {},
|
| 375 |
+
"order": 9,
|
| 376 |
+
"mode": 0,
|
| 377 |
+
"inputs": [],
|
| 378 |
+
"outputs": [
|
| 379 |
+
{
|
| 380 |
+
"name": "LATENT",
|
| 381 |
+
"type": "LATENT",
|
| 382 |
+
"slot_index": 0,
|
| 383 |
+
"links": [
|
| 384 |
+
11
|
| 385 |
+
]
|
| 386 |
+
}
|
| 387 |
+
],
|
| 388 |
+
"properties": {
|
| 389 |
+
"Node name for S&R": "EmptyLatentImage"
|
| 390 |
+
},
|
| 391 |
+
"widgets_values": [
|
| 392 |
+
1216,
|
| 393 |
+
832,
|
| 394 |
+
1
|
| 395 |
+
]
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"id": 15,
|
| 399 |
+
"type": "KSampler",
|
| 400 |
+
"pos": [
|
| 401 |
+
1220,
|
| 402 |
+
40
|
| 403 |
+
],
|
| 404 |
+
"size": [
|
| 405 |
+
320,
|
| 406 |
+
270
|
| 407 |
+
],
|
| 408 |
+
"flags": {},
|
| 409 |
+
"order": 10,
|
| 410 |
+
"mode": 0,
|
| 411 |
+
"inputs": [
|
| 412 |
+
{
|
| 413 |
+
"name": "model",
|
| 414 |
+
"type": "MODEL",
|
| 415 |
+
"link": 8
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"name": "positive",
|
| 419 |
+
"type": "CONDITIONING",
|
| 420 |
+
"link": 9
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"name": "negative",
|
| 424 |
+
"type": "CONDITIONING",
|
| 425 |
+
"link": 10
|
| 426 |
+
},
|
| 427 |
+
{
|
| 428 |
+
"name": "latent_image",
|
| 429 |
+
"type": "LATENT",
|
| 430 |
+
"link": 11
|
| 431 |
+
}
|
| 432 |
+
],
|
| 433 |
+
"outputs": [
|
| 434 |
+
{
|
| 435 |
+
"name": "LATENT",
|
| 436 |
+
"type": "LATENT",
|
| 437 |
+
"slot_index": 0,
|
| 438 |
+
"links": [
|
| 439 |
+
12
|
| 440 |
+
]
|
| 441 |
+
}
|
| 442 |
+
],
|
| 443 |
+
"properties": {
|
| 444 |
+
"Node name for S&R": "KSampler"
|
| 445 |
+
},
|
| 446 |
+
"widgets_values": [
|
| 447 |
+
20261029,
|
| 448 |
+
"randomize",
|
| 449 |
+
30,
|
| 450 |
+
4.5,
|
| 451 |
+
"er_sde",
|
| 452 |
+
"simple",
|
| 453 |
+
1.0
|
| 454 |
+
]
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"id": 16,
|
| 458 |
+
"type": "VAEDecode",
|
| 459 |
+
"pos": [
|
| 460 |
+
1220,
|
| 461 |
+
350
|
| 462 |
+
],
|
| 463 |
+
"size": [
|
| 464 |
+
320,
|
| 465 |
+
50
|
| 466 |
+
],
|
| 467 |
+
"flags": {},
|
| 468 |
+
"order": 11,
|
| 469 |
+
"mode": 0,
|
| 470 |
+
"inputs": [
|
| 471 |
+
{
|
| 472 |
+
"name": "samples",
|
| 473 |
+
"type": "LATENT",
|
| 474 |
+
"link": 12
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"name": "vae",
|
| 478 |
+
"type": "VAE",
|
| 479 |
+
"link": 13
|
| 480 |
+
}
|
| 481 |
+
],
|
| 482 |
+
"outputs": [
|
| 483 |
+
{
|
| 484 |
+
"name": "IMAGE",
|
| 485 |
+
"type": "IMAGE",
|
| 486 |
+
"slot_index": 0,
|
| 487 |
+
"links": [
|
| 488 |
+
14
|
| 489 |
+
]
|
| 490 |
+
}
|
| 491 |
+
],
|
| 492 |
+
"properties": {
|
| 493 |
+
"Node name for S&R": "VAEDecode"
|
| 494 |
+
},
|
| 495 |
+
"widgets_values": []
|
| 496 |
+
},
|
| 497 |
+
{
|
| 498 |
+
"id": 17,
|
| 499 |
+
"type": "SaveImage",
|
| 500 |
+
"pos": [
|
| 501 |
+
1580,
|
| 502 |
+
40
|
| 503 |
+
],
|
| 504 |
+
"size": [
|
| 505 |
+
560,
|
| 506 |
+
760
|
| 507 |
+
],
|
| 508 |
+
"flags": {},
|
| 509 |
+
"order": 12,
|
| 510 |
+
"mode": 0,
|
| 511 |
+
"inputs": [
|
| 512 |
+
{
|
| 513 |
+
"name": "images",
|
| 514 |
+
"type": "IMAGE",
|
| 515 |
+
"link": 14
|
| 516 |
+
}
|
| 517 |
+
],
|
| 518 |
+
"outputs": [],
|
| 519 |
+
"properties": {
|
| 520 |
+
"Node name for S&R": "SaveImage"
|
| 521 |
+
},
|
| 522 |
+
"widgets_values": [
|
| 523 |
+
"anima_ref_adapter/image"
|
| 524 |
+
]
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"id": 19,
|
| 528 |
+
"type": "MarkdownNote",
|
| 529 |
+
"pos": [
|
| 530 |
+
400,
|
| 531 |
+
600
|
| 532 |
+
],
|
| 533 |
+
"size": [
|
| 534 |
+
780,
|
| 535 |
+
520
|
| 536 |
+
],
|
| 537 |
+
"flags": {},
|
| 538 |
+
"order": 13,
|
| 539 |
+
"mode": 0,
|
| 540 |
+
"inputs": [],
|
| 541 |
+
"outputs": [],
|
| 542 |
+
"title": "How to use",
|
| 543 |
+
"properties": {},
|
| 544 |
+
"widgets_values": [
|
| 545 |
+
"## Anima Reference Adapter\n\nThe Anima default workflow plus one node. The reference gives **who** is drawn and much of **how**; the prompt gives pose, scene and framing.\n\n- **Prompt**: quality tags, `1girl` / `1boy`, `solo`, then scene tags. No character name, artist tag or outfit tags needed.\n- **Anima Ref Adapter**: put it after the model loader and any LoRAs.\n - `ref_guidance` 4.5: how hard to push toward the reference (1 = no extra model call, weaker).\n - `correction` apg: keeps colors in check.\n - `ref_end` 1.0: set ~0.6 to save time with nearly the same image.\n- Any sampler works. Defaults here: er_sde, simple, 30 steps, cfg 4.5.\n- **Faster**: a turbo LoRA in front of the adapter with 10 steps, cfg 1, ref_guidance 1; SageAttention; EasyCache.\n\n### Two characters\nStitch the two references side by side (core **Image Stitch** node) and write in the prompt who is on the left and who is on the right, with a few words each. Use `2girls` / `1boy, 1girl` instead of `solo`, and a landscape output.\n"
|
| 546 |
+
],
|
| 547 |
+
"color": "#432",
|
| 548 |
+
"bgcolor": "#653"
|
| 549 |
+
}
|
| 550 |
+
],
|
| 551 |
+
"links": [
|
| 552 |
+
[
|
| 553 |
+
1,
|
| 554 |
+
7,
|
| 555 |
+
0,
|
| 556 |
+
22,
|
| 557 |
+
0,
|
| 558 |
+
"IMAGE"
|
| 559 |
+
],
|
| 560 |
+
[
|
| 561 |
+
2,
|
| 562 |
+
21,
|
| 563 |
+
0,
|
| 564 |
+
22,
|
| 565 |
+
1,
|
| 566 |
+
"IMAGE"
|
| 567 |
+
],
|
| 568 |
+
[
|
| 569 |
+
3,
|
| 570 |
+
1,
|
| 571 |
+
0,
|
| 572 |
+
4,
|
| 573 |
+
0,
|
| 574 |
+
"MODEL"
|
| 575 |
+
],
|
| 576 |
+
[
|
| 577 |
+
4,
|
| 578 |
+
3,
|
| 579 |
+
0,
|
| 580 |
+
4,
|
| 581 |
+
1,
|
| 582 |
+
"VAE"
|
| 583 |
+
],
|
| 584 |
+
[
|
| 585 |
+
5,
|
| 586 |
+
22,
|
| 587 |
+
0,
|
| 588 |
+
4,
|
| 589 |
+
2,
|
| 590 |
+
"IMAGE"
|
| 591 |
+
],
|
| 592 |
+
[
|
| 593 |
+
6,
|
| 594 |
+
2,
|
| 595 |
+
0,
|
| 596 |
+
9,
|
| 597 |
+
0,
|
| 598 |
+
"CLIP"
|
| 599 |
+
],
|
| 600 |
+
[
|
| 601 |
+
7,
|
| 602 |
+
2,
|
| 603 |
+
0,
|
| 604 |
+
10,
|
| 605 |
+
0,
|
| 606 |
+
"CLIP"
|
| 607 |
+
],
|
| 608 |
+
[
|
| 609 |
+
8,
|
| 610 |
+
4,
|
| 611 |
+
0,
|
| 612 |
+
15,
|
| 613 |
+
0,
|
| 614 |
+
"MODEL"
|
| 615 |
+
],
|
| 616 |
+
[
|
| 617 |
+
9,
|
| 618 |
+
9,
|
| 619 |
+
0,
|
| 620 |
+
15,
|
| 621 |
+
1,
|
| 622 |
+
"CONDITIONING"
|
| 623 |
+
],
|
| 624 |
+
[
|
| 625 |
+
10,
|
| 626 |
+
10,
|
| 627 |
+
0,
|
| 628 |
+
15,
|
| 629 |
+
2,
|
| 630 |
+
"CONDITIONING"
|
| 631 |
+
],
|
| 632 |
+
[
|
| 633 |
+
11,
|
| 634 |
+
20,
|
| 635 |
+
0,
|
| 636 |
+
15,
|
| 637 |
+
3,
|
| 638 |
+
"LATENT"
|
| 639 |
+
],
|
| 640 |
+
[
|
| 641 |
+
12,
|
| 642 |
+
15,
|
| 643 |
+
0,
|
| 644 |
+
16,
|
| 645 |
+
0,
|
| 646 |
+
"LATENT"
|
| 647 |
+
],
|
| 648 |
+
[
|
| 649 |
+
13,
|
| 650 |
+
3,
|
| 651 |
+
0,
|
| 652 |
+
16,
|
| 653 |
+
1,
|
| 654 |
+
"VAE"
|
| 655 |
+
],
|
| 656 |
+
[
|
| 657 |
+
14,
|
| 658 |
+
16,
|
| 659 |
+
0,
|
| 660 |
+
17,
|
| 661 |
+
0,
|
| 662 |
+
"IMAGE"
|
| 663 |
+
]
|
| 664 |
+
],
|
| 665 |
+
"groups": [],
|
| 666 |
+
"config": {},
|
| 667 |
+
"extra": {
|
| 668 |
+
"ds": {
|
| 669 |
+
"scale": 0.75,
|
| 670 |
+
"offset": [
|
| 671 |
+
0,
|
| 672 |
+
0
|
| 673 |
+
]
|
| 674 |
+
}
|
| 675 |
+
},
|
| 676 |
+
"version": 0.4
|
| 677 |
+
}
|