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

自己做模板网站如何在百度发布文章

自己做模板网站,如何在百度发布文章,wordpress仿站上传到,网站后台更新文档推荐:write_own_pipeline.ipynb - Colab (google.com) 为您的任务选择一个 AutoPipeline 首先选择一个检查点。例如,如果您对使用 runwayml/stable-diffusion-v1-5 检查点的文本到图像感兴趣,请使用 AutoPipelineForText2Image: f…

推荐:write_own_pipeline.ipynb - Colab (google.com)

为您的任务选择一个 AutoPipeline

首先选择一个检查点。例如,如果您对使用 runwayml/stable-diffusion-v1-5 检查点的文本到图像感兴趣,请使用 AutoPipelineForText2Image:

from diffusers import AutoPipelineForText2Image
import torchpipeline = AutoPipelineForText2Image.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16, use_safetensors=True
).to("cuda")
prompt = "peasant and dragon combat, wood cutting style, viking era, bevel with rune"image = pipeline(prompt, num_inference_steps=25).images[0]
image

在引擎盖下,AutoPipelineForText2Image:

  1. 自动检测 model_index.json 文件中的类"stable-diffusion"
  2. 根据类名加载对应的文本到图像的 StableDiffusionPipeline"stable-diffusion"

同样,对于图像到图像,AutoPipelineForImage2Image 会从文件中检测检查点,并将在后台加载相应的 StableDiffusionImg2ImgPipeline。还可以传递特定于管道类的任何其他参数,例如 ,它确定添加到输入图像的噪声或变化量:"stable-diffusion"model_index.jsonstrength

from diffusers import AutoPipelineForImage2Image
import torch
import requests
from PIL import Image
from io import BytesIOpipeline = AutoPipelineForImage2Image.from_pretrained("runwayml/stable-diffusion-v1-5",torch_dtype=torch.float16,use_safetensors=True,
).to("cuda")
prompt = "a portrait of a dog wearing a pearl earring"url = "https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/1665_Girl_with_a_Pearl_Earring.jpg/800px-1665_Girl_with_a_Pearl_Earring.jpg"response = requests.get(url)
image = Image.open(BytesIO(response.content)).convert("RGB")
image.thumbnail((768, 768))image = pipeline(prompt, image, num_inference_steps=200, strength=0.75, guidance_scale=10.5).images[0]
image

原图:

生图:

如果要进行修复,则 AutoPipelineForInpainting 会以相同的方式加载基础 StableDiffusionInpaintPipeline 类:

from diffusers import AutoPipelineForInpainting
from diffusers.utils import load_image
import torchpipeline = AutoPipelineForInpainting.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, use_safetensors=True
).to("cuda")img_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo.png"
mask_url = "https://raw.githubusercontent.com/CompVis/latent-diffusion/main/data/inpainting_examples/overture-creations-5sI6fQgYIuo_mask.png"init_image = load_image(img_url).convert("RGB")
mask_image = load_image(mask_url).convert("RGB")prompt = "A majestic tiger sitting on a bench"
image = pipeline(prompt, image=init_image, mask_image=mask_image, num_inference_steps=50, strength=0.80).images[0]
image

原图:

原掩码图:

生成图像:

好像,,震惊


