The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.
TypeScript ai-videocomfyuicreative-toolsgenerative-aiideogramimage-generationimage-to-3dimage-to-videoltx-videominimax-h3nextjsopen-sourceopen-weightsqwen-imagetext-to-imagevideo-generationwan
Video tools: a Depth map example ready to run, and its card's before and after
Adarsh982a1ccf558c
diff --git a/public/examples/video-tools-depth/1/in-video.384.webp b/public/examples/video-tools-depth/1/in-video.384.webpnew file mode 100644index 00000000..2ed62f1cBinary files /dev/null and b/public/examples/video-tools-depth/1/in-video.384.webp differdiff --git a/public/examples/video-tools-depth/1/in-video.mp4 b/public/examples/video-tools-depth/1/in-video.mp4new file mode 100644index 00000000..fc69a432Binary files /dev/null and b/public/examples/video-tools-depth/1/in-video.mp4 differdiff --git a/public/examples/video-tools-depth/1/show.mp4 b/public/examples/video-tools-depth/1/show.mp4new file mode 100644index 00000000..e763435aBinary files /dev/null and b/public/examples/video-tools-depth/1/show.mp4 differdiff --git a/public/examples/video-tools-depth/1/show.peak.webp b/public/examples/video-tools-depth/1/show.peak.webpnew file mode 100644index 00000000..4b5b693aBinary files /dev/null and b/public/examples/video-tools-depth/1/show.peak.webp differdiff --git a/public/examples/video-tools-depth/1/show.poster.webp b/public/examples/video-tools-depth/1/show.poster.webpnew file mode 100644index 00000000..9796c246Binary files /dev/null and b/public/examples/video-tools-depth/1/show.poster.webp differdiff --git a/public/examples/video-tools-depth/2/in-video.384.webp b/public/examples/video-tools-depth/2/in-video.384.webpnew file mode 100644index 00000000..323713b8Binary files /dev/null and b/public/examples/video-tools-depth/2/in-video.384.webp differdiff --git a/public/examples/video-tools-depth/2/in-video.mp4 b/public/examples/video-tools-depth/2/in-video.mp4new file mode 100644index 00000000..f6f4ad5cBinary files /dev/null and b/public/examples/video-tools-depth/2/in-video.mp4 differdiff --git a/public/previews/fx/video-tools-depth/after.480.avif b/public/previews/fx/video-tools-depth/after.480.avifnew file mode 100644index 00000000..29193841Binary files /dev/null and b/public/previews/fx/video-tools-depth/after.480.avif differdiff --git a/public/previews/fx/video-tools-depth/after.480.webp b/public/previews/fx/video-tools-depth/after.480.webpnew file mode 100644index 00000000..671673efBinary files /dev/null and b/public/previews/fx/video-tools-depth/after.480.webp differdiff --git a/public/previews/fx/video-tools-depth/after.960.avif b/public/previews/fx/video-tools-depth/after.960.avifnew file mode 100644index 00000000..3654a073Binary files /dev/null and b/public/previews/fx/video-tools-depth/after.960.avif differdiff --git a/public/previews/fx/video-tools-depth/after.960.webp b/public/previews/fx/video-tools-depth/after.960.webpnew file mode 100644index 00000000..2681eec0Binary files /dev/null and b/public/previews/fx/video-tools-depth/after.960.webp differdiff --git a/public/previews/fx/video-tools-depth/before.480.avif b/public/previews/fx/video-tools-depth/before.480.avifnew file mode 100644index 00000000..f85bb008Binary files /dev/null and b/public/previews/fx/video-tools-depth/before.480.avif differdiff --git a/public/previews/fx/video-tools-depth/before.480.webp b/public/previews/fx/video-tools-depth/before.480.webpnew file mode 100644index 00000000..d5ed7520Binary files /dev/null and b/public/previews/fx/video-tools-depth/before.480.webp differdiff --git a/public/previews/fx/video-tools-depth/before.960.avif b/public/previews/fx/video-tools-depth/before.960.avifnew file mode 100644index 00000000..e8c769b0Binary files /dev/null and b/public/previews/fx/video-tools-depth/before.960.avif differdiff --git a/public/previews/fx/video-tools-depth/before.960.webp b/public/previews/fx/video-tools-depth/before.960.webpnew file mode 100644index 00000000..64800451Binary files /dev/null and b/public/previews/fx/video-tools-depth/before.960.webp differdiff --git a/src/lib/av/model3d.ts b/src/lib/av/model3d.tsindex 97ff8d49..a62611b3 100644--- a/src/lib/av/model3d.ts+++ b/src/lib/av/model3d.ts@@ -680,7 +680,7 @@ export function linkedIdolQuality(prev: Record<string, IdolQuality>, mode: Model/*** What an Image to 3D link asks for: ?model= (⌘K, Make it 3D) picks a model, its mode and its engine; ?model=meshy-rigging* says where Rig & animate is; else ?mode= picks a mode. ?quality= is Idol 3D's Best or Quick look, ?image= a picture for- * the photo slot (a file Fuobe keeps, or an https link), and ?photo=1 says it is a photo (an upload), so Idol's looser+ * the photo slot (a file Fuobe keeps, one of its published examples' pictures, or an https link), and ?photo=1 says it is a photo (an upload), so Idol's looser* photo crop starts on; a picture handed over from a result starts with it off (idol-5).*/export function readModel3dLink(sp: Pick<URLSearchParams, "get">): Model3dLink {@@ -694,7 +694,7 @@ export function readModel3dLink(sp: Pick<URLSearchParams, "get">): Model3dLink {const quality = sp.get("quality");if (quality === "best" || quality === "quick") out.quality = quality;const image = sp.get("image");- if (image && /^(\/api\/files\/|https:\/\/)/.test(image) && image.length <= 2048) {+ if (image && /^(\/api\/files\/|https:\/\/|\/examples\/[a-z0-9-]+\/\d+\/[a-z0-9-]+\.(jpg|png|webp)$)/.test(image) && image.length <= 2048) {out.image = image;out.photo = sp.get("photo") === "1";}diff --git a/src/lib/examples/catalog.ts b/src/lib/examples/catalog.tsindex 13b8dd33..f6b0987c 100644--- a/src/lib/examples/catalog.ts+++ b/src/lib/examples/catalog.ts@@ -268,11 +268,10 @@ function buildCard(row: PlanRow): ExampleCard {};}-/** A look card's link: a page of this site that loads one of its own examples (`?example=<id>`). */+/** A look card's link: a page of this site that opens with the example's files and settings in (`?example=<id>`, or the page's own link). */function lookHref(row: PlanRow): string {const href = row.href!;- const id = /[?&]example=([a-z0-9-]+\.\d+)(?:&|$)/.exec(href)?.[1];- if (!href.startsWith("/") || href.startsWith("//") || !id) fail(row, "a look card's link opens a page with one of its examples (/page?example=<id>)");+ if (!href.startsWith("/") || href.startsWith("//")) fail(row, "a look card's link opens a page of this site");if (Object.keys(row.inputs).length) fail(row, "a look card with a link shows no inputs (the link opens them)");return href;}diff --git a/src/lib/examples/media.generated.ts b/src/lib/examples/media.generated.tsindex 513a3940..0497c191 100644--- a/src/lib/examples/media.generated.ts+++ b/src/lib/examples/media.generated.ts@@ -8958,6 +8958,49 @@ export const EXAMPLE_MEDIA: Record<string, ExampleMediaFile> = {"w": 512,"h": 384},+ "/examples/video-tools-depth/1/in-video.384.webp": {+ "role": "show",+ "type": "image/webp",+ "bytes": 30670,+ "sha256": "50c517ada30d6d09600025cb66cf000830e5160c2084b448b3668d16b3e25db1",+ "v": "50c517ad",+ "w": 384,+ "h": 288+ },+ "/examples/video-tools-depth/1/in-video.mp4": {+ "role": "in",+ "type": "video/mp4",+ "bytes": 2305660,+ "sha256": "12a4cae3dde1b93fa7d80bf1d77711b90b11b32e97308058cd92d1d8485b95f7",+ "v": "12a4cae3",+ "thumb": "/examples/video-tools-depth/1/in-video.384.webp?v=50c517ad"+ },+ "/examples/video-tools-depth/1/show.mp4": {+ "role": "show",+ "type": "video/mp4",+ "bytes": 982836,+ "sha256": "8be6c4adfd710478fc24661016ae595ee5a0f9c7432cfe4c41df496583b15758",+ "v": "8be6c4ad",+ "poster": "/examples/video-tools-depth/1/show.poster.webp?v=07db7c84"+ },+ "/examples/video-tools-depth/1/show.peak.webp": {+ "role": "show",+ "type": "image/webp",+ "bytes": 21548,+ "sha256": "421314f43dd5dc45d5e98f623143dde93031953d3328db953aae0440b04a3310",+ "v": "421314f4",+ "w": 512,+ "h": 384+ },+ "/examples/video-tools-depth/1/show.poster.webp": {+ "role": "show",+ "type": "image/webp",+ "bytes": 69734,+ "sha256": "07db7c849a77cb31e7039a8b799a5f0582b79444f06a114a29568b75d525c289",+ "v": "07db7c84",+ "w": 1024,+ "h": 768+ },"/samples/clean-voice/noisy.m4a": {"role": "in","type": "audio/mp4",diff --git a/src/lib/examples/plan.json b/src/lib/examples/plan.jsonindex f5faaa9f..5a082dc4 100644--- a/src/lib/examples/plan.json+++ b/src/lib/examples/plan.json@@ -4832,5 +4832,21 @@"at": 0.6,"from": 0}+ },+ {+ "id": "video-tools-depth.1",+ "surface": "hub:video-tools/depth",+ "rank": 1,+ "caption": "A depth pass of a grand library",+ "modelId": "oss-video-depth-da3",+ "inputs": {+ "video": "/examples/video-tools-depth/1/in-video.mp4"+ },+ "output": "/examples/video-tools-depth/1/show.mp4",+ "rest": {+ "src": "/examples/video-tools-depth/1/show.peak.webp",+ "at": 4.717,+ "from": 0+ }}]diff --git a/src/lib/fx-pairs.generated.ts b/src/lib/fx-pairs.generated.tsindex 6afd7c18..4fc8a81a 100644--- a/src/lib/fx-pairs.generated.ts+++ b/src/lib/fx-pairs.generated.ts@@ -77,6 +77,10 @@ export const FX_PAIRS: Record<string, FxPair> = {"v": "84eb8101","kind": "pair"},+ "video-tools-depth": {+ "v": "bc0f77ce",+ "kind": "depth"+ },"video-tools-green-screen": {"v": "60977b78","kind": "pair"