当前位置: 首页 > news >正文

酒店移动网站建设方案鹤岗网站seo

酒店移动网站建设方案,鹤岗网站seo,深圳西乡做网站,特乐网站建设当当当挡~#xff0c;流动传热数值计算之余发布点AIGC相关文章#xff0c;希望大家能喜欢~ 1 Stable Diffusion各种UI分析对比 提示#xff1a;此部分主要是对SD各种界面的简要介绍和对比#xff0c;只关注Fooocus批量绘图的读者可直接跳到第二部分。 Stable Diffusion …当当当挡~流动传热数值计算之余发布点AIGC相关文章希望大家能喜欢~ 1 Stable Diffusion各种UI分析对比 提示此部分主要是对SD各种界面的简要介绍和对比只关注Fooocus批量绘图的读者可直接跳到第二部分。 Stable Diffusion WebUI、ForgeUI、ComfyUI 和 FooocusUI 都是基于 Stable Diffusion稳定扩散技术的开源图像生成UI。它们各有特色满足了不同用户在生成 AI 图像时的需求。 ​ WebUI类 Web 应用的用户界面适合普通用户是目前最受欢迎和使用最广泛的SD UI。生态非常丰富有大量插件和脚本支持但插件与WebUI版本间的冲突有时令人头秃。WebUI入门相对相对简单但生成高质量图片的操作流程较为复杂需要用户在插件、Lora、controlnet方面花费较多心思。ComfyUI类Blender 的节点编辑器用户可通过节点自定义工作流适合工作流程超复杂的专业用户。与WebUI相比ComfyUI对计算资源的要求低得多是低显存用户的福音。ComfyUI支持节点工作流导入这极大避免了繁复的工作流搭建过程。用户熟悉ComfyUI的基本功能后直接去社区寻求搭建好的典型工作流后直接开抄实现高质量出图。另外可图、混元、Flux等新秀大模型发布后ComfyUI通常是率先响应。因此对于喜欢尝鲜的用户ComfyUI将是首选。ForgeUI保留了WebUI的类Web 应用操作逻辑的同时还具有不输于ComfyUI计算效率的特点。用户若会使用WebUIForge自然也就会了。Forge插件生态较差WebUI的很多插件都不支持但好在支持adetailer提示词自动补全openpose editorwd14 taggerStyleSelectorXL等常用插件基本不影响使用。另外Flux大模型图片转视频的Deforum等插件对Forge来说也是手拿把掐这些对WebUI用户还比较遥远。FooocusUI只接受预训练模型专注于高质量图像的快速生成和性能优化是一个简单高效的UI适合追求快速高质量生图的用户在快速出美图方面估计也就Midjourney能碰一碰。Fooocus具备WebUI的部分外表但DNA里却是ComfyUI的节点工作流基因而行为上又与Midjourney比较亲近。Fooocus的不足之处在于对插件的支持缺少到了将近匮乏的地步对图片细节的把控能力也不够。但无论怎么讲Fooocus仍不失为一款非常优秀的UI。最后推荐一个超棒的Fooocus分支作品——SimpleSDXL2点此下载需上网技巧该分支与ComfyUI一样支持了SD3, Flux, 可图混元等新晋大模型若用户选择国产大模型那么该UI还支持全中文提示词特别适合中国人体质。 2 FooocusUI生厂力工具——批量绘图脚本 Fooocus擅长快速生成高质量图片故其在AIGC领域有重要用武之地。依据用户输入的系列关键词批量生成符合要求的图片是SD生产效率的重要指标。截止目前2024.9.17WebUI/Forge以及ComfyUI已通过脚本或插件等方式具备了相关能力但Fooocus的作者似乎并不打算在这方面所有突破。在Fooocus高质高效出图且官方批量绘图模块遥遥无期的背景下我开始尝试在国内外论坛寻找相关问题的解决方案没想到还真找到了两种不然我都打算自己造轮子了难顶。 2.1 Chrome/Edge油猴脚本 声明该脚本非原创本人仅针对博主AidecLi发布的代码进行了一些可能有益的修改传送门Fooocus批次執行任務功能(使用tampermonkey實現)此链接在PC端似乎有渲染问题在手机端能正常查看但需上网技巧该博主也在某视频网站发布了脚本教程大家可观看学习传送门Fooocus批次執行任務功能需上网技巧。 该方案已被证实可行并且至少可支持Fooocus2.4.3-2.5.5版本最新的Fooocus2.5.5版本可在https://github.com/lllyasviel/Fooocus.git下载安装如果FooocusUI不发生重大改变那么该脚本应该也会自动适配后续版本SimpleSDXL2作者对FooocusUI进行了魔改本脚本暂不支持。 2.1.1 Javascript脚本 请务必注意代码开头两个“// UserScript”间的代码预设代码不完全是注释绝不能删除有些部分会在代码中生效 预设中的最重要代码为// match        http://192.0.0.1:7865/*该预设限制脚本只能在 IP 为192.0.0.1即本地地址端口为7865以及其后所有路径的网页上运行。大家要使用的话必须将这段代码修改为与用户IP和端口匹配的地址就是打开Fooocus后浏览器网址栏显示的地址否则脚本不会生效 特别地// match        http://192.0.0.1:7865/*中的“*”表示通配符如果用户使用秋叶启动或自定义主题浏览器网址栏除了IP和端口外还有如“?__themedark”这种主题信息。若不使用通配符一旦用户更换了主题则必须重新更新脚本中的网址信息否则脚本将失效。 别的部分则没什么好说的大家配合注释应该能明白。 // UserScript // name Fooocus批量绘图 // namespace https://blog.aidec.tw/ || https://blog.csdn.net/liuqihang11?typeblog // version 2024-09-17 // description 输入以句号结尾的多行提示词实现Fooocus批量绘图提示词格式一行为一组末尾用英文句号隔开。 // author AidecLi Create || Syphomn Modify // match http://192.0.0.1:7865/* // icon https://www.google.com/s2/favicons?sz64domain0.1 // grant none // /UserScript (function() {use strict;let isProcessing false;let stopRequested false;let promptInputTextarea, processedTextarea, startButton, stopButton, clearButton, progressBar, statusDiv;// 添加UI元素function addUI() {const targetElement document.querySelector(#component-3);if (!targetElement) {console.error(目标元素 #component-3 未找到);return;}const container document.createElement(div);container.style.marginTop 20px;container.style.display flex;container.style.flexDirection column;container.style.gap 10px;// 待处理文本框promptInputTextarea document.createElement(textarea);promptInputTextarea.id promptList;promptInputTextarea.rows 5;promptInputTextarea.style.width 100%;promptInputTextarea.style.color red; // 设置文字为红色promptInputTextarea.placeholder Unprocessed Prompts;// 已处理文本框processedTextarea document.createElement(textarea);processedTextarea.id processedList;processedTextarea.rows 5;processedTextarea.style.width 100%;processedTextarea.style.color green; // 设置文字为绿色processedTextarea.placeholder Processed Prompts;processedTextarea.readOnly true;// 开始批次处理按钮startButton document.createElement(button);startButton.textContent Start Batch-Drawing;startButton.onclick processPrompts;startButton.style.padding 5px 10px;startButton.style.cursor pointer;startButton.className lg secondary type_row svelte-cmf5ev;// 停止批次处理按钮stopButton document.createElement(button);stopButton.textContent Stop Batch-Drawing;stopButton.onclick stopProcessing;stopButton.style.padding 5px 10px;stopButton.style.cursor pointer;stopButton.className lg secondary type_row svelte-cmf5ev;// 清除已处理文本框按钮clearButton document.createElement(button);clearButton.textContent Clear Processed-Text;clearButton.onclick clearProcessed;clearButton.style.padding 5px 10px;clearButton.style.cursor pointer;clearButton.className lg secondary type_row svelte-cmf5ev;clearButton.disabled true; // 初始化为不可用状态// 进度条progressBar document.createElement(progress);progressBar.id progressBar;progressBar.value 0;progressBar.max 100;progressBar.style.width 100%;// 状态显示statusDiv document.createElement(div);statusDiv.id statusDiv;statusDiv.textContent Enter Multiple Lines of Prompts Separated by a Period;statusDiv.style.fontWeight bold;// 将UI元素添加到容器中container.appendChild(statusDiv);container.appendChild(promptInputTextarea);container.appendChild(processedTextarea);container.appendChild(startButton);container.appendChild(stopButton);container.appendChild(clearButton);container.appendChild(progressBar);targetElement.appendChild(container);}// 处理批次提示词async function processPrompts() {if (isProcessing) return;isProcessing true;stopRequested false;disableUI();// 重新读取未处理文本框中的内容const promptList promptInputTextarea.value.split(\n).filter(p p.trim() ! );const totalPrompts promptList.length;const positivePromptTextarea document.querySelector(#positive_prompt textarea);const generateButton document.querySelector(#generate_button);let i 0;for (const prompt of promptList) {if (stopRequested) break;statusDiv.textContent 正在处理第 ${i 1} 组共 ${totalPrompts} 组提示词: ${prompt};positivePromptTextarea.value prompt;positivePromptTextarea.dispatchEvent(new Event(input, { bubbles: true }));console.log(开始绘制 prompt);await new Promise(resolve setTimeout(resolve, 500));generateButton.click();await new Promise(resolve setTimeout(resolve, 500));await waitForGeneration(generateButton);if (stopRequested) break;console.log(结束绘制 prompt);// 将已处理的移到已处理区processedTextarea.value prompt \n;// 从待处理区移除已处理的提示词promptInputTextarea.value promptList.slice(i 1).join(\n);// 更新进度条progressBar.value ((i 1) / totalPrompts) * 100;// 等待2秒再继续下一个提示词statusDiv.textContent 第 ${i 1} 组已处理完毕即将进入下一组。;await new Promise(resolve setTimeout(resolve, 1000));i;}if (stopRequested) {statusDiv.textContent 批量绘图已停止;} else {statusDiv.textContent 所有提示词均处理完毕;clearButton.disabled false; // 处理完毕后启用清除按钮}isProcessing false;enableUI();}// 停止处理function stopProcessing() {stopRequested true;isProcessing false;enableUI();// 也停止本轮正在运作的生图const stopButton document.querySelector(#stop_button);stopButton.click();// 启用清除按钮clearButton.disabled false;}// 清除已处理文本框的内容function clearProcessed() {processedTextarea.value ;clearButton.disabled true; // 清除后禁用清除按钮}// 禁用UI元素function disableUI() {promptInputTextarea.disabled true;startButton.disabled true;startButton.textContent Processing...;}// 启用UI元素function enableUI() {promptInputTextarea.disabled false;startButton.disabled false;startButton.textContent Start Batch-Drawing;}// 等待生成过程function waitForGeneration(button) {return new Promise(resolve {const observer new MutationObserver(() {if (!button.disabled !button.hidden) {// 等待按钮setTimeout(() {observer.disconnect();resolve();}, 500);}});observer.observe(button, { attributes: true, attributeFilter: [disabled, hidden] });if (stopRequested) resolve();// 如果按钮可用且没有hidden则继续if (!button.disabled !button.hidden) {observer.disconnect();resolve();}});}// 将自定义UI添加到页面上function initScript() {const maxAttempts 10;let attempts 0;function tryAddUI() {if (document.querySelector(#component-3)) {addUI();} else if (attempts maxAttempts) {attempts;setTimeout(tryAddUI, 1000); // 等待1秒重新尝试} else {console.error(在 maxAttempts 次尝试后未能找到 #component-3);}}tryAddUI();}// 页面完成加载UI到页面if (document.readyState loading) {window.addEventListener(DOMContentLoaded, initScript);} else {initScript();} })();2.1.2 Whats New ​相比于博主AidecLi的版本本文提供代码在以下方面做了一些工作 修改了提示词文本框中的文字显示颜色以解决在Fooocus深色背景下文字显示不清的问题添加了已绘提示词清除按钮以使用户能一键清除已使用提示词修改了停止按钮的作用修改前停止绘图按钮的作用是中断绘图并且已处理文本框中的文字被清空未处理文本框中的文字将被初始化修改后停止绘图按钮的作用是中断绘图但对文本框的内容不做任何处理用户可在停止绘图后重新输入提示词文本并开始绘图也可在断点处继续绘图。 2.1.3 使用方法 安装油猴插件Edge用户可在Edge插件商店安装Chrome用户可在Chrome插件商店需要上网技巧。在插件管理处打开开发人员模式 Edge用户的插件管理在这里edge://extensions/Chrome用户的插件管理在这里chrome://extensions/。 Edge ​ Chrome ​ 在油猴中添加新脚本将2.1.1节的代码复制到代码框中将// match        http://192.0.0.1:7865/*行的网址修改为自己Fooocus的实际网址 ​ ​ 正常启动Fooocus2.5.5版本后界面应该是这样 ​用户的提示词应该遵循以下格式 1girl. 2girls. 3girls. 设置fooocus出图参数后将批量提示词也可手动输入复制粘贴到“Unprocessed Prompts”文本框点击“Start Batch-Drawing”开始批量绘图第一个文本框显示了未处理提示词第二个文本框显示了已处理提示词点击“Stop Batch-Drawing”按钮以中断绘图之后用户可在该断点处继续绘图也可修改提示词后重新开始绘图“Clear Processed-Text”的作用是在用户停止绘图或所有提示词绘图完毕后清空已处理文本框的文字内容。 OK了各位Hope you all enjoy it! 2.2 接管Fooocus接口 这是SD各种UI实现批量绘图的通法也是第三方软件调用SD绘图的常用做法。该方法需要对SD源代码有基本了解至少需要掌握SD大模型、lora、高清放大等接口的调用格式我一开始本来打算采用这种方法但苦于无法找到详细的Fooocus接口说明文档就一直没搞成好在CSDN上的桥呗博主已发布了相关代码供大家学习使用传送门fooocus读取批量prompts进行批量生成图像方法。 该方法是非UI界面绘图有一定使用门槛且有效性我没有验证大家可以自行实践。 3 写在最后 本文提供了一个用于Fooocus批量绘图的简易脚本能够基本满足用户需要希望能帮到大家。 文章已提供源代码代码1.0版本由博主AidecLi无偿提供本文对其功能进行了增改更新到了2.0版本。 AIGC领域的发展需要大家共同努力欢迎各位对我提供的脚本二次开发修复Bug完善功能。 严正声明 脚本源代码为免费提供严禁任何人除博主AidecLi及其授权人员外直接利用源代码本身盈利但这不包括本脚本的二次开发产品及其衍生品否则将严肃追责若本文尤其是本声明侵犯了博主AidecLi您的任何权益请联系我商讨善后事宜。 最后再来几张AIGC美图 (masterpiece, top quality, best quality, official art, beautiful and aesthetic:1.2),(1girl),extreme detailed,(fractal art:1.3),colorful,highest detailed, Negative prompt: (worst quality, low quality:2),monochrome,zombie,overexposure,watermark,text,bad anatomy,bad hand,extra hands,extra fingers,too many fingers,fused fingers,bad arm,distorted arm,extra arms,fused arms,extra legs,missing leg,disembodied leg,extra nipples,detached arm,liquid hand,inverted hand,disembodied limb,small breasts,loli,oversized head,extra body,completely nude,extra navel,EasyNegative,(hair between eyes),sketch,duplicate,ugly,huge eyes,text,logo,worst face,(bad and mutated hands:1.3),(blurry:2),horror,geometry,bad_prompt,(bad hands),(missing fingers),multiple limbs,bad anatomy,(interlocked fingers:1.2),Ugly Fingers,(extra digit and hands and fingers and legs and arms:1.4),((2girl)),(deformed fingers:1.2),(long fingers:1.2),(bad-artist-anime),bad-artist,bad hand,extra legs,(ng_deepnegative_v1_75t), Steps: 30, Sampler: DPM 2M Karras, CFG scale: 6, Seed: 1015468391, Size: 512x768, Model hash: e3edb8a26f, Model: GhostMix鬼混_V2.0, Denoising strength: 0.5, Clip skip: 2, Hires upscale: 2, Hires upscaler: R-ESRGAN 4x Anime6B, Version: f0.0.17v1.8.0rc-latest-277-g0af28699 modern,masterpiece,best quality,8k,intricate details,hyperdetailed,hyper quality,anime,CG,1girl,modern, Negative prompt: NSFW,watermark,third-party watermark,character watermark,sharp,(worst quality, low quality:1.4),cropped,poorly drawn,low resolution,logo,text,blurry,bad anatomy,lowres,monochrome,grayscale,(signature:1.4),bad proportions,username,poorly drawn face,malformed hands,skin blemishes,skin spots,bad body,acnes,missing fingers,long body,missing limb,fused fingers,too many fingers,long neck,floating limbs,extra legs,disconnected limbs,bad feet,mutated,cross-eyed,extra arms,ugly,mutated hands,disfigured,poorly drawn hands,(deformed iris, deformed pupils:1.3),(deformed, distorted, disfigured:1.3),out of frame,extra limb,cloned face,amputation,blurry,jpeg artifacts, Steps: 20, Sampler: DPM 2M Karras, CFG scale: 7, Seed: 3081904287, Size: 768x512, Model hash: d6301c47f5, Model: 小说推文大模型-通用, VAE hash: 735e4c3a44, VAE: vae-ft-mse-840000-ema-pruned.safetensors, Denoising strength: 0.7, Hires upscale: 2, Hires upscaler: R-ESRGAN 4x Anime6B, Version: f0.0.17v1.8.0rc-latest-277-g0af28699
http://www.dnsts.com.cn/news/106918.html

