Tuan Tran commited on
Commit
5f7dcf9
·
1 Parent(s): e84d396

update model and dataset labels

Browse files
backend/app.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  import json
2
  import logging
3
  import mimetypes
 
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
  import json
8
  import logging
9
  import mimetypes
backend/config.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  # Change these values to match your dataset structure if loading locally or from a different source.
2
  # IMPORTANT: When running from docker more setup is required (e.g. on Huggingface)
3
  import os
@@ -130,11 +136,11 @@ MODALITY_CONFIG_CONSTANTS = {
130
  }
131
 
132
  DATASET_CONFIGS = {
133
- "voxpopuli_1k/audio": {"type": "audio", "path": ABS_DATASET_PATH},
134
- "ravdess_1k/audio": {"type": "audio", "path": ABS_DATASET_PATH},
135
- "val2014_1k_v3/image": {"type": "image", "path": ABS_DATASET_PATH},
136
- "sa_1b_val_1k/image": {"type": "image", "path": ABS_DATASET_PATH},
137
- "sav_val_full_v2/video": {"type": "video", "path": ABS_DATASET_PATH},
138
  }
139
 
140
 
@@ -213,11 +219,11 @@ def _get_db_key_for_dataset(dataset_base_name):
213
  """Helper function to determine the database key for a dataset"""
214
  # Map of dataset names to their db keys
215
  db_key_mapping = {
216
- "voxpopuli_1k": "voxpopuli",
217
- "val2014_1k_v3": "local_val2014",
218
- "sa_1b_val_1k": "local_valid",
219
- "sav_val_full_v2": "sa-v_sav_val_videos",
220
- "ravdess_1k": "ravdess", # Add mapping for ravdess dataset
221
  }
222
 
223
  return db_key_mapping.get(dataset_base_name, dataset_base_name)
 
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
  # Change these values to match your dataset structure if loading locally or from a different source.
8
  # IMPORTANT: When running from docker more setup is required (e.g. on Huggingface)
9
  import os
 
136
  }
137
 
138
  DATASET_CONFIGS = {
139
+ "Voxpopuli": {"type": "audio", "path": ABS_DATASET_PATH},
140
+ "Ravdess": {"type": "audio", "path": ABS_DATASET_PATH},
141
+ "MS-COCO": {"type": "image", "path": ABS_DATASET_PATH},
142
+ "SA-1B": {"type": "image", "path": ABS_DATASET_PATH},
143
+ "SA-V": {"type": "video", "path": ABS_DATASET_PATH},
144
  }
145
 
146
 
 
219
  """Helper function to determine the database key for a dataset"""
220
  # Map of dataset names to their db keys
221
  db_key_mapping = {
222
+ "Voxpopuli": "voxpopuli",
223
+ "MS-COCO": "local_val2014",
224
+ "SA-1B": "local_valid",
225
+ "SA-V": "sa-v_sav_val_videos",
226
+ "Ravdess": "ravdess", # Add mapping for ravdess dataset
227
  }
228
 
229
  return db_key_mapping.get(dataset_base_name, dataset_base_name)
