sdwebui-api-manager's People
Forkers
freezesoul renfengyi keelzhang z2labplus fingerx kekewind yqty gulisir f901107 kingja samni728 hanksbao georgejzzz xahy123 levenston vipbbo ac-km sagamiyun ai2hub ldsxp whisky-zuo 0xviviyorg dololitingyu youminxue ultramuse cgllalala turkyden pengzhimou wenqiangy alexzheng-ucla sync-fork yuezheng2006 ynot16 wuweidao nikkkooo zqsds apachesep jackemark yunx1aoyuj1 randyluo85 wayne186 iopa788 wangxuezhi laoningvip qybing zhansnjust zhudy yijiehui99 wonderfulyoucn lonelyship harbinman erickech chenjaymar matthewo-o byshenhang bearla mrbai227sdwebui-api-manager's Issues
大佬 请问怎么实现切换模型呢
大佬 请问怎么实现切换模型呢
关于参数的一点问题
您好 能不能出一期关于参数的详解,有一些奇怪的数组我有点看不懂了,还有一些其他的插件如何使用 比如 controlnet,
关于实现多线程出图以及与前端交互间的疑问
您是想通过sdwebui-api-manager是实现请求发送到不同节点来实现多线程操作,并且通过progress获取各个节点任务进度老保持于前端页面交互?
运行报错,不知道咋解决了,报错贴出来了
`*** API error: GET: http://***:7860/info {'error': 'KeyError', 'detail': '', 'body': '', 'errors': "'dataset'"}
Traceback (most recent call last):
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/streams/memory.py", line 98, in receive
return self.receive_nowait()
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/streams/memory.py", line 93, in receive_nowait
raise WouldBlock
anyio.WouldBlock
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/base.py", line 78, in call_next
message = await recv_stream.receive()
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/streams/memory.py", line 118, in receive
raise EndOfStream
anyio.EndOfStream
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/modules/api/api.py", line 152, in exception_handling
return await call_next(request)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/base.py", line 84, in call_next
raise app_exc
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/base.py", line 108, in __call__
response = await self.dispatch_func(request, call_next)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/modules/api/api.py", line 116, in log_and_time
res: Response = await call_next(req)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/base.py", line 84, in call_next
raise app_exc
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/cors.py", line 84, in __call__
await self.app(scope, receive, send)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 24, in __call__
await responder(scope, receive, send)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 44, in __call__
await self.app(scope, receive, self.send_with_gzip)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
await route.handle(scope, receive, send)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/fastapi/routing.py", line 165, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 271, in api_info
return gradio.blocks.get_api_info(config, serialize) # type: ignore
File "/opt/source/sdwebui-api-manager/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 504, in get_api_info
serializer = serializing.COMPONENT_MAPPING[type]()
KeyError: 'dataset'
---`
我用的是腾讯云的
GPU计算型GN8 | GN8.LARGE56
Ubuntu Server 22.04 LTS 64位
找到了一个说降低gradio版本的 试了也不行
为什么我配置好后,依然无法正常使用?
1, 我的 stable-diffusion-webui 安装完成,可以正常使用(但是不能在启动时打开科学上网的VPN,否则会提示报错,这个原因不太清楚)。
2, 依照项目油管上的教程,安装了 sdwebui-api-mananger 并设置端口为 5001(因为我的5001未被占用)
3, 拉取了 sd-webui-hook-v2 的项目到本地,并通过 npm 安装并运行,设置了 .env.local 环境。
现在问题如下:
1.我通过 sdwebui-api-manager 的 docs 页面尝试进行的 text2Img 请求,则在 progress 查询中,始终为 padding ,不能正常开始任务;
2.通过 hook 工程进行的测试 , upscale 操作出现报错
3. 通过 hook 工程进行的测试 , img2img , text2img 任务能正常提交,接口返回200,但是 progress 返回始终不开始,一直是 pending。
4. 发现 hook 工程里请求的接口数据格式,与sdwebui-api-manager docs 文档中所描述的请求接口数据结构不一致....这点也很困惑
4. 通过 stable-diffusion-webui 原始页面进行生成操作,无问题,能正常画图!
以上是我的 stable-diffusion-webui 运行后,显示在底部的信息。这是什么原因?请大神们帮忙看看.... 跪谢!
~~~
~~虽然改起来不难
None 没有判断导致的报错
/home/ubuntu/sdwebui-api-manager/app/manager/reqq.py 142行需要增加None判断。
修改:
def compare_options(options):
global current_options
print("options:", options) # 打印 options 看看它的值是什么
if options is None or len(options) == 0: # 检查 options 是否为 None 或者空字典
print("Warning: Empty options")
return
current_options = {} # 初始化 current_options 为一个空字典
is_change = False
print("compare_options", options)
for k, v in options.items():
if (current_options.get(k) != v):
is_change = True
break
if (is_change):
current_options = copy.deepcopy(options)
print("start to set options to api", current_options)
api.set_options(options) # 确保 api 在此之前被定义
并发生成图有个疑问,stable diffusion的API是不支持多任务的吧?
如题,中间件只是作为一个管理任务的,实际上发送后,中间件也是在等待stable diffusion的API返回结果是吗??
现在有没有办法让stable diffusion 的API实现支持多个任务呢??
使用中发现的问题
Use hook-v2 access api-manger and then access sd-ui error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.