9 ComfyUI nodes for 360 panoramic image generation using FLUX.1-dev with DiT360 LoRA. Supports text-to-panorama, inpainting, and outpainting via RF-Inversion with PersonalizeAnything attention. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
802 B
Python
32 lines
802 B
Python
import os
|
|
import urllib.request
|
|
|
|
|
|
THREE_JS_FILES = [
|
|
"https://cdnjs.cloudflare.com/ajax/libs/three.js/0.172.0/three.module.min.js",
|
|
]
|
|
|
|
|
|
def main():
|
|
extension_path = os.path.dirname(__file__)
|
|
js_lib_path = os.path.join(extension_path, "web", "js", "lib")
|
|
os.makedirs(js_lib_path, exist_ok=True)
|
|
|
|
for url in THREE_JS_FILES:
|
|
file_name = os.path.basename(url)
|
|
file_path = os.path.join(js_lib_path, file_name)
|
|
|
|
if os.path.exists(file_path):
|
|
print(f"[DiT360Plus] Exists: {file_path}")
|
|
continue
|
|
|
|
print(f"[DiT360Plus] Downloading: {url}")
|
|
urllib.request.urlretrieve(url, file_path)
|
|
print(f"[DiT360Plus] Saved: {file_path}")
|
|
|
|
print("[DiT360Plus] Three.js install complete.")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|