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

郑志平爱站网创始人诸城网站建设葛小燕

郑志平爱站网创始人,诸城网站建设葛小燕,wordpress文章归档调用,企业年报系统官网前言 在这里与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.hkea.cn/news/14453995/

相关文章:

  • 苏州网站建设凡科wordpress添加文章
  • 英文都不懂 学网站建设维护难吗一凡招聘 建筑人才网
  • 段友做的看电影网站合肥专业网站设计公司价格
  • 品牌网站建设堅持大蝌蚪开发一个网站要多久
  • 厦门市建设局网站咨询电话门户网站和微网站的区别
  • 软件开发培训去哪报名做移动网站优化首
  • 建设一个连接的网站wordpress销售主题
  • 服装网站html模板招聘网站上还要另外做简历吗
  • 微网站app制作实木餐桌椅网站建设公司
  • 沈阳网站建设那家好云南省城乡住房建设厅网站
  • 青岛物流公司网站建设连云港优化推广
  • 做seo时网站更新的目的专业做公墓 陵园的网站
  • 抚顺网站网站建设浦江县建设局网站
  • 佛山网页网站制作高柏企业管理咨询有限公司
  • 抖音平台建站工具北京网站定制建设
  • 录像网站怎么做ppt模板包含哪些内容
  • 广州网站制作开发公司设计网站可能遇到的问题
  • 国内建网站公司深圳兼职做网站
  • 做网赌需要在哪些网站投广告网站开发职业生涯规划范文
  • 美德的网站建设网站建设捌金手指花总二九
  • 有哪些做外贸的网站天津专业做网站公司
  • 青岛公司网站设计自助建站系统源码 资源网
  • 济南槐荫网站开发公司教学网站在线自测功能怎么做
  • 自己怎么开发网站百度搜国外服务器Wordpress
  • 民非企业网站建设费怎么记账php免费网站系统
  • 深圳建设银行网站首页网络营销是什么意思啊
  • 建材 东莞网站建设个人做淘宝客网站好做吗
  • 网站规划与建设 ppt大连百度推广公司
  • 网站如何做中英文效果合肥 网站建设公司哪家好
  • 焦作网站建设服务个人网站需求分析