GameMale
登陆 / 注册 搜索

USERCENTER

SEARCHSITE

搜索

查看: 1260|回复: 1
收起左侧

[问题求助] 关于supir放大节点的疑问

[复制链接] |关注本帖

【夏日限定】夏日的泰凯斯業火死鬥史莱姆牧场无尽的怀表SCP-s-1889-第五页不朽之恋虚空之海的鲸吃饱金币的Doge丹雀衔五穗,人间始丰登近地夜航

     楼主| White_sky 发表于 2024-12-7 14:08:04 | 显示全部楼层 |阅读模式 |取消关注该作者的回复
    网上下了一个supir的高清放大工作流,用的时候他会在supir条件这一块报错,显示:
    Expected tensor for argument #1 'indices' to have one of the following scalar types: Long, Int; but got torch.cuda.HalfTensor instead (while checking arguments for embedding)
    我找了半天都没找到有调用嵌入embedding这个功能的节点,不知道该怎么解决
    这是工作流的json
    1. {"last_node_id":37,"last_link_id":75,"nodes":[{"id":22,"type":"CheckpointLoaderSimple","pos":[-46.676828671162895,-168.2173324063979],"size":{"0":427.78240966796875,"1":105.93355560302734},"flags":{},"order":0,"mode":0,"outputs":[{"name":"MODEL","type":"MODEL","links":[35,52],"shape":3,"slot_index":0},{"name":"CLIP","type":"CLIP","links":[39,56,61],"shape":3,"slot_index":1},{"name":"VAE","type":"VAE","links":[40,51],"shape":3,"slot_index":2}],"properties":{"Node name for S&R":"CheckpointLoaderSimple"},"widgets_values":["juggernautXL_v9Rdphoto2Lightning.safetensors"]},{"id":13,"type":"ImageResize+","pos":[-36.676828671162895,1.782667593602115],"size":{"0":315,"1":218},"flags":{},"order":12,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":24},{"name":"width","type":"INT","link":63,"widget":{"name":"width"}},{"name":"height","type":"INT","link":64,"widget":{"name":"height"}}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[25],"shape":3,"slot_index":0},{"name":"width","type":"INT","links":[47],"shape":3,"slot_index":1},{"name":"height","type":"INT","links":[48],"shape":3,"slot_index":2}],"properties":{"Node name for S&R":"ImageResize+"},"widgets_values":[2000,2000,"lanczos",true,"always",32]},{"id":25,"type":"UltimateSDUpscale","pos":[2784.1435665171816,-202.75915439759459],"size":{"0":323.505859375,"1":596.1324462890625},"flags":{},"order":24,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":49},{"name":"model","type":"MODEL","link":52},{"name":"positive","type":"CONDITIONING","link":54,"slot_index":2},{"name":"negative","type":"CONDITIONING","link":62},{"name":"vae","type":"VAE","link":51},{"name":"upscale_model","type":"UPSCALE_MODEL","link":50,"slot_index":5},{"name":"seed","type":"INT","link":59,"widget":{"name":"seed"}}],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[65,68],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"UltimateSDUpscale"},"widgets_values":[4,604924475626125,"randomize",25,7,"dpmpp_2m","karras",0.2,"None",1024,1024,8,32,"None",1,64,8,16,"enable"]},{"id":19,"type":"GetNode","pos":[1815,-158],"size":{"0":210,"1":58},"flags":{"collapsed":true},"order":1,"mode":0,"outputs":[{"name":"SUPIRVAE","type":"SUPIRVAE","links":[32]}],"title":"Get_SUPIRVAE","properties":{},"widgets_values":["SUPIRVAE"],"color":"#2a363b","bgcolor":"#3f5159"},{"id":27,"type":"CLIPTextEncode","pos":[2255.1435665171816,-198.75915439759459],"size":{"0":400,"1":200},"flags":{},"order":9,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":56}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[54],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["best quality,8K"]},{"id":31,"type":"CLIPTextEncode","pos":[2258.1435665171816,65.24084560240547],"size":{"0":400,"1":200},"flags":{},"order":10,"mode":0,"inputs":[{"name":"clip","type":"CLIP","link":61}],"outputs":[{"name":"CONDITIONING","type":"CONDITIONING","links":[62],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"CLIPTextEncode"},"widgets_values":["water mark"]},{"id":15,"type":"SetNode","pos":[-349,-216],"size":{"0":210,"1":58},"flags":{"collapsed":true},"order":13,"mode":0,"inputs":[{"name":"IMAGE","type":"IMAGE","link":28}],"outputs":[{"name":"*","type":"*","links":null}],"title":"Set_InputImage","properties":{"previousName":"InputImage"},"widgets_values":["InputImage"],"color":"#2a363b","bgcolor":"#3f5159"},{"id":23,"type":"Display Int (rgthree)","pos":[-26,236],"size":{"0":210,"1":76},"flags":{},"order":16,"mode":0,"inputs":[{"name":"input","type":"INT","link":47,"widget":{"name":"input"},"dir":3}],"properties":{"Node name for S&R":"Display Int (rgthree)"},"widgets_values":[0,""]},{"id":24,"type":"Display Int (rgthree)","pos":[-25,330],"size":{"0":210,"1":76},"flags":{},"order":17,"mode":0,"inputs":[{"name":"input","type":"INT","link":48,"widget":{"name":"input"},"dir":3}],"properties":{"Node name for S&R":"Display Int (rgthree)"},"widgets_values":[0,""]},{"id":21,"type":"SUPIR_model_loader_v2","pos":[417,-169],"size":{"0":289.0464172363281,"1":164.9540252685547},"flags":{},"order":11,"mode":0,"inputs":[{"name":"model","type":"MODEL","link":35,"slot_index":0},{"name":"clip","type":"CLIP","link":39},{"name":"vae","type":"VAE","link":40}],"outputs":[{"name":"SUPIR_model","type":"SUPIRMODEL","links":[44],"shape":3,"slot_index":0},{"name":"SUPIR_VAE","type":"SUPIRVAE","links":[45],"shape":3,"slot_index":1}],"properties":{"Node name for S&R":"SUPIR_model_loader_v2"},"widgets_values":["SUPIR-v0Q.ckpt",false,"auto"]},{"id":5,"type":"SUPIR_first_stage","pos":[740,-169],"size":{"0":297.7007751464844,"1":164.01539611816406},"flags":{},"order":18,"mode":0,"inputs":[{"name":"SUPIR_VAE","type":"SUPIRVAE","link":46,"slot_index":0},{"name":"image","type":"IMAGE","link":25},{"name":"encoder_tile_size","type":"INT","link":70,"widget":{"name":"encoder_tile_size"}},{"name":"decoder_tile_size","type":"INT","link":71,"widget":{"name":"decoder_tile_size"}}],"outputs":[{"name":"SUPIR_VAE","type":"SUPIRVAE","links":[15],"shape":3,"slot_index":0},{"name":"denoised_image","type":"IMAGE","links":[16],"shape":3,"slot_index":1},{"name":"denoised_latents","type":"LATENT","links":[20],"shape":3,"slot_index":2}],"properties":{"Node name for S&R":"SUPIR_first_stage"},"widgets_values":[true,512,512,"auto"]},{"id":11,"type":"SUPIR_encode","pos":[1061,-163],"size":{"0":246.84620666503906,"1":155.03585815429688},"flags":{},"order":19,"mode":0,"inputs":[{"name":"SUPIR_VAE","type":"SUPIRVAE","link":15},{"name":"image","type":"IMAGE","link":16},{"name":"encoder_tile_size","type":"INT","link":72,"widget":{"name":"encoder_tile_size"}}],"outputs":[{"name":"latent","type":"LATENT","links":[17],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"SUPIR_encode"},"widgets_values":[true,512,"auto"]},{"id":17,"type":"SetNode","pos":[801,53],"size":{"0":210,"1":58},"flags":{"collapsed":true},"order":15,"mode":0,"inputs":[{"name":"SUPIRVAE","type":"SUPIRVAE","link":45}],"outputs":[{"name":"SUPIRVAE","type":"SUPIRVAE","links":[46]}],"title":"Set_SUPIRVAE","properties":{"previousName":"SUPIRVAE"},"widgets_values":["SUPIRVAE"]},{"id":12,"type":"Reroute","pos":[1106,25],"size":[124,26],"flags":{},"order":14,"mode":0,"inputs":[{"name":"","type":"*","link":44}],"outputs":[{"name":"SUPIRMODEL","type":"SUPIRMODEL","links":[22,23],"slot_index":0}],"properties":{"showOutputText":true,"horizontal":false}},{"id":10,"type":"SUPIR_decode","pos":[1780,-103],"size":{"0":258.0101318359375,"1":102},"flags":{},"order":22,"mode":0,"inputs":[{"name":"SUPIR_VAE","type":"SUPIRVAE","link":32,"slot_index":0},{"name":"latents","type":"LATENT","link":12},{"name":"decoder_tile_size","type":"INT","link":75,"widget":{"name":"decoder_tile_size"}}],"outputs":[{"name":"image","type":"IMAGE","links":[26],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"SUPIR_decode"},"widgets_values":[true,512]},{"id":14,"type":"ColorMatch","pos":[1792,49],"size":{"0":255.9095916748047,"1":92.3345947265625},"flags":{},"order":23,"mode":0,"inputs":[{"name":"image_ref","type":"IMAGE","link":29,"slot_index":0},{"name":"image_target","type":"IMAGE","link":26}],"outputs":[{"name":"image","type":"IMAGE","links":[49,69],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"ColorMatch"},"widgets_values":["mkl"]},{"id":29,"type":"Seed (rgthree)","pos":[1064,119],"size":{"0":255.40321350097656,"1":130},"flags":{},"order":2,"mode":0,"outputs":[{"name":"SEED","type":"INT","links":[58,59],"shape":3,"dir":4,"slot_index":0}],"properties":{"Node name for S&R":"Seed (rgthree)"},"widgets_values":[-1,null,null,null],"color":"#322","bgcolor":"#533"},{"id":32,"type":"ImpactInt","pos":[-378,324],"size":{"0":244.58290100097656,"1":58},"flags":{},"order":3,"mode":0,"outputs":[{"name":"INT","type":"INT","links":[63,64],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"ImpactInt"},"widgets_values":[2000],"color":"#322","bgcolor":"#533"},{"id":34,"type":"Image Comparer (rgthree)","pos":{"0":1500,"1":-1043,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":640.09912109375,"1":589.1097412109375},"flags":{},"order":27,"mode":0,"inputs":[{"name":"image_a","type":"IMAGE","link":66,"dir":3},{"name":"image_b","type":"IMAGE","link":68,"dir":3}],"outputs":[],"properties":{"comparer_mode":"Slide"},"widgets_values":[["/view?filename=rgthree.compare._temp_czcqb_00031_.png&type=temp&subfolder=&rand=0.15763076986517066","/view?filename=rgthree.compare._temp_czcqb_00032_.png&type=temp&subfolder=&rand=0.5032027469015876"]]},{"id":2,"type":"LoadImage","pos":[-506.6768286711625,-168.2173324063979],"size":{"0":415.0420837402344,"1":420.9626770019531},"flags":{},"order":4,"mode":0,"outputs":[{"name":"IMAGE","type":"IMAGE","links":[24,28,66],"shape":3,"slot_index":0},{"name":"MASK","type":"MASK","links":null,"shape":3}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["8a30f0faa1404fc2226cac7e9f7cce5.png","image"]},{"id":37,"type":"ImpactInt","pos":[430,234],"size":{"0":248.16917419433594,"1":58},"flags":{},"order":5,"mode":0,"outputs":[{"name":"INT","type":"INT","links":[74],"shape":3,"slot_index":0}],"title":"Tile Stride","properties":{"Node name for S&R":"ImpactInt"},"widgets_values":[512],"color":"#322","bgcolor":"#533"},{"id":36,"type":"ImpactInt","pos":[427,114],"size":{"0":254.5851287841797,"1":61.672119140625},"flags":{},"order":6,"mode":0,"outputs":[{"name":"INT","type":"INT","links":[70,71,72,73,75],"shape":3,"slot_index":0}],"title":"Tile Size","properties":{"Node name for S&R":"ImpactInt"},"widgets_values":[1024],"color":"#322","bgcolor":"#533"},{"id":7,"type":"SUPIR_sample","pos":[1384,-158],"size":{"0":337.0279541015625,"1":441.1982116699219},"flags":{},"order":21,"mode":0,"inputs":[{"name":"SUPIR_model","type":"SUPIRMODEL","link":23,"slot_index":0},{"name":"latents","type":"LATENT","link":17},{"name":"positive","type":"SUPIR_cond_pos","link":8,"slot_index":2},{"name":"negative","type":"SUPIR_cond_neg","link":9},{"name":"seed","type":"INT","link":58,"widget":{"name":"seed"},"slot_index":4},{"name":"sampler_tile_size","type":"INT","link":73,"widget":{"name":"sampler_tile_size"}},{"name":"sampler_tile_stride","type":"INT","link":74,"widget":{"name":"sampler_tile_stride"}}],"outputs":[{"name":"latent","type":"LATENT","links":[12],"shape":3,"slot_index":0}],"properties":{"Node name for S&R":"SUPIR_sample"},"widgets_values":[174277455657960,"fixed",10,2,1.5,5,1.002,1,1,0.9,1,false,"RestoreDPMPP2MSampler",512,256],"color":"#322","bgcolor":"#533"},{"id":9,"type":"SUPIR_conditioner","pos":[746,110],"size":{"0":286.7212219238281,"1":284.2606506347656},"flags":{},"order":20,"mode":0,"inputs":[{"name":"SUPIR_model","type":"SUPIRMODEL","link":22,"slot_index":0},{"name":"latents","type":"LATENT","link":20,"slot_index":1},{"name":"captions","type":"STRING","link":null,"widget":{"name":"captions"}}],"outputs":[{"name":"positive","type":"SUPIR_cond_pos","links":[8],"shape":3,"slot_index":0},{"name":"negative","type":"SUPIR_cond_neg","links":[9],"shape":3,"slot_index":1}],"properties":{"Node name for S&R":"SUPIR_conditioner"},"widgets_values":["high quality, detailed, photograph","bad quality, blurry, messy",""],"color":"#322","bgcolor":"#533"},{"id":16,"type":"GetNode","pos":[1813,214],"size":{"0":210,"1":58},"flags":{"collapsed":true},"order":7,"mode":0,"outputs":[{"name":"IMAGE","type":"IMAGE","links":[29]}],"title":"Get_InputImage","properties":{},"widgets_values":["InputImage"],"color":"#2a363b","bgcolor":"#3f5159"},{"id":26,"type":"UpscaleModelLoader","pos":[2326,330],"size":{"0":315,"1":58},"flags":{},"order":8,"mode":0,"outputs":[{"name":"UPSCALE_MODEL","type":"UPSCALE_MODEL","links":[50],"shape":3}],"properties":{"Node name for S&R":"UpscaleModelLoader"},"widgets_values":["4x_foolhardy_Remacri.pth"]},{"id":35,"type":"SaveImage","pos":[360,-1038],"size":{"0":485.7738037109375,"1":571.880859375},"flags":{},"order":25,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":69}],"properties":{},"widgets_values":["ComfyUI"]},{"id":33,"type":"SaveImage","pos":[926,-1038],"size":{"0":468.7818908691406,"1":575.1431884765625},"flags":{},"order":26,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":65}],"properties":{},"widgets_values":["ComfyUI"]}],"links":[[8,9,0,7,2,"SUPIR_cond_pos"],[9,9,1,7,3,"SUPIR_cond_neg"],[12,7,0,10,1,"LATENT"],[15,5,0,11,0,"SUPIRVAE"],[16,5,1,11,1,"IMAGE"],[17,11,0,7,1,"LATENT"],[20,5,2,9,1,"LATENT"],[22,12,0,9,0,"SUPIRMODEL"],[23,12,0,7,0,"SUPIRMODEL"],[24,2,0,13,0,"IMAGE"],[25,13,0,5,1,"IMAGE"],[26,10,0,14,1,"IMAGE"],[28,2,0,15,0,"*"],[29,16,0,14,0,"IMAGE"],[32,19,0,10,0,"SUPIRVAE"],[35,22,0,21,0,"MODEL"],[39,22,1,21,1,"CLIP"],[40,22,2,21,2,"VAE"],[44,21,0,12,0,"*"],[45,21,1,17,0,"SUPIRVAE"],[46,17,0,5,0,"SUPIRVAE"],[47,13,1,23,0,"INT"],[48,13,2,24,0,"INT"],[49,14,0,25,0,"IMAGE"],[50,26,0,25,5,"UPSCALE_MODEL"],[51,22,2,25,4,"VAE"],[52,22,0,25,1,"MODEL"],[54,27,0,25,2,"CONDITIONING"],[56,22,1,27,0,"CLIP"],[58,29,0,7,4,"INT"],[59,29,0,25,6,"INT"],[61,22,1,31,0,"CLIP"],[62,31,0,25,3,"CONDITIONING"],[63,32,0,13,1,"INT"],[64,32,0,13,2,"INT"],[65,25,0,33,0,"IMAGE"],[66,2,0,34,0,"IMAGE"],[68,25,0,34,1,"IMAGE"],[69,14,0,35,0,"IMAGE"],[70,36,0,5,2,"INT"],[71,36,0,5,3,"INT"],[72,36,0,11,2,"INT"],[73,36,0,7,5,"INT"],[74,37,0,7,6,"INT"],[75,36,0,10,2,"INT"]],"groups":[{"title":"2k by supir","bounding":[-549,-308,2673,743],"color":"#3f789e","font_size":36,"locked":false},{"title":"8K by Upscale","bounding":[2185,-311,996,743],"color":"#3f789e","font_size":36,"locked":false},{"title":"2k","bounding":[326,-1131,545,695],"color":"#3f789e","font_size":24,"locked":false},{"title":"8K","bounding":[892,-1134,552,697],"color":"#3f789e","font_size":24,"locked":false},{"title":"Compare","bounding":[1464,-1136,719,698],"color":"#3f789e","font_size":24,"locked":false}],"config":{},"extra":{},"version":0.4}
    复制代码


    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    文字版|手机版|小黑屋|GameMale

    GMT+8, 2024-12-27 01:04 , Processed in 0.060733 second(s), 28 queries , Redis On.

    Copyright © 2013-2024 GameMale

    All Rights Reserved.

    快速回复 返回列表