Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
chat_template: string
fan_in_fan_out: bool
megatron_core: string
revision: null
megatron_config: null
use_dora: bool
bias: string
layer_replication: null
layers_to_transform: null
base_model_name_or_path: string
modules_to_save: null
task_type: string
target_modules: list<item: string>
  child 0, item: string
layers_pattern: null
lora_dropout: double
inference_mode: bool
use_rslora: bool
lora_alpha: int64
r: int64
init_lora_weights: bool
peft_type: string
rank_pattern: struct<>
loftq_config: struct<>
auto_mapping: null
alpha_pattern: struct<>
to
{'alpha_pattern': {}, 'auto_mapping': Value('null'), 'base_model_name_or_path': Value('string'), 'bias': Value('string'), 'fan_in_fan_out': Value('bool'), 'inference_mode': Value('bool'), 'init_lora_weights': Value('bool'), 'layer_replication': Value('null'), 'layers_pattern': Value('null'), 'layers_to_transform': Value('null'), 'loftq_config': {}, 'lora_alpha': Value('int64'), 'lora_dropout': Value('float64'), 'megatron_config': Value('null'), 'megatron_core': Value('string'), 'modules_to_save': Value('null'), 'peft_type': Value('string'), 'r': Value('int64'), 'rank_pattern': {}, 'revision': Value('null'), 'target_modules': List(Value('string')), 'task_type': Value('string'), 'use_dora': Value('bool'), 'use_rslora': Value('bool')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2815, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2352, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2377, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 310, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 130, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              chat_template: string
              fan_in_fan_out: bool
              megatron_core: string
              revision: null
              megatron_config: null
              use_dora: bool
              bias: string
              layer_replication: null
              layers_to_transform: null
              base_model_name_or_path: string
              modules_to_save: null
              task_type: string
              target_modules: list<item: string>
                child 0, item: string
              layers_pattern: null
              lora_dropout: double
              inference_mode: bool
              use_rslora: bool
              lora_alpha: int64
              r: int64
              init_lora_weights: bool
              peft_type: string
              rank_pattern: struct<>
              loftq_config: struct<>
              auto_mapping: null
              alpha_pattern: struct<>
              to
              {'alpha_pattern': {}, 'auto_mapping': Value('null'), 'base_model_name_or_path': Value('string'), 'bias': Value('string'), 'fan_in_fan_out': Value('bool'), 'inference_mode': Value('bool'), 'init_lora_weights': Value('bool'), 'layer_replication': Value('null'), 'layers_pattern': Value('null'), 'layers_to_transform': Value('null'), 'loftq_config': {}, 'lora_alpha': Value('int64'), 'lora_dropout': Value('float64'), 'megatron_config': Value('null'), 'megatron_core': Value('string'), 'modules_to_save': Value('null'), 'peft_type': Value('string'), 'r': Value('int64'), 'rank_pattern': {}, 'revision': Value('null'), 'target_modules': List(Value('string')), 'task_type': Value('string'), 'use_dora': Value('bool'), 'use_rslora': Value('bool')}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

LMOL SCUT-FBP5500 Fold0 Checkpoint

This Hugging Face Dataset repository stores the fold0 checkpoint package and small result artifacts for the GitHub repository:

https://github.com/ljc-1222/lmol-scut-fbp5500

It is hosted as a Dataset repository to keep the GitHub repository lightweight. The package is not a redistribution of SCUT-FBP5500 images or labels.

Paper

This checkpoint is for an implementation of:

Zhenyou Liu, Xuefeng Liang, and Jian Lin, "Large Multimodal Model is a Better Comparator on Facial Beauty Prediction," ICASSP 2025. DOI: 10.1109/ICASSP49660.2025.10889943

The method uses a large multimodal model as a pairwise comparator. Given two face images, the model predicts First., Second., or Similar., and absolute SCUT-FBP5500 beauty scores are estimated from many pairwise comparisons.

Implementation Notes

This checkpoint follows the repository's default choice_token implementation. The paper writes the answer target as conditional language modeling over the natural-language answer string, but this checkpoint was trained and evaluated with a discriminative token-choice objective:

  • Internal class order is First., Second., Similar..
  • With the LLaVA tokenizer, each answer string is two tokens: an answer word token plus a shared period token.
  • Training and pairwise evaluation use only the first answer word token (First, Second, or Similar) and do not score the period token.
  • Pairwise inference is prompt-only likelihood scoring over the three answer word tokens, not free-form model.generate.
  • The repository's conditional_lm branch uses the same current collator mask, so it is not a full multi-token answer-string objective unless the collator is changed.

See the GitHub repository's docs/TRAINING_ALIGNMENT.md for the detailed paper-to-code alignment notes.

Repository Layout

.
β”œβ”€β”€ README.md
β”œβ”€β”€ checkpoints/
β”‚   └── fold0/
β”‚       β”œβ”€β”€ adapter_config.json
β”‚       β”œβ”€β”€ adapter_model.safetensors
β”‚       β”œβ”€β”€ projector.pt
β”‚       β”œβ”€β”€ tokenizer.json
β”‚       β”œβ”€β”€ tokenizer_config.json
β”‚       β”œβ”€β”€ processor_config.json
β”‚       β”œβ”€β”€ preprocessor_config.json
β”‚       β”œβ”€β”€ special_tokens_map.json
β”‚       β”œβ”€β”€ chat_template.json
β”‚       └── README.md
└── results/
    └── fold0/
        β”œβ”€β”€ metrics.json
        β”œβ”€β”€ confusion_matrix.json
        β”œβ”€β”€ progress.json
        └── README.md

Download

Run the download command from the GitHub repository root. It writes files to checkpoints/fold0/, which is the path expected by the evaluation examples.

pip install -U huggingface_hub
hf download ljc-1222/LMOL-fbp5500 \
  --repo-type dataset \
  --include "checkpoints/fold0/*" \
  --local-dir .

To download both the checkpoint and result JSON files:

hf download ljc-1222/LMOL-fbp5500 \
  --repo-type dataset \
  --include "checkpoints/fold0/*" "results/fold0/*" \
  --local-dir .

Python equivalent:

from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="ljc-1222/LMOL-fbp5500",
    repo_type="dataset",
    allow_patterns=["checkpoints/fold0/*"],
    local_dir=".",
)

