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

郑志平爱站网创始人网页布局有哪几种方法

郑志平爱站网创始人,网页布局有哪几种方法,网站建设单位有哪些,莞城建设网站前言 在这里与Skybox AI一起#xff0c;一键打造体验无限的360世界#xff0c;这是这个AIGC一键生成全景图的网站欢迎语。 刚使用它是23年中旬#xff0c;在没有空去给客户实地拍摄全景图时#xff0c;可以快速用它生成一些相关的全景图#xff0c;用作前期沟通的VR de…前言 在这里与Skybox AI一起一键打造体验无限的360°世界这是这个AIGC一键生成全景图的网站欢迎语。 刚使用它是23年中旬在没有空去给客户实地拍摄全景图时可以快速用它生成一些相关的全景图用作前期沟通的VR demo。当时使用所有都是开放免费的遗憾的是现在使用多了很多限制比如很多风格都需要付费而且生成也需要魔法网络免费生成次数进行了限制 最新消息这个平台已经有Unity SDK了具体见https://github.com/Blockade-Games/BlockadeLabs-SDK-Unity 这个使用的限制就是必须注册使用API key来生成。 效果 如下是一些Unity中的效果 数字绘画赛博朋克 数字绘画长城 科幻风格 写实风格 卡通风格 快速体验 直接访问blockadelabs.com点击体验。 选择一种风格select a style 输入对全景图的描述 点击生成后等待一段时间就能在网站中看到效果点击下载按钮 产生的全景图是一个2:1的全景图如下 下载后导入Unity如果识别不出来图片需要改成jpg。 在unity内新建一个天空盒/Panoramic着色器的材质球具体设置参照下图 在场景中新建一个球体Sphere将材质球拖给它适当放大球体将摄像放到球体的正中间就可以看到全景图的效果。 如果生成的效果不理想得考虑更换风格和描述(这个同Stable Diffusion 的 Prompt 提示词)更改也可以在此次生成的作品上进行编辑Edit This或者再混合Remix This直到效果满意。不过如果你是免费的用户得注意次数不然就得等下个月了 API接入 这里它提供了API请求的一系列接口这些接口其实也可以在Unity内使用UnityWebRequest的方式进行请求。 首先您需要一个 API 密钥才能开始使用。 如果您没有请前往 https://api.blockadelabs.com 申请。 这是它的安全提示 不建议在应用程序的前端公开 API 密钥。相反建议使用我们为您准备的 SDK库之一或开发您自己的后端服务来与前端应用程序进行通信然后利用服务器到服务器的请求来访问 Blockade Labs API 端点。 您的 API 密钥必须作为参数包含在 HTTP 请求标头中x-api-key 或者您可以将其作为 url 查询参数api_key发送此方法不太安全https://backend.blockadelabs.com/api/v1/skybox?api_key7J7eD5TIiJR4Gky… 根据您对 POST 请求的偏好您可以将参数和值作为 JSON 或 FormData 发送。请注意如果您使用的是 JSON则需要以 base64 格式对要上传的文件进行编码。application/jsonmultipart/form-data Unity3d 中你这么写C#脚本 UnityWebRequest request new UnityWebRequest(url, reqtype);request.SetRequestHeader(x-api-key, 你的key(如7J7eD5TIiJR4Gky...));生成天空盒 您需要做的就是向 https://backend.blockadelabs.com/api/v1/skybox 发送一个带有参数的 POST 请求需要传参数提示词prompt JsonData param new JsonData();param[prompt] 你的描述(提示词);request.uploadHandler (UploadHandler)new UploadHandlerRaw(Encoding.UTF8.GetBytes(param.ToJson()));获得响应示例如下 {id: 123456, // id of your generation. It can be used to track generation progress or to cancel/delete the generationstatus: pending, // initially status is set as pending after you send a generation request. Status will change from one state to another and you will get updates for each one if you are using pusher or webhook: pending - dispatched - processing - complete. Also you can get abort or error.queue_position: 2, // position of your request in a generation queuefile_url: , // full size of generated image url (empty until generation is completed)thumb_url: , // thumbnail of generated image url (empty until generation is completed)title: World #123456, // generation titleuser_id: 1, // your user idusername: userblockadelabs.com, // your usernameerror_message: null, // if statuserror here you should see the error messageobfuscated_id: 460370b7328a5cb8dbddd6ef0d1c9dd4, // hash id of your generationpusher_channel: status_update_460370b7328a5cb8dbddd6ef0d1c9dd4, // pusher channel name used to track generation progresspusher_event: status_update, // pusher channel event used to track generation progresscreated_at: 2023-03-18T10:42:1900:00, // time createdupdated_at: 2023-03-18T10:42:1900:00 // time updated} }获得响应后仍需要等待生成器处理图像因为生成速度没有那么快。 跟踪生成进度 生成图像时参数将按以下顺序更改直到完成status如下说明 pending- 生成在队列中初始状态 dispatched- 这一次生成被送到了人工智能工作者那里 processing- AI worker 开始生成 complete- 生成已完成您可以检索生成的天空盒图像 abort- 这一次生成夭折了 error- 生成时出现错误。您可以查看参数以获取更多详细信息。error_message 每当发生更改时都会通过 Pusher或可选地通过 webhook发送相应的事件消息。 要同步生成进度有三种方式 1. Pusher 这是推荐方式的同步你生成过程通过使用官方 Pusher 库(https://pusher.com/docs/channels/channels_libraries/libraries/#official-libraries)您可以将其无缝集成到您的应用程序中。 在发送天空盒或想象生成请求时您将得到可用于跟踪生成进度的响应。 Pusher 请求参数: app_id 1555452 key a6a7b7662238ce4494d5 cluster mt1响应示例: {pusher_channel: status_update_460370b7328a5cb8dbddd6ef0d1c9dd4,pusher_event: status_update, }2. Webhook Webhook 是发送到唯一 URL 的通知。 若要启用 Webhook 状态更新只需在 Skybox 生成请求中发送一个附加参数即可。在每次状态更新时我们都会向您提供的发送带有进度更新消息 json 的请求。webhook_urlPOSTwebhook_url 您可以使用 https://webhook.site/ 测试 Webhook。 3. API数据轮询 不建议使用此方法因为它可能会触发我们的 API 速率限制器。它只能用于测试目的。 向 API 发出请求并检查更改。 这里更详细地解释。 GET https://backend.blockadelabs.com/api/v1/imagine/requests/{id}status 这是状态更新的响应示例: {id: 123456, // id of your generation. It can be used to track generation progress or to cancel the generationobfuscated_id: 460370b7328a5cb8dbddd6ef0d1c9dd4, // hash id of your generationuser_id: 1, // your user idusername: userblockadelabs.com, // your usernamestatus: pending, // initially status is set as pending after you send a generation request. Status will change from one state to another and you will get updates for each one if you are using pusher or webhook: pending - dispatched - processing - complete. Also you can get abort or error.queue_position: 1, // position of your request in a generation queuepusher_channel: status_update_460370b7328a5cb8dbddd6ef0d1c9dd4, // pusher channel name used to track generation progresspusher_event: status_update, // pusher channel event used to track generation progresserror_message: null, // if statuserror here you should find the error messagetype: skybox, // type of generation (currently skybox is the only one)title: Imagination #123456, // generation titleprompt: prompt text, // prompt text used to generate skyboxskybox_style_id: 10, // skybox style id used to generate skyboxskybox_style_name: SciFi, // skybox style name used to generate skyboxfile_url: https://blockade-platform-production.s3.amazonaws.com/images/imagine/futuristic_microdetailed_vr_scifi_concept_art_cinematic_vr_neon__dbe7f963dc23699c__2757929_dbe7.jpg?ver1, // generated skybox image (6144x3072 pixels)thumb_url: https://blockade-platform-production.s3.amazonaws.com/thumbs/imagine/thumb_futuristic_microdetailed_vr_scifi_concept_art_cinematic_vr_neon__dbe7f963dc23699c__2757929_dbe7.jpg?ver1, // generated skybox thumbnail (672x336 pixels)depth_map_url: https://blockade-platform-production.s3.amazonaws.com/depths/imagine/futuristic_microdetailed_vr_scifi_concept_art_cinematic_vr_neon__dbe7f963dc23699c__2757929_dbe7.jpg?ver1, // generated skybox depyh map image (2048x1024 pixels)created_at: 2023-03-18T10:42:1900:00, // time createdupdated_at: 2023-03-18T10:42:3900:00, // time updated }下载全景图 所有 API 端点都需要在标头中发送或作为 get 参数发送的 API 密钥。用于导出各种文件类型的天空盒的 API 路由PNG、HDRIexr、hdr、深度图、立方体图、视频纵向、横向、正方形。 获取导出类型 GET https://backend.blockadelabs.com/api/v1/skybox/export 返回示例 [{id: 1,name: JPG,key: equirectangular-jpg,},{id: 2,name: PNG,key: equirectangular-png,} ]请求导出 POST https://backend.blockadelabs.com/api/v1/skybox/export 如果导出请求已经完成您将立即收到响应并在响应中收到响应。 响应示例完整 {file_url: https://blockade-platform-production.s3.amazonaws.com/depths/imagine/vr360-stunning-beautiful-vibrant-digital-painting-sega-atari_8414305.jpg, // url for the exported fileid: 15e8a0ae53d39e2ef518b2c02f9c43ee, // id of your export request. It can be used to track progress or cancel the requesttype: depth-map-png, // requested export typetype_id: 6, // requested export type idstatus: complete, // initially status is set as pending after you send the export request. Status will change from one state to another and you will get updates for each one if you are using pusher or webhook: pending - dispatched - processing - complete. Also you can get abort or error and in some cases (ie. for JPG and Depth Map export) this will be immediately set to complete.queue_position: 0, // position of your request in a export generation queueerror_message: null, // if statuserror here you should see the error messagepusher_channel: export_status_update_15e8a0ae53d39e2ef518b2c02f9c43ee, // pusher channel name used to track export generation progresspusher_event: status_update, // pusher channel event used to track generationcreated_at: 2023-08-21T09:55:28.000000Z }获取下载链接 GET https://backend.blockadelabs.com/api/v1/skybox/export/{你的导出id} 响应示例 {file_url: https://blockade-platform-production.s3.amazonaws.com/depths/imagine/vr360-stunning-beautiful-vibrant-digital-painting-sega-atari_8414305.jpg, // url for the exported fileid: 15e8a0ae53d39e2ef518b2c02f9c43ee, // id of your export request. It can be used to track progress or cancel the requesttype: depth-map-png, // requested export typetype_id: 6, // requested export type idstatus: complete, // initially status is set as pending after you send the export request. Status will change from one state to another and you will get updates for each one if you are using pusher or webhook: pending - dispatched - processing - complete. Also you can get abort or error and in some cases (ie. for JPG and Depth Map export) this will be immediately set to complete.queue_position: 0, // position of your request in a export generation queueerror_message: null, // if statuserror here you should see the error messagepusher_channel: export_status_update_15e8a0ae53d39e2ef518b2c02f9c43ee, // pusher channel name used to track export generation progresspusher_event: status_update, // pusher channel event used to track generationwebhook_url: null, // custom webhook where generator will send updates about exportcreated_at: 2023-08-21T09:55:28.000000Z }这里响应的file_url字段就是下载链接的地址。 费用 和去年相比这个平台的功能也逐渐完善、强大系统也从完全开放状态转变成了接口式的付费使用平台而且平台的费用分级也很多详细如下
文章转载自:
http://www.morning.ywpwg.cn.gov.cn.ywpwg.cn
http://www.morning.spwln.cn.gov.cn.spwln.cn
http://www.morning.pslzp.cn.gov.cn.pslzp.cn
http://www.morning.wwgpy.cn.gov.cn.wwgpy.cn
http://www.morning.mjbjq.cn.gov.cn.mjbjq.cn
http://www.morning.mlfgx.cn.gov.cn.mlfgx.cn
http://www.morning.nyzmm.cn.gov.cn.nyzmm.cn
http://www.morning.ysybx.cn.gov.cn.ysybx.cn
http://www.morning.bklhx.cn.gov.cn.bklhx.cn
http://www.morning.phjny.cn.gov.cn.phjny.cn
http://www.morning.lxfqc.cn.gov.cn.lxfqc.cn
http://www.morning.tgbx.cn.gov.cn.tgbx.cn
http://www.morning.lzrpy.cn.gov.cn.lzrpy.cn
http://www.morning.qggxt.cn.gov.cn.qggxt.cn
http://www.morning.hrzymy.com.gov.cn.hrzymy.com
http://www.morning.kysport1102.cn.gov.cn.kysport1102.cn
http://www.morning.mnbcj.cn.gov.cn.mnbcj.cn
http://www.morning.frpb.cn.gov.cn.frpb.cn
http://www.morning.lmjtp.cn.gov.cn.lmjtp.cn
http://www.morning.ldgqh.cn.gov.cn.ldgqh.cn
http://www.morning.fnywn.cn.gov.cn.fnywn.cn
http://www.morning.qnywy.cn.gov.cn.qnywy.cn
http://www.morning.bhxzx.cn.gov.cn.bhxzx.cn
http://www.morning.wpwyx.cn.gov.cn.wpwyx.cn
http://www.morning.fllfz.cn.gov.cn.fllfz.cn
http://www.morning.drwpn.cn.gov.cn.drwpn.cn
http://www.morning.fesiy.com.gov.cn.fesiy.com
http://www.morning.gbsfs.com.gov.cn.gbsfs.com
http://www.morning.tpdg.cn.gov.cn.tpdg.cn
http://www.morning.fqnql.cn.gov.cn.fqnql.cn
http://www.morning.rfrx.cn.gov.cn.rfrx.cn
http://www.morning.rdbj.cn.gov.cn.rdbj.cn
http://www.morning.kzbpx.cn.gov.cn.kzbpx.cn
http://www.morning.swsrb.cn.gov.cn.swsrb.cn
http://www.morning.brmbm.cn.gov.cn.brmbm.cn
http://www.morning.nrpp.cn.gov.cn.nrpp.cn
http://www.morning.hrpbq.cn.gov.cn.hrpbq.cn
http://www.morning.gnlyq.cn.gov.cn.gnlyq.cn
http://www.morning.c7491.cn.gov.cn.c7491.cn
http://www.morning.mgmqf.cn.gov.cn.mgmqf.cn
http://www.morning.wklyk.cn.gov.cn.wklyk.cn
http://www.morning.wxfgg.cn.gov.cn.wxfgg.cn
http://www.morning.qrgfw.cn.gov.cn.qrgfw.cn
http://www.morning.cljpz.cn.gov.cn.cljpz.cn
http://www.morning.djpgc.cn.gov.cn.djpgc.cn
http://www.morning.ljdd.cn.gov.cn.ljdd.cn
http://www.morning.xrmwc.cn.gov.cn.xrmwc.cn
http://www.morning.rwmqp.cn.gov.cn.rwmqp.cn
http://www.morning.pdmsj.cn.gov.cn.pdmsj.cn
http://www.morning.hmmtx.cn.gov.cn.hmmtx.cn
http://www.morning.tbbxn.cn.gov.cn.tbbxn.cn
http://www.morning.lgmty.cn.gov.cn.lgmty.cn
http://www.morning.hbywj.cn.gov.cn.hbywj.cn
http://www.morning.nxwk.cn.gov.cn.nxwk.cn
http://www.morning.tpqrc.cn.gov.cn.tpqrc.cn
http://www.morning.fjlsfs.com.gov.cn.fjlsfs.com
http://www.morning.lzbut.cn.gov.cn.lzbut.cn
http://www.morning.zqybs.cn.gov.cn.zqybs.cn
http://www.morning.fthcn.cn.gov.cn.fthcn.cn
http://www.morning.xmnlc.cn.gov.cn.xmnlc.cn
http://www.morning.ymyhg.cn.gov.cn.ymyhg.cn
http://www.morning.rhpgk.cn.gov.cn.rhpgk.cn
http://www.morning.kqxwm.cn.gov.cn.kqxwm.cn
http://www.morning.rbbyd.cn.gov.cn.rbbyd.cn
http://www.morning.rbnj.cn.gov.cn.rbnj.cn
http://www.morning.kztts.cn.gov.cn.kztts.cn
http://www.morning.ddzqx.cn.gov.cn.ddzqx.cn
http://www.morning.mrpqg.cn.gov.cn.mrpqg.cn
http://www.morning.krrjb.cn.gov.cn.krrjb.cn
http://www.morning.jntcr.cn.gov.cn.jntcr.cn
http://www.morning.ljcjc.cn.gov.cn.ljcjc.cn
http://www.morning.bnxfj.cn.gov.cn.bnxfj.cn
http://www.morning.sjbpg.cn.gov.cn.sjbpg.cn
http://www.morning.wnnlr.cn.gov.cn.wnnlr.cn
http://www.morning.hwprz.cn.gov.cn.hwprz.cn
http://www.morning.jxzfg.cn.gov.cn.jxzfg.cn
http://www.morning.zfrs.cn.gov.cn.zfrs.cn
http://www.morning.xqcgb.cn.gov.cn.xqcgb.cn
http://www.morning.iterlog.com.gov.cn.iterlog.com
http://www.morning.pwbps.cn.gov.cn.pwbps.cn
http://www.tj-hxxt.cn/news/277319.html