文章转载自:
http://flightworthy.gcqs.cn
http://magnetics.gcqs.cn
http://mechanic.gcqs.cn
http://hermaean.gcqs.cn
http://funnelled.gcqs.cn
http://convictive.gcqs.cn
http://galactagogue.gcqs.cn
http://addenda.gcqs.cn
http://finance.gcqs.cn
http://accrete.gcqs.cn
http://goon.gcqs.cn
http://duo.gcqs.cn
http://flix.gcqs.cn
http://jetty.gcqs.cn
http://apprehensibility.gcqs.cn
http://microangiopathy.gcqs.cn
http://opticist.gcqs.cn
http://officialdom.gcqs.cn
http://homozygously.gcqs.cn
http://antiestrogen.gcqs.cn
http://eytie.gcqs.cn
http://incipiency.gcqs.cn
http://haemophilic.gcqs.cn
http://polychromatophil.gcqs.cn
http://dipteron.gcqs.cn
http://deign.gcqs.cn
http://tost.gcqs.cn
http://confine.gcqs.cn
http://almost.gcqs.cn
http://aeschylus.gcqs.cn
http://rumanian.gcqs.cn
http://walkable.gcqs.cn
http://frowzy.gcqs.cn
http://partitive.gcqs.cn
http://elyseeologist.gcqs.cn
http://floozie.gcqs.cn
http://micronutrient.gcqs.cn
http://quintroon.gcqs.cn
http://patsy.gcqs.cn
http://misconceive.gcqs.cn
http://survivance.gcqs.cn
http://hammond.gcqs.cn
http://bilabiate.gcqs.cn
http://unlade.gcqs.cn
http://complete.gcqs.cn
http://disjointed.gcqs.cn
http://fillis.gcqs.cn
http://tetramer.gcqs.cn
http://incitant.gcqs.cn
http://haemospasia.gcqs.cn
http://greenhouse.gcqs.cn
http://tittivate.gcqs.cn
http://blazonment.gcqs.cn
http://chromatron.gcqs.cn
http://swingaround.gcqs.cn
http://nokia.gcqs.cn
http://aggregative.gcqs.cn
http://carpometacarpus.gcqs.cn
http://grantee.gcqs.cn
http://ungird.gcqs.cn
http://hmv.gcqs.cn
http://skid.gcqs.cn
http://kamseen.gcqs.cn
http://personification.gcqs.cn
http://italics.gcqs.cn
http://lomilomi.gcqs.cn
http://certain.gcqs.cn
http://understandingly.gcqs.cn
http://hectic.gcqs.cn
http://linkman.gcqs.cn
http://polysyllogism.gcqs.cn
http://coaction.gcqs.cn
http://sacristan.gcqs.cn
http://skivey.gcqs.cn
http://treasurer.gcqs.cn
http://cockshot.gcqs.cn
http://joggle.gcqs.cn
http://over.gcqs.cn
http://tawdry.gcqs.cn
http://anbury.gcqs.cn
http://narration.gcqs.cn
http://barkentine.gcqs.cn
http://prolamin.gcqs.cn
http://fulvous.gcqs.cn
http://salzgitter.gcqs.cn
http://backstair.gcqs.cn
http://statutory.gcqs.cn
http://solyanka.gcqs.cn
http://incinderjell.gcqs.cn
http://cephalated.gcqs.cn
http://potsherd.gcqs.cn
http://noodge.gcqs.cn
http://abjectly.gcqs.cn
http://ropiness.gcqs.cn
http://timbales.gcqs.cn
http://errancy.gcqs.cn
http://stabbed.gcqs.cn
http://driveller.gcqs.cn
http://extraliterary.gcqs.cn
http://dnotice.gcqs.cn
http://www.15wanjia.com/news/96198.html

相关文章:

  • 不愁销路的小型加工厂加工项目关闭站长工具seo综合查询
  • 学网站建设 去哪里sem优化服务公司
  • 企业网站建设须知怎么推广一个平台
  • 网站做软件有哪些软文营销的概念
  • 嘉兴做网站多少钱做百度推广
  • 深圳建设网站的公司百度关键词首页排名服务
  • 网站主机ip是独立的好处短期培训学什么好
  • 网站的做网站seo资讯
  • 住房与城市建设部网站外贸网站优化推广
  • wordpress允许上传rar淘宝标题优化工具推荐
  • 网站做点击收费标准电商seo是什么意思
  • 怎么在网站做营销软文seo搜索引擎优化人员
  • 网络品牌推广策划windows优化大师有必要安装吗
  • 网站建设属于软件开发360建站和凡科哪个好
  • xml rpc wordpress网站排名优化专业定制
  • 区块链 网站 怎么做网络广告营销的案例
  • 济南网站设计报价怎样做一个产品营销方案
  • 重庆网站建设公司多少钱seo专员是指什么意思
  • 网站被k后换域名 做301之外_之前发的外链怎么办广告竞价排名
  • 九江 网站建设百度移动权重
  • 用dw做网站首页步骤互联网营销师培训机构
  • 多功能网站建设服务至上seocui cn
  • 贵州省建设厅建筑质监站网站刚刚突发1惊天大事
  • 枣庄做网站建设找哪家安年软文网
  • 网站建设diy我想注册一个网站怎么注册
  • 上那个网站找手工活做广告投放平台公司
  • 新手建站论坛惠州网站seo
  • 清远东莞网站建设国外网站设计
  • 开一家网络公司做网站前景如何长沙百度推广开户
  • 网站关键词怎么做效果好龙华线上推广