Use With The GitHub Repository

After installing dependencies, preparing SCUT-FBP5500, and building fold0 pairs, run:

python scripts/evaluate_fold.py \
  --config configs/lmol_scut_fbp5500.yaml \
  --fold-index 0 \
  --checkpoint checkpoints/fold0 \
  --batch-size 8

Full fold0 evaluation scores 374,000 target-reference pairs and can take many hours. Use --limit 256 only for a checkpoint smoke test; it does not reproduce the reported metrics.

Fold0 Result

Score metrics from results/fold0/metrics.json:

Split PC ↑ MAE ↓ RMSE ↓
Fold 0 0.9568 0.1643 0.2130

Pairwise metrics computed from results/fold0/confusion_matrix.json and results/fold0/progress.json:

Split Accuracy ↑ Macro Precision ↑ Macro Recall ↑ Macro F1 ↑ Weighted F1 ↑ Pairwise NLL ↓
Fold 0 0.8649 0.8145 0.8354 0.8195 0.8723 0.3384

Per-answer pairwise metrics:

Gold Label Support Predicted Precision ↑ Recall ↑ F1 ↑
First. 120,836 110,502 0.9335 0.8537 0.8918
Second. 194,770 185,020 0.9557 0.9079 0.9312
Similar. 58,394 78,478 0.5541 0.7446 0.6354

Checkpoint Details

  • Base model: llava-hf/llava-1.5-7b-hf
  • Trainable modules: PEFT LoRA adapters on the language model and the full multimodal projector.
  • Frozen modules: CLIP visual encoder.
  • LoRA: r=8, lora_alpha=32, lora_dropout=0.05.
  • Training objective: choice_token 3-way cross entropy over the first answer word tokens.
  • Inference: prompt-only normalized likelihood over the same three answer word tokens.
  • Fold: deterministic SCUT-FBP5500 fold0 with split_seed: 42.

The projector.pt file is required. Loading only the PEFT adapter is incomplete for this implementation.

Limitations And Terms

  • This repository contains a checkpoint package and result metadata only. It does not contain SCUT-FBP5500 images or labels.
  • Users must obtain SCUT-FBP5500 from the official source and comply with the dataset authors' terms.
  • The GitHub repository currently does not specify a project license. Reuse rights should be clarified before redistribution.
  • Facial beauty prediction is sensitive and subjective. Use the checkpoint only for research reproduction and with appropriate ethical review.

Citation

@inproceedings{liu2025large,
  title = {Large Multimodal Model is a Better Comparator on Facial Beauty Prediction},
  author = {Liu, Zhenyou and Liang, Xuefeng and Lin, Jian},
  booktitle = {ICASSP 2025 - 2025 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
  pages = {1--5},
  year = {2025},
  doi = {10.1109/ICASSP49660.2025.10889943}
}
Downloads last month
64