Advertisement
AdamDart

ComfyUI Lora loader for SDXL with no refiner

Aug 27th, 2023
1,287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.25 KB | None | 0 0
  1. {
  2. "last_node_id": 58,
  3. "last_link_id": 71,
  4. "nodes": [
  5. {
  6. "id": 39,
  7. "type": "Note",
  8. "pos": [
  9. 474,
  10. 295
  11. ],
  12. "size": {
  13. "0": 210,
  14. "1": 95.42681121826172
  15. },
  16. "flags": {
  17. "collapsed": true,
  18. "pinned": false
  19. },
  20. "order": 0,
  21. "mode": 0,
  22. "title": "Note - CLIP Encode (BASE)",
  23. "properties": {
  24. "text": ""
  25. },
  26. "widgets_values": [
  27. "These nodes receive the text from the prompt and use the optimal CLIP settings for the specified checkpoint model (in this case: SDXL Base)"
  28. ],
  29. "color": "#323",
  30. "bgcolor": "#535",
  31. "shape": 1
  32. },
  33. {
  34. "id": 41,
  35. "type": "Note",
  36. "pos": [
  37. 807.7498779296875,
  38. 233.78460728149417
  39. ],
  40. "size": {
  41. "0": 326.1493225097656,
  42. "1": 140.60494995117188
  43. },
  44. "flags": {
  45. "collapsed": true,
  46. "pinned": false
  47. },
  48. "order": 1,
  49. "mode": 0,
  50. "title": "Note - VAE Decoder",
  51. "properties": {
  52. "text": ""
  53. },
  54. "widgets_values": [
  55. "This node will take the latent data from the KSampler and, using the VAE, it will decode it into visible data\n\nVAE = Latent --> Visible\n\nThis can then be sent to the Save Image node to be saved as a PNG."
  56. ],
  57. "color": "#233",
  58. "bgcolor": "#355",
  59. "shape": 1
  60. },
  61. {
  62. "id": 38,
  63. "type": "Note",
  64. "pos": [
  65. 71,
  66. 521
  67. ],
  68. "size": {
  69. "0": 284.3257141113281,
  70. "1": 123.88604736328125
  71. },
  72. "flags": {
  73. "collapsed": true,
  74. "pinned": false
  75. },
  76. "order": 2,
  77. "mode": 0,
  78. "title": "Note - Text Prompts",
  79. "properties": {
  80. "text": ""
  81. },
  82. "widgets_values": [
  83. "These nodes are where you include the text for:\n - what you want in the picture (Positive Prompt, Green)\n - or what you don't want in the picture (Negative Prompt, Red)\n\nThis node type is called a \"PrimitiveNode\" if you are searching for the node type."
  84. ],
  85. "color": "#323",
  86. "bgcolor": "#535",
  87. "shape": 1
  88. },
  89. {
  90. "id": 36,
  91. "type": "Note",
  92. "pos": [
  93. 70.85639976806641,
  94. -329.72836625976583
  95. ],
  96. "size": {
  97. "0": 315.70074462890625,
  98. "1": 147.9551239013672
  99. },
  100. "flags": {
  101. "collapsed": true,
  102. "pinned": false
  103. },
  104. "order": 3,
  105. "mode": 0,
  106. "title": "Note - Load Checkpoint BASE",
  107. "properties": {
  108. "text": ""
  109. },
  110. "widgets_values": [
  111. "This is a checkpoint model loader. \n - This is set up automatically with the optimal settings for whatever SD model version you choose to use.\n - In this example, it is for the Base SDXL model\n - This node is also used for SD1.5 and SD2.x models\n \nNOTE: When loading in another person's workflow, be sure to manually choose your own *local* model. This also applies to LoRas and all their deviations (ComfyUI supports all current filter types as of 14-03-2023!)"
  112. ],
  113. "color": "#323",
  114. "bgcolor": "#535",
  115. "shape": 1
  116. },
  117. {
  118. "id": 42,
  119. "type": "Note",
  120. "pos": [
  121. 65,
  122. 897
  123. ],
  124. "size": {
  125. "0": 260,
  126. "1": 210
  127. },
  128. "flags": {
  129. "collapsed": false,
  130. "pinned": false
  131. },
  132. "order": 4,
  133. "mode": 0,
  134. "title": "Note - Empty Latent Image",
  135. "properties": {
  136. "text": ""
  137. },
  138. "widgets_values": [
  139. "LANDSCAPE BASE RESOLUTION\n3:2 1216 x 832 1:1 1024x1024\n4:3 1152 x 896\n8:5 1216 x 768\n16:9 1344 x 768\n19:9 1472 x 704\n21:9 1536 x 640\n\nPORTRAIT\n2:3 832 x 1216\n3:4 896 x 1152\n5:8 768 x 1216\n9:16 768 x 1344\n9:19 704 x 1472\n9:21 640 x 1536"
  140. ],
  141. "color": "#323",
  142. "bgcolor": "#535",
  143. "shape": 1
  144. },
  145. {
  146. "id": 4,
  147. "type": "CheckpointLoaderSimple",
  148. "pos": [
  149. 55.85639976806641,
  150. -126.72836625976555
  151. ],
  152. "size": {
  153. "0": 350,
  154. "1": 100
  155. },
  156. "flags": {
  157. "pinned": false
  158. },
  159. "order": 5,
  160. "mode": 0,
  161. "outputs": [
  162. {
  163. "name": "MODEL",
  164. "type": "MODEL",
  165. "links": [
  166. 70
  167. ],
  168. "slot_index": 0
  169. },
  170. {
  171. "name": "CLIP",
  172. "type": "CLIP",
  173. "links": [
  174. 71
  175. ],
  176. "slot_index": 1
  177. },
  178. {
  179. "name": "VAE",
  180. "type": "VAE",
  181. "links": [
  182. 52
  183. ],
  184. "slot_index": 2
  185. }
  186. ],
  187. "title": "Load Checkpoint - BASE",
  188. "properties": {
  189. "Node name for S&R": "CheckpointLoaderSimple"
  190. },
  191. "widgets_values": [
  192. "sd_xl_base_1.0.safetensors"
  193. ],
  194. "color": "#323",
  195. "bgcolor": "#535",
  196. "shape": 1
  197. },
  198. {
  199. "id": 48,
  200. "type": "VAEDecodeTiled",
  201. "pos": [
  202. 812,
  203. 128
  204. ],
  205. "size": {
  206. "0": 210,
  207. "1": 46
  208. },
  209. "flags": {
  210. "pinned": false
  211. },
  212. "order": 14,
  213. "mode": 0,
  214. "inputs": [
  215. {
  216. "name": "samples",
  217. "type": "LATENT",
  218. "link": 65
  219. },
  220. {
  221. "name": "vae",
  222. "type": "VAE",
  223. "link": 52
  224. }
  225. ],
  226. "outputs": [
  227. {
  228. "name": "IMAGE",
  229. "type": "IMAGE",
  230. "links": [
  231. 55
  232. ],
  233. "shape": 3,
  234. "slot_index": 0
  235. }
  236. ],
  237. "properties": {
  238. "Node name for S&R": "VAEDecodeTiled"
  239. },
  240. "shape": 1
  241. },
  242. {
  243. "id": 14,
  244. "type": "PrimitiveNode",
  245. "pos": [
  246. 65,
  247. 321
  248. ],
  249. "size": {
  250. "0": 300,
  251. "1": 160
  252. },
  253. "flags": {
  254. "pinned": false
  255. },
  256. "order": 6,
  257. "mode": 0,
  258. "outputs": [
  259. {
  260. "name": "STRING",
  261. "type": "STRING",
  262. "links": [
  263. 18
  264. ],
  265. "widget": {
  266. "name": "text",
  267. "config": [
  268. "STRING",
  269. {
  270. "multiline": true
  271. }
  272. ]
  273. },
  274. "slot_index": 0
  275. }
  276. ],
  277. "title": "Negative Prompt (Text)",
  278. "properties": {},
  279. "widgets_values": [
  280. ""
  281. ],
  282. "color": "#322",
  283. "bgcolor": "#533",
  284. "shape": 1
  285. },
  286. {
  287. "id": 13,
  288. "type": "PrimitiveNode",
  289. "pos": [
  290. 65,
  291. 118
  292. ],
  293. "size": {
  294. "0": 297.8631286621094,
  295. "1": 160.9127655029297
  296. },
  297. "flags": {
  298. "pinned": false
  299. },
  300. "order": 7,
  301. "mode": 0,
  302. "outputs": [
  303. {
  304. "name": "STRING",
  305. "type": "STRING",
  306. "links": [
  307. 16
  308. ],
  309. "widget": {
  310. "name": "text",
  311. "config": [
  312. "STRING",
  313. {
  314. "multiline": true
  315. }
  316. ]
  317. },
  318. "slot_index": 0
  319. }
  320. ],
  321. "title": "Positive Prompt (Text)",
  322. "properties": {},
  323. "widgets_values": [
  324. "a miniature model of a dark gothic fantasy castle warm light licks off ignited cruxifix an angry mob with pitchforks march along a lone vampire hunter stands in solitude a body horror monstrosity hides in a grotto beneath secret rituals happen in the dark by ClassipeintXL"
  325. ],
  326. "color": "#232",
  327. "bgcolor": "#353",
  328. "shape": 1
  329. },
  330. {
  331. "id": 7,
  332. "type": "CLIPTextEncode",
  333. "pos": [
  334. 474,
  335. 205
  336. ],
  337. "size": {
  338. "0": 210,
  339. "1": 54
  340. },
  341. "flags": {
  342. "collapsed": false,
  343. "pinned": false
  344. },
  345. "order": 12,
  346. "mode": 0,
  347. "inputs": [
  348. {
  349. "name": "clip",
  350. "type": "CLIP",
  351. "link": 69
  352. },
  353. {
  354. "name": "text",
  355. "type": "STRING",
  356. "link": 18,
  357. "widget": {
  358. "name": "text",
  359. "config": [
  360. "STRING",
  361. {
  362. "multiline": true
  363. }
  364. ]
  365. },
  366. "slot_index": 1
  367. }
  368. ],
  369. "outputs": [
  370. {
  371. "name": "CONDITIONING",
  372. "type": "CONDITIONING",
  373. "links": [
  374. 62
  375. ],
  376. "slot_index": 0
  377. }
  378. ],
  379. "properties": {
  380. "Node name for S&R": "CLIPTextEncode"
  381. },
  382. "widgets_values": [
  383. ""
  384. ],
  385. "color": "#322",
  386. "bgcolor": "#533",
  387. "shape": 1
  388. },
  389. {
  390. "id": 6,
  391. "type": "CLIPTextEncode",
  392. "pos": [
  393. 474,
  394. 115
  395. ],
  396. "size": {
  397. "0": 210,
  398. "1": 54
  399. },
  400. "flags": {
  401. "collapsed": false,
  402. "pinned": false
  403. },
  404. "order": 11,
  405. "mode": 0,
  406. "inputs": [
  407. {
  408. "name": "clip",
  409. "type": "CLIP",
  410. "link": 68
  411. },
  412. {
  413. "name": "text",
  414. "type": "STRING",
  415. "link": 16,
  416. "widget": {
  417. "name": "text",
  418. "config": [
  419. "STRING",
  420. {
  421. "multiline": true
  422. }
  423. ]
  424. },
  425. "slot_index": 1
  426. }
  427. ],
  428. "outputs": [
  429. {
  430. "name": "CONDITIONING",
  431. "type": "CONDITIONING",
  432. "links": [
  433. 63
  434. ],
  435. "slot_index": 0
  436. }
  437. ],
  438. "properties": {
  439. "Node name for S&R": "CLIPTextEncode"
  440. },
  441. "widgets_values": [
  442. "a miniature model of a dark gothic fantasy castle warm light licks off ignited cruxifix an angry mob with pitchforks march along a lone vampire hunter stands in solitude a body horror monstrosity hides in a grotto beneath secret rituals happen in the dark by ClassipeintXL"
  443. ],
  444. "color": "#232",
  445. "bgcolor": "#353",
  446. "shape": 1
  447. },
  448. {
  449. "id": 56,
  450. "type": "KSampler",
  451. "pos": [
  452. 429,
  453. 494
  454. ],
  455. "size": {
  456. "0": 315,
  457. "1": 262
  458. },
  459. "flags": {
  460. "pinned": false
  461. },
  462. "order": 13,
  463. "mode": 0,
  464. "inputs": [
  465. {
  466. "name": "model",
  467. "type": "MODEL",
  468. "link": 67
  469. },
  470. {
  471. "name": "positive",
  472. "type": "CONDITIONING",
  473. "link": 63
  474. },
  475. {
  476. "name": "negative",
  477. "type": "CONDITIONING",
  478. "link": 62
  479. },
  480. {
  481. "name": "latent_image",
  482. "type": "LATENT",
  483. "link": 66
  484. }
  485. ],
  486. "outputs": [
  487. {
  488. "name": "LATENT",
  489. "type": "LATENT",
  490. "links": [
  491. 65
  492. ],
  493. "shape": 3,
  494. "slot_index": 0
  495. }
  496. ],
  497. "properties": {
  498. "Node name for S&R": "KSampler"
  499. },
  500. "widgets_values": [
  501. 611720110730452,
  502. "randomize",
  503. 26,
  504. 4.7,
  505. "dpmpp_3m_sde",
  506. "karras",
  507. 1
  508. ],
  509. "color": "#223",
  510. "bgcolor": "#335",
  511. "shape": 1
  512. },
  513. {
  514. "id": 40,
  515. "type": "Note",
  516. "pos": [
  517. 432,
  518. 834
  519. ],
  520. "size": {
  521. "0": 631.6643676757812,
  522. "1": 250.24887084960938
  523. },
  524. "flags": {
  525. "collapsed": true,
  526. "pinned": false
  527. },
  528. "order": 8,
  529. "mode": 0,
  530. "title": "Note - KSampler ADVANCED General Information",
  531. "properties": {
  532. "text": ""
  533. },
  534. "widgets_values": [
  535. "Here are the settings that SHOULD stay in place if you want this workflow to work correctly:\n - add_noise: enable = This adds random noise into the picture so the model can denoise it\n\n - return_with_leftover_noise: enable = This sends the latent image data and all it's leftover data to the next KSampler node.\n\nThe settings to pay attention to:\n - control_after_generate = generates a new random seed after each workflow job completed.\n - steps = This is the amount of iterations you would like to run the positive and negative CLIP prompts through. Each Step will add (positive) or remove (negative) pixels based on what stable diffusion \"thinks\" should be there according to the model's training\n - cfg = This is how much you want SDXL to adhere to the prompt. Lower CFG gives you more creative but often blurrier results. Higher CFG (recommended max 10) gives you stricter results according to the CLIP prompt. If the CFG value is too high, it can also result in \"burn-in\" where the edges of the picture become even stronger, often highlighting details in unnatural ways.\n - sampler_name = This is the sampler type, and unfortunately different samplers and schedulers have better results with fewer steps, while others have better success with higher steps. This will require experimentation on your part!\n - scheduler = The algorithm/method used to denoise the picture, used for processing certain amounts of data per step.\n - start_at_step = This is the step number the KSampler will start out it's process of de-noising the picture or \"removing the random noise to reveal the picture within\". The first KSampler usually starts with Step 0, though this is not always necessary.\n - end_at_step = This is the step number the KSampler will stop it's process of de-noising the picture. If there is any remaining leftover noise and return_with_leftover_noise is enabled, then it will pass on the left over noise to the next KSampler (assuming there is another one)."
  536. ],
  537. "color": "#223",
  538. "bgcolor": "#335",
  539. "shape": 1
  540. },
  541. {
  542. "id": 57,
  543. "type": "LoraLoader",
  544. "pos": [
  545. 463,
  546. -150
  547. ],
  548. "size": {
  549. "0": 315,
  550. "1": 126
  551. },
  552. "flags": {
  553. "pinned": false
  554. },
  555. "order": 10,
  556. "mode": 0,
  557. "inputs": [
  558. {
  559. "name": "model",
  560. "type": "MODEL",
  561. "link": 70
  562. },
  563. {
  564. "name": "clip",
  565. "type": "CLIP",
  566. "link": 71
  567. }
  568. ],
  569. "outputs": [
  570. {
  571. "name": "MODEL",
  572. "type": "MODEL",
  573. "links": [
  574. 67
  575. ],
  576. "shape": 3,
  577. "slot_index": 0
  578. },
  579. {
  580. "name": "CLIP",
  581. "type": "CLIP",
  582. "links": [
  583. 68,
  584. 69
  585. ],
  586. "shape": 3,
  587. "slot_index": 1
  588. }
  589. ],
  590. "properties": {
  591. "Node name for S&R": "LoraLoader"
  592. },
  593. "widgets_values": [
  594. "ClassipeintXL.safetensors",
  595. 1,
  596. 1
  597. ],
  598. "color": "#323",
  599. "bgcolor": "#535",
  600. "shape": 1
  601. },
  602. {
  603. "id": 58,
  604. "type": "EmptyLatentImage",
  605. "pos": [
  606. 65,
  607. 751
  608. ],
  609. "size": [
  610. 295.9440640536221,
  611. 106
  612. ],
  613. "flags": {
  614. "pinned": false
  615. },
  616. "order": 9,
  617. "mode": 0,
  618. "outputs": [
  619. {
  620. "name": "LATENT",
  621. "type": "LATENT",
  622. "links": [
  623. 66
  624. ],
  625. "shape": 3,
  626. "slot_index": 0
  627. }
  628. ],
  629. "properties": {
  630. "Node name for S&R": "EmptyLatentImage"
  631. },
  632. "widgets_values": [
  633. 896,
  634. 1152,
  635. 1
  636. ],
  637. "color": "#323",
  638. "bgcolor": "#535",
  639. "shape": 1
  640. },
  641. {
  642. "id": 50,
  643. "type": "SaveImage",
  644. "pos": [
  645. 795,
  646. 492
  647. ],
  648. "size": {
  649. "0": 702,
  650. "1": 525
  651. },
  652. "flags": {
  653. "pinned": false
  654. },
  655. "order": 15,
  656. "mode": 0,
  657. "inputs": [
  658. {
  659. "name": "images",
  660. "type": "IMAGE",
  661. "link": 55
  662. }
  663. ],
  664. "properties": {},
  665. "widgets_values": [
  666. "SDXL-Classipeint"
  667. ],
  668. "shape": 1
  669. }
  670. ],
  671. "links": [
  672. [
  673. 16,
  674. 13,
  675. 0,
  676. 6,
  677. 1,
  678. "STRING"
  679. ],
  680. [
  681. 18,
  682. 14,
  683. 0,
  684. 7,
  685. 1,
  686. "STRING"
  687. ],
  688. [
  689. 52,
  690. 4,
  691. 2,
  692. 48,
  693. 1,
  694. "VAE"
  695. ],
  696. [
  697. 55,
  698. 48,
  699. 0,
  700. 50,
  701. 0,
  702. "IMAGE"
  703. ],
  704. [
  705. 62,
  706. 7,
  707. 0,
  708. 56,
  709. 2,
  710. "CONDITIONING"
  711. ],
  712. [
  713. 63,
  714. 6,
  715. 0,
  716. 56,
  717. 1,
  718. "CONDITIONING"
  719. ],
  720. [
  721. 65,
  722. 56,
  723. 0,
  724. 48,
  725. 0,
  726. "LATENT"
  727. ],
  728. [
  729. 66,
  730. 58,
  731. 0,
  732. 56,
  733. 3,
  734. "LATENT"
  735. ],
  736. [
  737. 67,
  738. 57,
  739. 0,
  740. 56,
  741. 0,
  742. "MODEL"
  743. ],
  744. [
  745. 68,
  746. 57,
  747. 1,
  748. 6,
  749. 0,
  750. "CLIP"
  751. ],
  752. [
  753. 69,
  754. 57,
  755. 1,
  756. 7,
  757. 0,
  758. "CLIP"
  759. ],
  760. [
  761. 70,
  762. 4,
  763. 0,
  764. 57,
  765. 0,
  766. "MODEL"
  767. ],
  768. [
  769. 71,
  770. 4,
  771. 1,
  772. 57,
  773. 1,
  774. "CLIP"
  775. ]
  776. ],
  777. "groups": [
  778. {
  779. "title": "Base Prompt",
  780. "bounding": [
  781. 454,
  782. 34,
  783. 252,
  784. 361
  785. ],
  786. "color": "#3f789e"
  787. },
  788. {
  789. "title": "Text Prompts",
  790. "bounding": [
  791. 45,
  792. 35,
  793. 339,
  794. 622
  795. ],
  796. "color": "#3f789e"
  797. },
  798. {
  799. "title": "Load in BASE SDXL Model",
  800. "bounding": [
  801. 49,
  802. -411,
  803. 369,
  804. 399
  805. ],
  806. "color": "#a1309b"
  807. },
  808. {
  809. "title": "Empty Latent Image",
  810. "bounding": [
  811. 45,
  812. 665,
  813. 339,
  814. 443
  815. ],
  816. "color": "#a1309b"
  817. },
  818. {
  819. "title": "VAE Decoder",
  820. "bounding": [
  821. 789,
  822. 41,
  823. 360,
  824. 350
  825. ],
  826. "color": "#8AA"
  827. }
  828. ],
  829. "config": {},
  830. "extra": {},
  831. "version": 0.4
  832. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement