mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-30 10:57:23 +08:00
Compare commits
5 Commits
6088d096cc
...
dc7d672d07
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc7d672d07 | ||
|
|
3e3ed8cc2a | ||
|
|
67f6cb3527 | ||
|
|
5585cca20b | ||
|
|
ea86d843de |
@ -1,2 +1,2 @@
|
||||
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --disable-smart-memory
|
||||
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --enable-dynamic-vram
|
||||
pause
|
||||
@ -193,13 +193,15 @@ If you have trouble extracting it, right click the file -> properties -> unblock
|
||||
|
||||
The portable above currently comes with python 3.13 and pytorch cuda 13.0. Update your Nvidia drivers if it doesn't start.
|
||||
|
||||
#### Alternative Downloads:
|
||||
#### All Official Portable Downloads:
|
||||
|
||||
[Portable for AMD GPUs](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_amd.7z)
|
||||
|
||||
[Experimental portable for Intel GPUs](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_intel.7z)
|
||||
[Portable for Intel GPUs](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_intel.7z)
|
||||
|
||||
[Portable with pytorch cuda 12.6 and python 3.12](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_nvidia_cu126.7z) (Supports Nvidia 10 series and older GPUs).
|
||||
[Portable for Nvidia GPUs](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_nvidia.7z) (supports 20 series and above).
|
||||
|
||||
[Portable for Nvidia GPUs with pytorch cuda 12.6 and python 3.12](https://github.com/comfyanonymous/ComfyUI/releases/latest/download/ComfyUI_windows_portable_nvidia_cu126.7z) (Supports Nvidia 10 series and older GPUs).
|
||||
|
||||
#### How do I share models between another UI and ComfyUI?
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@ from typing import Optional
|
||||
from folder_paths import folder_names_and_paths, get_directory_by_type
|
||||
from api_server.services.terminal_service import TerminalService
|
||||
import app.logger
|
||||
import ipaddress
|
||||
import os
|
||||
|
||||
class InternalRoutes:
|
||||
@ -72,7 +73,19 @@ class InternalRoutes:
|
||||
|
||||
def get_app(self):
|
||||
if self._app is None:
|
||||
self._app = web.Application()
|
||||
self._app = web.Application(middlewares=[self._local_only_middleware])
|
||||
self.setup_routes()
|
||||
self._app.add_routes(self.routes)
|
||||
return self._app
|
||||
|
||||
@web.middleware
|
||||
async def _local_only_middleware(self, request, handler):
|
||||
remote = request.remote
|
||||
if remote is None:
|
||||
raise web.HTTPForbidden(reason="Internal endpoints are only accessible from localhost")
|
||||
try:
|
||||
if not ipaddress.ip_address(remote).is_loopback:
|
||||
raise web.HTTPForbidden(reason="Internal endpoints are only accessible from localhost")
|
||||
except ValueError:
|
||||
raise web.HTTPForbidden(reason="Internal endpoints are only accessible from localhost")
|
||||
return await handler(request)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user