Skip to content

armgit / fuobe

Public Imported from GitHub
0

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.

Genjutsu: an Object swap example, the runway dress in gold satin, and the card's own before and after

Adarsh833ac2cd114d
diff --git a/public/examples/genjutsu-swap/1/in-clip.384.webp b/public/examples/genjutsu-swap/1/in-clip.384.webp
new file mode 100644
index 00000000..4c7174d1
Binary files /dev/null and b/public/examples/genjutsu-swap/1/in-clip.384.webp differ
diff --git a/public/examples/genjutsu-swap/1/in-clip.jpg b/public/examples/genjutsu-swap/1/in-clip.jpg
new file mode 100644
index 00000000..c196b1cc
Binary files /dev/null and b/public/examples/genjutsu-swap/1/in-clip.jpg differ
diff --git a/public/examples/genjutsu-swap/1/in-photo1.384.webp b/public/examples/genjutsu-swap/1/in-photo1.384.webp
new file mode 100644
index 00000000..7946a7a9
Binary files /dev/null and b/public/examples/genjutsu-swap/1/in-photo1.384.webp differ
diff --git a/public/examples/genjutsu-swap/1/in-photo1.jpg b/public/examples/genjutsu-swap/1/in-photo1.jpg
new file mode 100644
index 00000000..5212b733
Binary files /dev/null and b/public/examples/genjutsu-swap/1/in-photo1.jpg differ
diff --git a/public/examples/genjutsu-swap/1/show.mp4 b/public/examples/genjutsu-swap/1/show.mp4
new file mode 100644
index 00000000..715e2e05
Binary files /dev/null and b/public/examples/genjutsu-swap/1/show.mp4 differ
diff --git a/public/examples/genjutsu-swap/1/show.peak.webp b/public/examples/genjutsu-swap/1/show.peak.webp
new file mode 100644
index 00000000..3bc496ef
Binary files /dev/null and b/public/examples/genjutsu-swap/1/show.peak.webp differ
diff --git a/public/examples/genjutsu-swap/1/show.poster.webp b/public/examples/genjutsu-swap/1/show.poster.webp
new file mode 100644
index 00000000..2fe0c2e5
Binary files /dev/null and b/public/examples/genjutsu-swap/1/show.poster.webp differ
diff --git a/public/previews/fx/genjutsu-swap/after.480.avif b/public/previews/fx/genjutsu-swap/after.480.avif
index e645b74b..d89aadcb 100644
Binary files a/public/previews/fx/genjutsu-swap/after.480.avif and b/public/previews/fx/genjutsu-swap/after.480.avif differ
diff --git a/public/previews/fx/genjutsu-swap/after.480.webp b/public/previews/fx/genjutsu-swap/after.480.webp
index 612ae8aa..b618d10a 100644
Binary files a/public/previews/fx/genjutsu-swap/after.480.webp and b/public/previews/fx/genjutsu-swap/after.480.webp differ
diff --git a/public/previews/fx/genjutsu-swap/after.960.avif b/public/previews/fx/genjutsu-swap/after.960.avif
index 97d7b622..67afd75b 100644
Binary files a/public/previews/fx/genjutsu-swap/after.960.avif and b/public/previews/fx/genjutsu-swap/after.960.avif differ
diff --git a/public/previews/fx/genjutsu-swap/after.960.webp b/public/previews/fx/genjutsu-swap/after.960.webp
index 60004aa2..c30531a2 100644
Binary files a/public/previews/fx/genjutsu-swap/after.960.webp and b/public/previews/fx/genjutsu-swap/after.960.webp differ
diff --git a/public/previews/fx/genjutsu-swap/before.480.avif b/public/previews/fx/genjutsu-swap/before.480.avif
index 7969666f..c6d825be 100644
Binary files a/public/previews/fx/genjutsu-swap/before.480.avif and b/public/previews/fx/genjutsu-swap/before.480.avif differ
diff --git a/public/previews/fx/genjutsu-swap/before.480.webp b/public/previews/fx/genjutsu-swap/before.480.webp
index 4d579570..aa5896c9 100644
Binary files a/public/previews/fx/genjutsu-swap/before.480.webp and b/public/previews/fx/genjutsu-swap/before.480.webp differ
diff --git a/public/previews/fx/genjutsu-swap/before.960.avif b/public/previews/fx/genjutsu-swap/before.960.avif
index 53835df3..a522d993 100644
Binary files a/public/previews/fx/genjutsu-swap/before.960.avif and b/public/previews/fx/genjutsu-swap/before.960.avif differ
diff --git a/public/previews/fx/genjutsu-swap/before.960.webp b/public/previews/fx/genjutsu-swap/before.960.webp
index 2f00aa1d..38ad1f13 100644
Binary files a/public/previews/fx/genjutsu-swap/before.960.webp and b/public/previews/fx/genjutsu-swap/before.960.webp differ
diff --git a/src/lib/examples/media.generated.ts b/src/lib/examples/media.generated.ts
index 8bf7faee..7bbaac7c 100644
--- a/src/lib/examples/media.generated.ts
+++ b/src/lib/examples/media.generated.ts
@@ -6406,6 +6406,70 @@ export const EXAMPLE_MEDIA: Record<string, ExampleMediaFile> = {
"w": 1024,
"h": 768
},
+ "/examples/genjutsu-swap/1/in-clip.384.webp": {
+ "role": "show",
+ "type": "image/webp",
+ "bytes": 28334,
+ "sha256": "e3502de86cbd014c8e4dab7d6927d7895dbd354d566127ac3624347f4f401503",
+ "v": "e3502de8",
+ "w": 384,
+ "h": 288
+ },
+ "/examples/genjutsu-swap/1/in-clip.jpg": {
+ "role": "in",
+ "type": "image/jpeg",
+ "bytes": 166631,
+ "sha256": "bffdd9674febf76bab1d11dc5fc0baf79e4abe51de3113eea76502b03858da0d",
+ "v": "bffdd967",
+ "w": 1024,
+ "h": 768,
+ "thumb": "/examples/genjutsu-swap/1/in-clip.384.webp?v=e3502de8"
+ },
+ "/examples/genjutsu-swap/1/in-photo1.384.webp": {
+ "role": "show",
+ "type": "image/webp",
+ "bytes": 5994,
+ "sha256": "384b548d7a7364b50d826c48a46bd9c45c02fd6c3c70de208d45ff106b6baf59",
+ "v": "384b548d",
+ "w": 288,
+ "h": 384
+ },
+ "/examples/genjutsu-swap/1/in-photo1.jpg": {
+ "role": "in",
+ "type": "image/jpeg",
+ "bytes": 68136,
+ "sha256": "9f7263135299c0e54ff17af0daf7404ceb08adc30672bd7b6a116936784bc5e7",
+ "v": "9f726313",
+ "w": 836,
+ "h": 1114,
+ "thumb": "/examples/genjutsu-swap/1/in-photo1.384.webp?v=384b548d"
+ },
+ "/examples/genjutsu-swap/1/show.mp4": {
+ "role": "show",
+ "type": "video/mp4",
+ "bytes": 946055,
+ "sha256": "8536f985728fbf92535541a714992ddb53a21ec940f2630a95a0ab02105daead",
+ "v": "8536f985",
+ "poster": "/examples/genjutsu-swap/1/show.poster.webp?v=672a8a33"
+ },
+ "/examples/genjutsu-swap/1/show.peak.webp": {
+ "role": "show",
+ "type": "image/webp",
+ "bytes": 35188,
+ "sha256": "d511b61be744199904a1cc15488e6d97be816b4ae8f071ecd87276d2ad083b6e",
+ "v": "d511b61b",
+ "w": 512,
+ "h": 384
+ },
+ "/examples/genjutsu-swap/1/show.poster.webp": {
+ "role": "show",
+ "type": "image/webp",
+ "bytes": 89360,
+ "sha256": "672a8a33de7dfda0e5f1505bfba2fcf74f8c27222cabfd7ed12a5efec9f941f7",
+ "v": "672a8a33",
+ "w": 1024,
+ "h": 768
+ },
"/examples/image/1/out.512.webp": {
"role": "show",
"type": "image/webp",
diff --git a/src/lib/examples/plan.json b/src/lib/examples/plan.json
index adbff645..662dbb26 100644
--- a/src/lib/examples/plan.json
+++ b/src/lib/examples/plan.json
@@ -5070,5 +5070,38 @@
"at": 0.85,
"from": 0
}
+ },
+ {
+ "id": "genjutsu-swap.1",
+ "surface": "tool:genjutsu/swap",
+ "rank": 1,
+ "caption": "The runway dress, now gold satin",
+ "words": "The fuchsia dress on the runway becomes a gold satin dress of the same knee-length cut. The walk, the light and the crowd stay as filmed.",
+ "load": "genjutsu",
+ "genjutsu": {
+ "layout": "wipe",
+ "went": "A 5 s clip and a photo",
+ "recipe": {
+ "mode": "swap",
+ "engine": "open",
+ "model": "fuobe-genjutsu-swap",
+ "quality": "720p",
+ "target": "type",
+ "subject": "the dress",
+ "seed": 7,
+ "length": 5.166,
+ "originalSound": "everything"
+ }
+ },
+ "inputs": {
+ "clip": "/examples/genjutsu-swap/1/in-clip.jpg",
+ "photo1": "/examples/genjutsu-swap/1/in-photo1.jpg"
+ },
+ "output": "/examples/genjutsu-swap/1/show.mp4",
+ "rest": {
+ "src": "/examples/genjutsu-swap/1/show.peak.webp",
+ "at": 2,
+ "from": 0
+ }
}
]
diff --git a/src/lib/fx-pairs.generated.ts b/src/lib/fx-pairs.generated.ts
index a099ea4a..b5aca378 100644
--- a/src/lib/fx-pairs.generated.ts
+++ b/src/lib/fx-pairs.generated.ts
@@ -57,7 +57,7 @@ export const FX_PAIRS: Record<string, FxPair> = {
"kind": "pair"
},
"genjutsu-swap": {
- "v": "e601d762",
+ "v": "912009fd",
"kind": "pair"
},
"image-to-3d": {
diff --git a/tests/fixtures/genjutsu-examples/genjutsu-swap.1.json b/tests/fixtures/genjutsu-examples/genjutsu-swap.1.json
new file mode 100644
index 00000000..96d4402d
--- /dev/null
+++ b/tests/fixtures/genjutsu-examples/genjutsu-swap.1.json
@@ -0,0 +1,30 @@
+{
+ "id": "genjutsu-swap.1",
+ "note": "The request body of the run that made this example (file addresses replaced by neutral ones).",
+ "body": {
+ "engine": "open",
+ "mode": "swap",
+ "modelId": "fuobe-genjutsu-swap",
+ "quality": "720p",
+ "target": "type",
+ "subject": "the dress",
+ "references": [
+ "/api/files/example-photo1.png"
+ ],
+ "source": {
+ "url": "/api/files/example-clip.mp4",
+ "name": "clip.mp4",
+ "duration": 5.166,
+ "fps": 24,
+ "width": 1024,
+ "height": 768,
+ "hasAudio": true
+ },
+ "range": {
+ "start": 0,
+ "end": 5.166
+ },
+ "seed": 7,
+ "originalSound": "everything"
+ }
+}