Update artworks.yaml
Browse files123456789340 unmodified lines350351352353354355356357358359360361126 unmodified lines48848949049149249366 unmodified lines5605615625635645655665675681145 unmodified lines171417151716171717181719172017211722172317241725172628 unmodified lines17551756175717581759176017611 unmodified line176317641765176617671768613 unmodified lines23822383238423852386238723882389239023912392239323942395239637 unmodified lines243424352436243724382439244024411 unmodified line244324442445244624472448244924502451878 unmodified lines333033313332_id: artworksdescription: Image generation, mask extraction, etc.readme: ""title: en=ArtWorks AI;ru=Узлы ArtWorks AIurl: https://huggingface.co/PiperMy/Node-Packages/resolve/main/artworks.yamlversion: 4nodes:image_to_image_artworks:_id: image_to_image_artworks340 unmodified linesgroups:inputs:SDXL:order: 2title: SDXL checkpointsdescription: Only for SDXL checkpointsbase:order: 1title: en=Base parameters;ru=Базовые параметрыinputs:checkpoint:order: 2126 unmodified linesgroup: basetype: integerplaceholder: "-1"outputs:images:title: en=Images;ru=Изображения66 unmodified linescheckpoint,cfgScale,size,...(performance !== "speed" ? {performance} : {}),...(seed > 0 ? {seed} : {}),1145 unmodified linestype: imagerequired: truelabels:order: 2title: en=Labels;ru=Тегиtype: jsonrequired: truedefault: '{ "girl": "girl on photo", "male": "male on photo" }'schema:id: image-labelsoutputs:labels:title: en=Labels;ru=Теги28 unmodified lines});if (!state) {const { image, labels } = inputs;const payload = {type: "classify-image",1 unmodified linepayload: {base64: false,image,labels: Object.values(labels),},};613 unmodified linesOPEN_PAAS_USER:title: PaaS usertype: stringscope: globalOPEN_PAAS_PASSWORD:title: PaaS passwordtype: stringscope: globalPAAS_BASE_URL:title: PaaS base urltype: stringscope: globalexecution: regulargroups:inputs:37 unmodified lines- mixGEMAdam8witQegoow.NeWz.safetensors|MyMIX-G/Jem <SDXL> <Realistic>- mfcgPDXL_v10.safetensors|MFCG PDXL <SDXL>- aniku_0.2.fp16.safetensors|Anime Desire <SDXL> <Fantasy>- flux1DevHyperNF4Flux1DevBNB_flux1DevHyperNF4.safetensors|Hyper NF4 Flux 1 <Flux>- STOIQONewrealityFLUXSD_F1DPreAlpha.safetensors|New Reality Flux <Flux>- juggernautXL_v9Rundiffusionphoto2.safetensors|Juggernaut XL <SDXL>- animaPencilXL_v260.safetensors|Anima Pencil XL <SDXL> <Fantasy>- bluePencilXL_v401.safetensors|Blue Pencil XL <SDXL> <Fantasy>1 unmodified line- albedobaseXL_v20.safetensors|AlbedoBase XL <SDXL>- leosamsHelloworldXL_helloworldXL50GPT4V.safetensors|Helloworld XL <SDXL>- dynavisionXLAllInOneStylized_releaseV0610Bakedvae.safetensors|DynaVision XL All In One <SDXL>- photon_v1.safetensors|Photon <SD 1.5>- afroditexlNudePeople_20Bkdvae.safetensors|Nude People <NSFW>- nosft-float8-e4m3fn.safetensors|Flux Nude People <NSFW>- asdf_0.4a_lorapov_0.2_lust_0.4.fp16.safetensors|Real Porn <NSFW>- Sexy_Aesthetic_SDXL_0.4x0.2.fp16.safetensors|Sexy & Beauty <NSFW>- aniku_0.2.fp16.safetensors|Anime Desire <NSFW>878 unmodified linessource: catalogtitle: en=Score aesthetics;ru=Оценить эстестикуversion: 1123456789340 unmodified lines350351352353354355356357358359360361362363364126 unmodified lines49149249349449549649749849950050150250366 unmodified lines5705715725735745755761145 unmodified lines1722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174428 unmodified lines17731774177517761777177817791 unmodified line1781178217831784178517861787613 unmodified lines24012402240324042405240624072408240924102411241224132414241537 unmodified lines2453245424552456245724581 unmodified line2460246124622463246424652466878 unmodified lines33453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838_id: artworksdescription: Image generation, mask extraction, etc.readme: Added PuLIDtitle: en=ArtWorks AI;ru=Узлы ArtWorks AIurl: https://huggingface.co/PiperMy/Node-Packages/resolve/main/artworks.yamlversion: 6nodes:image_to_image_artworks:_id: image_to_image_artworks340 unmodified linesgroups:inputs:SDXL:order: 3title: SDXL checkpointsdescription: Only for SDXL checkpointsbase:order: 1title: en=Base parameters;ru=Базовые параметрыspecial:order: 2title: en=Special;ru=Специальные возможностиinputs:checkpoint:order: 2126 unmodified linesgroup: basetype: integerplaceholder: "-1"controlNets:order: 1title: en=Control nets;ru=Контрольные сетиgroup: specialtype: jsonschema:id: control-netsoutputs:images:title: en=Images;ru=Изображения66 unmodified linescheckpoint,cfgScale,size,performance: performance || "express",...(seed > 0 ? {seed} : {}),1145 unmodified linestype: imagerequired: truelabels:order: 3title: en=Labels;ru=Тегиtype: jsonrequired: truedefault: '{ "girl": "girl on photo", "male": "male on photo" }'schema:id: image-labelsmodel:order: 2title: en=Model;ru=Модельtype: stringrequired: truedefault: clipenum:- clip- siglip-1- siglip-2outputs:labels:title: en=Labels;ru=Теги28 unmodified lines});if (!state) {const { image, model, labels } = inputs;const payload = {type: "classify-image",1 unmodified linepayload: {base64: false,image,model,labels: Object.values(labels),},};613 unmodified linesOPEN_PAAS_USER:title: PaaS usertype: stringscope: userOPEN_PAAS_PASSWORD:title: PaaS passwordtype: stringscope: userPAAS_BASE_URL:title: PaaS base urltype: stringscope: userexecution: regulargroups:inputs:37 unmodified lines- mixGEMAdam8witQegoow.NeWz.safetensors|MyMIX-G/Jem <SDXL> <Realistic>- mfcgPDXL_v10.safetensors|MFCG PDXL <SDXL>- aniku_0.2.fp16.safetensors|Anime Desire <SDXL> <Fantasy>- juggernautXL_v9Rundiffusionphoto2.safetensors|Juggernaut XL <SDXL>- animaPencilXL_v260.safetensors|Anima Pencil XL <SDXL> <Fantasy>- bluePencilXL_v401.safetensors|Blue Pencil XL <SDXL> <Fantasy>1 unmodified line- albedobaseXL_v20.safetensors|AlbedoBase XL <SDXL>- leosamsHelloworldXL_helloworldXL50GPT4V.safetensors|Helloworld XL <SDXL>- dynavisionXLAllInOneStylized_releaseV0610Bakedvae.safetensors|DynaVision XL All In One <SDXL>- afroditexlNudePeople_20Bkdvae.safetensors|Nude People <NSFW>- asdf_0.4a_lorapov_0.2_lust_0.4.fp16.safetensors|Real Porn <NSFW>- Sexy_Aesthetic_SDXL_0.4x0.2.fp16.safetensors|Sexy & Beauty <NSFW>- aniku_0.2.fp16.safetensors|Anime Desire <NSFW>878 unmodified linessource: catalogtitle: en=Score aesthetics;ru=Оценить эстестикуversion: 1dress_on_image:_id: dress_on_imagearrange:x: 210y: 1100category:_id: deep_swaptitle: en=Deep swap;ru=Глубокая заменаenvironment:OPEN_PAAS_USER:title: PaaS usertype: stringscope: globalOPEN_PAAS_PASSWORD:title: PaaS passwordtype: stringscope: globalPAAS_BASE_URL:title: PaaS base urltype: stringscope: globalexecution: regularinputs:image:order: 1title: en=Image;ru=Изображениеtype: imagerequired: trueprompt:order: 3title: en=Prompt;ru=Подсказкаtype: stringrequired: truemultiline: truedefault: RAW photo, red swimsuitgender:order: 2title: en=Gender;ru=Полtype: stringdefault: autoenum:- auto- male- femaleoutputs:image:title: en=Image;ru=Изображениеtype: imagepackage: artworksscript: |-const CHECK_TASK_INTERVAL = 3000;const MAX_ATTEMPTS = 100;export async function run({ inputs, state }) {const { FatalError, TimeoutError, RepeatNode, NextNode } = DEFINITIONS;const { ArtWorks, FatalError: ArtWorksError } = require('artworks');const PAAS_BASE_URL = env.variables.get('PAAS_BASE_URL');if (!PAAS_BASE_URL) {throw new FatalError('Please, set PAAS_BASE_URL in environment');}const OPEN_PAAS_USER = env.variables.get('OPEN_PAAS_USER');if (!OPEN_PAAS_USER) {throw new FatalError('Please, set OPEN_PAAS_USER in environment');}const OPEN_PAAS_PASSWORD = env.variables.get('OPEN_PAAS_PASSWORD');if (!OPEN_PAAS_PASSWORD) {throw new FatalError('Please, set OPEN_PAAS_PASSWORD in environment');}const artworks = new ArtWorks({baseUrl: PAAS_BASE_URL,username: OPEN_PAAS_USER,password: OPEN_PAAS_PASSWORD});if (!state) {const { image, gender, prompt } = inputs;const payload = {type: "dress-on-image",isFast: true,payload: {base64: false,image,gender,prompt},};try {const task = await artworks.createTask(payload);console.log(`Task created ${task}`);return RepeatNode.from({state: {payload,task,attempt: 0,startedAt: new Date()},progress: {total: MAX_ATTEMPTS,processed: 0},delay: 2000});} catch (e) {if (e instanceof ArtWorksError) {throw new FatalError(e.message);}throw e;}} else {const {payload,task,attempt,startedAt} = state;if (attempt > MAX_ATTEMPTS) {try {await artworks.cancelTask(task);} catch (e) { }const now = new Date();const time = (now - new Date(startedAt)) / 1000;throw new TimeoutError(`PaaS task for text to image ${task} timeout in ${time} sec`);}console.log(`Check task ${attempt} ${task}`);try {const results = await artworks.checkState(task);if (!results) {return RepeatNode.from({delay: CHECK_TASK_INTERVAL,state: {payload,task,attempt: attempt + 1,startedAt,},progress: {total: MAX_ATTEMPTS,processed: attempt},});}let images = results.images.map((i) => i.url);const [image] = images;return NextNode.from({outputs: {image}});} catch (e) {if (e instanceof ArtWorksError) {throw new FatalError(e.message);}throw e;}}}source: catalogtitle: en=Dress on image;ru=Переодетьversion: 1text_to_video:_id: text_to_videoarrange:x: 540y: 1100category:_id: generate_videostitle: en=Generate videos;ru=Генерация видеоenvironment:OPEN_PAAS_USER:title: PaaS usertype: stringscope: globalOPEN_PAAS_PASSWORD:title: PaaS passwordtype: stringscope: globalPAAS_BASE_URL:title: PaaS base urltype: stringscope: globalexecution: regularinputs:prompt:order: 1title: en=Prompt;ru=Подсказкаtype: stringrequired: truemultiline: truedefault: a sleek rocket launching from EarthtotalFrames:order: 2title: en=Total frames;ru=Кол-во кадровtype: integermin: 32max: 72step: 4default: 36fps:order: 3title: FPStype: integermin: 12max: 24step: 2default: 18outputs:video:title: en=Video;ru=Видеоtype: videopackage: artworksscript: |-const CHECK_TASK_INTERVAL = 5000;const MAX_ATTEMPTS = 150;export async function run({ inputs, state }) {const { FatalError, TimeoutError, RepeatNode, NextNode } = DEFINITIONS;const { ArtWorks, FatalError: ArtWorksError } = require('artworks');const PAAS_BASE_URL = env.variables.get('PAAS_BASE_URL');if (!PAAS_BASE_URL) {throw new FatalError('Please, set PAAS_BASE_URL in environment');}const OPEN_PAAS_USER = env.variables.get('OPEN_PAAS_USER');if (!OPEN_PAAS_USER) {throw new FatalError('Please, set OPEN_PAAS_USER in environment');}const OPEN_PAAS_PASSWORD = env.variables.get('OPEN_PAAS_PASSWORD');if (!OPEN_PAAS_PASSWORD) {throw new FatalError('Please, set OPEN_PAAS_PASSWORD in environment');}const artworks = new ArtWorks({baseUrl: PAAS_BASE_URL,username: OPEN_PAAS_USER,password: OPEN_PAAS_PASSWORD});if (!state) {const { prompt, totalFrames, fps } = inputs;const payload = {type: "text-to-video",isFast: true,payload: {base64: false,prompt,numFrames: totalFrames || 36,fps: fps || 18},};try {const task = await artworks.createTask(payload);console.log(`Task created ${task}`);return RepeatNode.from({state: {payload,task,attempt: 0,startedAt: new Date()},progress: {total: MAX_ATTEMPTS,processed: 0},delay: 2000});} catch (e) {if (e instanceof ArtWorksError) {throw new FatalError(e.message);}throw e;}} else {const {payload,task,attempt,startedAt} = state;if (attempt > MAX_ATTEMPTS) {try {await artworks.cancelTask(task);} catch (e) { }const now = new Date();const time = (now - new Date(startedAt)) / 1000;throw new TimeoutError(`PaaS task for text to image ${task} timeout in ${time} sec`);}console.log(`Check task ${attempt} ${task}`);try {const results = await artworks.checkState(task);if (!results) {return RepeatNode.from({delay: CHECK_TASK_INTERVAL,state: {payload,task,attempt: attempt + 1,startedAt,},progress: {total: MAX_ATTEMPTS,processed: attempt},});}let { video: { url: video } } = results;return NextNode.from({outputs: {video}});} catch (e) {if (e instanceof ArtWorksError) {throw new FatalError(e.message);}throw e;}}}source: catalogtitle: en=Text to video;ru=Сгенерировать видеоversion: 1pulid:_id: pulidarrange:x: 910y: 1100category:_id: deep_swaptitle: en=Deep swap;ru=Глубокая заменаenvironment:OPEN_PAAS_USER:title: PaaS usertype: stringscope: globalOPEN_PAAS_PASSWORD:title: PaaS passwordtype: stringscope: globalPAAS_BASE_URL:title: PaaS base urltype: stringscope: globalexecution: regularinputs:person:order: 1title: en=Person;ru=Персонаtype: imagerequired: trueprompt:order: 2title: en=Prompt;ru=Подсказкаtype: stringrequired: truemultiline: trueoutputs:image:title: ""type: imagepackage: artworksscript: |-const CHECK_TASK_INTERVAL = 5000;const MAX_ATTEMPTS = 150;export async function run({ inputs, state }) {const { FatalError, TimeoutError, RepeatNode, NextNode } = DEFINITIONS;const { ArtWorks, FatalError: ArtWorksError } = require('artworks');const PAAS_BASE_URL = env.variables.get('PAAS_BASE_URL');if (!PAAS_BASE_URL) {throw new FatalError('Please, set PAAS_BASE_URL in environment');}const OPEN_PAAS_USER = env.variables.get('OPEN_PAAS_USER');if (!OPEN_PAAS_USER) {throw new FatalError('Please, set OPEN_PAAS_USER in environment');}const OPEN_PAAS_PASSWORD = env.variables.get('OPEN_PAAS_PASSWORD');if (!OPEN_PAAS_PASSWORD) {throw new FatalError('Please, set OPEN_PAAS_PASSWORD in environment');}const artworks = new ArtWorks({baseUrl: PAAS_BASE_URL,username: OPEN_PAAS_USER,password: OPEN_PAAS_PASSWORD});if (!state) {const { person, prompt } = inputs;const payload = {type: 'run-comfy',isFast: true,payload: {pipeline: 'pullid',args: {image: person,prompt,aspect_ratio: '9:16',}},};try {const task = await artworks.createTask(payload);console.log(`Task created ${task}`);return RepeatNode.from({state: {payload,task,attempt: 0,startedAt: new Date()},progress: {total: MAX_ATTEMPTS,processed: 0},delay: 2000});} catch (e) {if (e instanceof ArtWorksError) {throw new FatalError(e.message);}throw e;}} else {const {payload,task,attempt,startedAt} = state;if (attempt > MAX_ATTEMPTS) {try {await artworks.cancelTask(task);} catch (e) { }const now = new Date();const time = (now - new Date(startedAt)) / 1000;throw new TimeoutError(`PaaS task for text to image ${task} timeout in ${time} sec`);}console.log(`Check task ${attempt} ${task}`);try {const results = await artworks.checkState(task);if (!results) {return RepeatNode.from({delay: CHECK_TASK_INTERVAL,state: {payload,task,attempt: attempt + 1,startedAt,},progress: {total: MAX_ATTEMPTS,processed: attempt},});}const { images: [{ url: image }] } = results;return NextNode.from({outputs: { image }});} catch (e) {if (e instanceof ArtWorksError) {throw new FatalError(e.message);}throw e;}}}source: catalogtitle: PuLIDversion: 1
artworks.yaml+521-15