backend/descriptions.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  DESCRIPTIONS = {
2
  "leaderboard_header": {
3
  "description": "A leaderboard for evaluating the performance of watermarking methods using the OmniSealBench framework.",
@@ -186,24 +192,24 @@ MODEL_DESCRIPTIONS = {
186
  "alias": "MBRS"
187
  },
188
  "videoseal_0.0": {
189
- "full_name": "VideoSeal",
190
  "description": "A neural video watermarking system designed to embed imperceptible watermarks that are robust against common video manipulations and processing operations. Legacy model with more robust but visible watermarks.",
191
  "paper_link": "https://arxiv.org/abs/2412.09492",
192
  "github_link": "https://github.com/facebookresearch/videoseal",
193
  "message_size": "96 bits",
194
- "alias": "VideoSeal v1.0"
195
  },
196
  "videoseal_1.0": {
197
- "full_name": "VideoSeal",
198
  "description": "A neural video watermarking system designed to embed imperceptible watermarks that are robust against common video manipulations and processing operations. Updated model with best balance of efficiency and robustness.",
199
  "paper_link": "https://arxiv.org/abs/2412.09492",
200
  "github_link": "https://github.com/facebookresearch/videoseal",
201
  "message_size": "256 bits",
202
- "alias": "VideoSeal v2.0"
203
  },
204
- "pixelseal": {
205
  "full_name": "PixelSeal",
206
- "description": "Pixel Seal: Adversarial-only training for invisible image and video watermarking, with improved robustness-imperceptibility tradeoff.",
207
  "paper_link": "https://arxiv.org/abs/2412.09492",
208
  "github_link": "https://github.com/facebookresearch/videoseal",
209
  "message_size": "256 bits",
@@ -220,35 +226,35 @@ MODEL_DESCRIPTIONS = {
220
  }
221
 
222
  DATASET_DESCRIPTIONS = {
223
- "ravdess_1k/audio": {
224
  "full_name": "RAVDESS Emotional speech audio",
225
  "description": "The RAVDESS dataset contains emotional speech and song recordings, which can be used for audio watermarking tasks. The 1K version includes 1000 samples.",
226
  "paper_link": "https://doi.org/10.5281/zenodo.1188976",
227
  "github_link": "",
228
  },
229
 
230
- "voxpopuli_1k/audio": {
231
  "full_name": "VoxPopuli 1K Audio",
232
  "description": "The VoxPopuli dataset is a large collection of audio recordings from various speakers, suitable for audio watermarking tasks. The 1K version includes 1000 samples.",
233
  "paper_link": "https://arxiv.org/abs/2101.00390",
234
  "github_link": "",
235
  },
236
 
237
- "val2014_1k_v3/image": {
238
  "full_name": "COCO 2014 Validation Set",
239
  "description": "The COCO 2014 validation set is a widely used dataset for image watermarking tasks. It contains a diverse set of images with various objects and scenes.",
240
  "paper_link": "https://arxiv.org/abs/1405.0312",
241
  "github_link": "",
242
  },
243
 
244
- "sa_1b_val_1k/image": {
245
  "full_name": "Segment Anything 1 Billion",
246
  "description": "Segment Anything 1 Billion (SA-1B) is a dataset designed for training general-purpose object segmentation models from open world images.",
247
  "paper_link": "https://arxiv.org/abs/2304.02643",
248
  "github_link": "",
249
  },
250
 
251
- "sav_val_full_v2/video": {
252
  "full_name": "SA-Video Dataset",
253
  "description": "The SA-Video dataset is a collection of videos designed for video watermarking tasks. It includes a variety of video content suitable for testing watermarking techniques.",
254
  "paper_link": "https://arxiv.org/abs/2401.17264",
 
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
  DESCRIPTIONS = {
8
  "leaderboard_header": {
9
  "description": "A leaderboard for evaluating the performance of watermarking methods using the OmniSealBench framework.",
 
192
  "alias": "MBRS"
193
  },
194
  "videoseal_0.0": {
195
+ "full_name": "VideoSeal (Legacy)",
196
  "description": "A neural video watermarking system designed to embed imperceptible watermarks that are robust against common video manipulations and processing operations. Legacy model with more robust but visible watermarks.",
197
  "paper_link": "https://arxiv.org/abs/2412.09492",
198
  "github_link": "https://github.com/facebookresearch/videoseal",
199
  "message_size": "96 bits",
200
+ "alias": "VideoSeal v0.0"
201
  },
202
  "videoseal_1.0": {
203
+ "full_name": "VideoSeal v1.0",
204
  "description": "A neural video watermarking system designed to embed imperceptible watermarks that are robust against common video manipulations and processing operations. Updated model with best balance of efficiency and robustness.",
205
  "paper_link": "https://arxiv.org/abs/2412.09492",
206
  "github_link": "https://github.com/facebookresearch/videoseal",
207
  "message_size": "256 bits",
208
+ "alias": "VideoSeal v1.0"
209
  },
210
+ "pixelseal": {
211
  "full_name": "PixelSeal",
212
+ "description": "Adversarial-only training for invisible image and video watermarking.",
213
  "paper_link": "https://arxiv.org/abs/2412.09492",
214
  "github_link": "https://github.com/facebookresearch/videoseal",
215
  "message_size": "256 bits",
 
226
  }
227
 
228
  DATASET_DESCRIPTIONS = {
229
+ "Ravdess": {
230
  "full_name": "RAVDESS Emotional speech audio",
231
  "description": "The RAVDESS dataset contains emotional speech and song recordings, which can be used for audio watermarking tasks. The 1K version includes 1000 samples.",
232
  "paper_link": "https://doi.org/10.5281/zenodo.1188976",
233
  "github_link": "",
234
  },
235
 
236
+ "Voxpopuli": {
237
  "full_name": "VoxPopuli 1K Audio",
238
  "description": "The VoxPopuli dataset is a large collection of audio recordings from various speakers, suitable for audio watermarking tasks. The 1K version includes 1000 samples.",
239
  "paper_link": "https://arxiv.org/abs/2101.00390",
240
  "github_link": "",
241
  },
242
 
243
+ "MS-COCO": {
244
  "full_name": "COCO 2014 Validation Set",
245
  "description": "The COCO 2014 validation set is a widely used dataset for image watermarking tasks. It contains a diverse set of images with various objects and scenes.",
246
  "paper_link": "https://arxiv.org/abs/1405.0312",
247
  "github_link": "",
248
  },
249
 
250
+ "SA-1B": {
251
  "full_name": "Segment Anything 1 Billion",
252
  "description": "Segment Anything 1 Billion (SA-1B) is a dataset designed for training general-purpose object segmentation models from open world images.",
253
  "paper_link": "https://arxiv.org/abs/2304.02643",
254
  "github_link": "",
255
  },
256
 
257
+ "SA-V": {
258
  "full_name": "SA-Video Dataset",
259
  "description": "The SA-Video dataset is a collection of videos designed for video watermarking tasks. It includes a variety of video content suitable for testing watermarking techniques.",
260
  "paper_link": "https://arxiv.org/abs/2401.17264",
backend/examples.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  import ast
2
  import json
3
  import re
@@ -249,6 +255,6 @@ def get_examples_tab(datatype: str, dataset_name: str):
249
  config["path"],
250
  datatype=datatype,
251
  dataset_name=config["dataset_name"],
252
- db_key=config["db_key"],
253
  )
254
  return infos
 
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
  import ast
8
  import json
9
  import re
 
255
  config["path"],
256
  datatype=datatype,
257
  dataset_name=config["dataset_name"],
258
+ db_key=config.get("db_key", ""),
259
  )
260
  return infos
backend/tools.py CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  import collections
2
 
3
  import pandas as pd
 
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ # All rights reserved.
3
+ #
4
+ # This source code is licensed under the license found in the
5
+ # LICENSE file in the root directory of this source tree.
6
+
7
  import collections
8
 
9
  import pandas as pd