相关文章:

  • 做时尚网站的目的多商家商城
  • 哈尔滨网站建设吕新松wordpress机器人抓取
  • 保险业网站建设天津建设工程信息网怎么报名
  • 青海教育厅门户网站电子商务网站建设招标书
  • 大连购物网站开发电商运营具体是做什么的
  • 关于加强网站建设的情况说明免费个人网站模板下载
  • 四川成都网站优化福步外贸官网
  • 开发一个功能网站多少钱学动漫设计我后悔了
  • 做网站一月工资wordpress自媒体插件
  • 手机网站前端建设政协网站的意义
  • 怎样自己做一个网站如何查看小程序的开发公司
  • 如何查一个网站的备案号企业网站建设有哪些
  • 江苏省工程建设信息官方网站网络推广和网络运营的区别
  • 网站权限怎么设置做引流去那些网站好
  • 卖域名的网站哪个好微信小程序怎么注册申请
  • 购物网站开发的业务需求分析郑州短视频运营公司
  • 网站配置域名wordpress wp unslash
  • 免费发布产品网站属于教育主管部门建设的专题资源网站是
  • 做网站点击软件海南网络营销
  • 云南省建设工程档案馆网站青岛建设公司网站建设
  • 如何做介绍监控公司的网站绿色家园网站怎么做
  • 莆田网站建设外贸做网站走啥科目
  • Godaddy优惠码网站怎么做的怎么做视频还有网站
  • 南阳专业网站建设网站做优化必须要ftp吗
  • 网站文案技巧广州平面设计
  • 网课网站做网站服务器哪种好
  • 网站开发专业怎么样企业邮箱地址格式
  • 免费网站模板 php陶瓷刀具网站策划书
  • 网站建设哪个wordpress第一张缩略图
  • 比较流行的sns营销网站中国商标网官网免费查询入口