Spaces:
Running on Zero
Running on Zero
Examples: neutral pair names, honest provenance framing
Browse files- .gitattributes +6 -0
- README.md +7 -5
- app.py +6 -3
- examples/{real_cat_on_a_tree.mp4 β cat_on_a_tree.mp4} +0 -0
- examples/{vae_roundtrip_cat_on_a_tree.mp4 β cat_on_a_tree_vae_roundtrip.mp4} +0 -0
- examples/{real_man_jumping_rope.mp4 β man_jumping_rope.mp4} +0 -0
- examples/{vae_roundtrip_man_jumping_rope.mp4 β man_jumping_rope_vae_roundtrip.mp4} +0 -0
- examples/{real_slicing_veggie.mp4 β slicing_veggie.mp4} +0 -0
- examples/{vae_roundtrip_slicing_veggie.mp4 β slicing_veggie_vae_roundtrip.mp4} +0 -0
.gitattributes
CHANGED
|
@@ -42,3 +42,9 @@ examples/real_slicing_veggie.mp4 filter=lfs diff=lfs merge=lfs -text
|
|
| 42 |
examples/vae_roundtrip_cat_on_a_tree.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 43 |
examples/vae_roundtrip_man_jumping_rope.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 44 |
examples/vae_roundtrip_slicing_veggie.mp4 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
examples/vae_roundtrip_cat_on_a_tree.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 43 |
examples/vae_roundtrip_man_jumping_rope.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 44 |
examples/vae_roundtrip_slicing_veggie.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
examples/cat_on_a_tree.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
examples/cat_on_a_tree_vae_roundtrip.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
examples/man_jumping_rope.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
examples/man_jumping_rope_vae_roundtrip.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
examples/slicing_veggie.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
examples/slicing_veggie_vae_roundtrip.mp4 filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -40,13 +40,15 @@ It ships the paper's two detectors:
|
|
| 40 |
|
| 41 |
## Examples
|
| 42 |
|
| 43 |
-
Each example is a **VAE pair** built with the paper's own recipe: a
|
| 44 |
CC0 dataset [linoyts/repo-to-space-example-videos](https://huggingface.co/datasets/linoyts/repo-to-space-example-videos),
|
| 45 |
protocol-encoded, next to a copy of the same frames through one Wan2.1 VAE round trip
|
| 46 |
-
re-encoded with the same chain. The
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
|
| 51 |
## References
|
| 52 |
|
|
|
|
| 40 |
|
| 41 |
## Examples
|
| 42 |
|
| 43 |
+
Each example is a **VAE pair** built with the paper's own recipe: a stock clip from the
|
| 44 |
CC0 dataset [linoyts/repo-to-space-example-videos](https://huggingface.co/datasets/linoyts/repo-to-space-example-videos),
|
| 45 |
protocol-encoded, next to a copy of the same frames through one Wan2.1 VAE round trip
|
| 46 |
+
re-encoded with the same chain. The pairs showcase the *contrast* a VAE round trip
|
| 47 |
+
leaves in the traces: the round-trip twin scans with a clearly higher Ppk, concentrates
|
| 48 |
+
its comb share on the VAE's frame-group period or its harmonic (C4/C8 β e.g. Ppk
|
| 49 |
+
0.477 vs 0.091 and C8 0.82 vs 0.11 for the cat clip) and the CaDet artifact path
|
| 50 |
+
scores it higher than its twin. Clip names are neutral on purpose β no ground-truth
|
| 51 |
+
authenticity claim is made about the stock footage itself.
|
| 52 |
|
| 53 |
## References
|
| 54 |
|
app.py
CHANGED
|
@@ -159,9 +159,12 @@ def run_detect(video, progress=gr.Progress()):
|
|
| 159 |
|
| 160 |
|
| 161 |
# --- examples: VAE pairs built from CC0 clips ------------------------------------
|
| 162 |
-
# Each pair is a
|
| 163 |
# (protocol-encoded) plus a copy of the SAME frames through one Wan2.1 VAE round
|
| 164 |
# trip, re-encoded with the same chain β the paper's negative-pair construction.
|
|
|
|
|
|
|
|
|
|
| 165 |
EX_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "examples")
|
| 166 |
EXAMPLE_FILES = sorted(
|
| 167 |
os.path.join(EX_DIR, f) for f in os.listdir(EX_DIR) if f.endswith(".mp4")
|
|
@@ -215,7 +218,7 @@ with gr.Blocks(title="VAE Rhythm Β· AI-generated video detection") as demo:
|
|
| 215 |
outputs=[scan_plot, scan_df, scan_md],
|
| 216 |
cache_examples=True,
|
| 217 |
cache_mode="lazy",
|
| 218 |
-
label="Examples β each
|
| 219 |
)
|
| 220 |
with gr.TabItem("CaDet (trained detector)"):
|
| 221 |
gr.Markdown(
|
|
@@ -242,7 +245,7 @@ with gr.Blocks(title="VAE Rhythm Β· AI-generated video detection") as demo:
|
|
| 242 |
outputs=[det_score, det_sem, det_art, det_raw, det_time, det_md],
|
| 243 |
cache_examples=True,
|
| 244 |
cache_mode="lazy",
|
| 245 |
-
label="Examples β each
|
| 246 |
)
|
| 247 |
|
| 248 |
gr.Markdown(
|
|
|
|
| 159 |
|
| 160 |
|
| 161 |
# --- examples: VAE pairs built from CC0 clips ------------------------------------
|
| 162 |
+
# Each pair is a stock clip from the CC0 dataset linoyts/repo-to-space-example-videos
|
| 163 |
# (protocol-encoded) plus a copy of the SAME frames through one Wan2.1 VAE round
|
| 164 |
# trip, re-encoded with the same chain β the paper's negative-pair construction.
|
| 165 |
+
# Names are neutral on purpose: the pairs showcase the *contrast* a VAE round trip
|
| 166 |
+
# leaves in the traces; no ground-truth authenticity claim is made about the
|
| 167 |
+
# stock footage itself.
|
| 168 |
EX_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "examples")
|
| 169 |
EXAMPLE_FILES = sorted(
|
| 170 |
os.path.join(EX_DIR, f) for f in os.listdir(EX_DIR) if f.endswith(".mp4")
|
|
|
|
| 218 |
outputs=[scan_plot, scan_df, scan_md],
|
| 219 |
cache_examples=True,
|
| 220 |
cache_mode="lazy",
|
| 221 |
+
label="Examples β each stock clip and its Wan2.1 round-trip twin",
|
| 222 |
)
|
| 223 |
with gr.TabItem("CaDet (trained detector)"):
|
| 224 |
gr.Markdown(
|
|
|
|
| 245 |
outputs=[det_score, det_sem, det_art, det_raw, det_time, det_md],
|
| 246 |
cache_examples=True,
|
| 247 |
cache_mode="lazy",
|
| 248 |
+
label="Examples β each stock clip and its Wan2.1 round-trip twin",
|
| 249 |
)
|
| 250 |
|
| 251 |
gr.Markdown(
|
examples/{real_cat_on_a_tree.mp4 β cat_on_a_tree.mp4}
RENAMED
|
File without changes
|
examples/{vae_roundtrip_cat_on_a_tree.mp4 β cat_on_a_tree_vae_roundtrip.mp4}
RENAMED
|
File without changes
|
examples/{real_man_jumping_rope.mp4 β man_jumping_rope.mp4}
RENAMED
|
File without changes
|
examples/{vae_roundtrip_man_jumping_rope.mp4 β man_jumping_rope_vae_roundtrip.mp4}
RENAMED
|
File without changes
|
examples/{real_slicing_veggie.mp4 β slicing_veggie.mp4}
RENAMED
|
File without changes
|
examples/{vae_roundtrip_slicing_veggie.mp4 β slicing_veggie_vae_roundtrip.mp4}
RENAMED
|
File without changes
|