相关文章:

  • 做三年网站需要多少钱免费ppt模板下载网址不需要会员
  • 重庆哪家网站沭阳三剑客做网站
  • 手机网站制作服务高端大气企业网站模板
  • 如何在线实现手机版网站建设有没有可以免费的片
  • 网站建设 amp 找VX cp5173企业传统的网络营销推广方法
  • 建设网站前景怎么样沈阳营销型网站建设
  • wordpress 整站下载怎样可以开网站
  • 泰州seo网站推广做芯片外贸生意上哪个网站
  • 临沂网站建设公司全国鄂州网站制作企业
  • 济南网站建设培训学校国家对于学校网站建设
  • 宁波手机网站开发wordpress调用友链
  • 怎么可以创建网站成都有哪些做网站的
  • 数字营销网站建设网站f式布局
  • 昆明网站推广专员百度做网站审核要多久
  • 杭州如何设计网站首页做一般的公司网站需要多少钱
  • 做网站ddos攻击郑州短视频拍摄公司
  • 做网站到底需要什么做招标投标网站如何
  • 网站开发进度设计与阶段目标建设银行网站地址
  • 网站管理员怎样管理员权限设置diy学做衣服网站
  • 徐州网站建设案例vivo手机商城
  • 在网站上做宣传属于广告费用吗女教师网课入06654侵录屏
  • 免费建站哪里找wordpress调用wecenter
  • 档案互动网站建设html网页设计作品中国传统文化
  • 广元网站设计园林景观设计公司成都
  • 北京建设教育网站室内设计平面图案例
  • 自建网站避免侵权中信建设有限责任公司江苏分公司
  • php的网站有哪些网页设计素材以及效果图
  • 哪些网站专做新闻网站建设服务器和空间费
  • 木方东莞网站建设技术支持门业网站模板
  • 网站建设的软件是哪个好网站建设中404什么意思