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:    TypeError
Message:      Couldn't cast array of type
struct<train_0000/intricate_wood_carvings.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/a_man_with_long_hair_and_a_beanie_is_playing_an_acoustic_guitar_in_a_modern_indoor_setting_with_large_windowss.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/man_in_an_urban_setting_wearing_a_jacket_with_a_graphic_of_a_bear_and_the_text_badminton_angels_he_is_also_wearing_a_gold_chain_necklace_and_has_a_focused_expression_on_his_faces.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/a_person_in_a_blue_shirt_is_using_a_smartphone_with_a_messaging_app_open_sitting_at_a_table_with_a_cup_of_coffee_a_notebook_and_a_pens.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/the_image_captures_a_delicate_interplay_of_nature_with_thin_branches_bearing_clusters_of_white_blossoms_interspersed_with_red_buds_set_against_a_muted_dark_backgrounds.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/the_image_displays_a_smartphone_a_notebook_a_pen_headphones_and_a_charger_on_a_dualcolored_back
...
: string, caption: string>, train_0000/a_man_exhales_a_stream_of_smoke_against_a_nighttime_urban_backdrops.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/the_image_depicts_a_somber_scene_in_a_cemetery_with_snowcovered_ground_and_gravestones_a_prominent_cross_stands_in_the_foreground_and_a_tombstone_with_the_word_rip_is_visible_in_the_backgrounds.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/The woman in the image is wearing bold makeup, with a prominent purple lipstick and defined eye makeup..png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/soul_vents.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/a_person_with_a_short_haircut_is_intently_writing_in_a_notebook_while_seated_on_a_floor_cushions.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/a_young_individual_with_curly_hair_is_intently_playing_an_acoustic_guitars.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>>
to
{'train_0000/The image showcases a collection of premium makeup brushes, meticulously arranged against a dual-toned backdrop of pink and deep red, emphasizing their elegance and precision..png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, 'train_0000/The image showcases a variety of makeup tools and products, including a color palette, brushes, and a compact mirror..png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, 'train_0000/The image showcases a MAC makeup product, specifically a matte lipstick in a deep shade of brown, placed on a woven background with a matching MAC compact mirror..png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, 'train_0000/The woman in the image is wearing subtle makeup, emphasizing her eyes with mascara and eyeliner, and her lips with a soft pink lipstick. The makeup complements her natural beauty and enhances her features without being overly dramatic..png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('in
...
ath': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, 'train_0000/three_individuals_are_gathered_around_a_wooden_table_in_what_a_cafe_or_restaurant_setting_one_person_is_typing_on_a_laptop_while_the_other_two_are_closely_observing_the_screen_the_person_on_the_right_is_writing_something_down_in_a.png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, "train_0000/The image showcases a vibrant pink lipstick with its cap slightly off, revealing the brand's logo, set against a soft white background..png": {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, 'train_0000/a_man_in_a_black_tshirt_with_a_large_white_and_purple_design_black_pants_and_colorful_sneakers_sits_on_a_white_bench_against_a_gray_brick_wall_he_wears_sunglasses_and_holds_a_cigarette_in_his_mouths.png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}}
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                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 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 483, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2840, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2373, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2398, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/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.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2312, in cast_table_to_schema
                  cast_array_to_feature(
                  ~~~~~~~~~~~~~~~~~~~~~^
                      table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                      feature,
                      ^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
                  return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
                                           ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2158, in cast_array_to_feature
                  raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
              TypeError: Couldn't cast array of type
              struct<train_0000/intricate_wood_carvings.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/a_man_with_long_hair_and_a_beanie_is_playing_an_acoustic_guitar_in_a_modern_indoor_setting_with_large_windowss.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/man_in_an_urban_setting_wearing_a_jacket_with_a_graphic_of_a_bear_and_the_text_badminton_angels_he_is_also_wearing_a_gold_chain_necklace_and_has_a_focused_expression_on_his_faces.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/a_person_in_a_blue_shirt_is_using_a_smartphone_with_a_messaging_app_open_sitting_at_a_table_with_a_cup_of_coffee_a_notebook_and_a_pens.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/the_image_captures_a_delicate_interplay_of_nature_with_thin_branches_bearing_clusters_of_white_blossoms_interspersed_with_red_buds_set_against_a_muted_dark_backgrounds.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/the_image_displays_a_smartphone_a_notebook_a_pen_headphones_and_a_charger_on_a_dualcolored_back
              ...
              : string, caption: string>, train_0000/a_man_exhales_a_stream_of_smoke_against_a_nighttime_urban_backdrops.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/the_image_depicts_a_somber_scene_in_a_cemetery_with_snowcovered_ground_and_gravestones_a_prominent_cross_stands_in_the_foreground_and_a_tombstone_with_the_word_rip_is_visible_in_the_backgrounds.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/The woman in the image is wearing bold makeup, with a prominent purple lipstick and defined eye makeup..png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/soul_vents.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/a_person_with_a_short_haircut_is_intently_writing_in_a_notebook_while_seated_on_a_floor_cushions.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>, train_0000/a_young_individual_with_curly_hair_is_intently_playing_an_acoustic_guitars.png: struct<path: string, offset: int64, length: int64, width: int64, height: int64, aspect: double, cogvlm_caption: string, caption: string>>
              to
              {'train_0000/The image showcases a collection of premium makeup brushes, meticulously arranged against a dual-toned backdrop of pink and deep red, emphasizing their elegance and precision..png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, 'train_0000/The image showcases a variety of makeup tools and products, including a color palette, brushes, and a compact mirror..png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, 'train_0000/The image showcases a MAC makeup product, specifically a matte lipstick in a deep shade of brown, placed on a woven background with a matching MAC compact mirror..png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, 'train_0000/The woman in the image is wearing subtle makeup, emphasizing her eyes with mascara and eyeliner, and her lips with a soft pink lipstick. The makeup complements her natural beauty and enhances her features without being overly dramatic..png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('in
              ...
              ath': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, 'train_0000/three_individuals_are_gathered_around_a_wooden_table_in_what_a_cafe_or_restaurant_setting_one_person_is_typing_on_a_laptop_while_the_other_two_are_closely_observing_the_screen_the_person_on_the_right_is_writing_something_down_in_a.png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, "train_0000/The image showcases a vibrant pink lipstick with its cap slightly off, revealing the brand's logo, set against a soft white background..png": {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}, 'train_0000/a_man_in_a_black_tshirt_with_a_large_white_and_purple_design_black_pants_and_colorful_sneakers_sits_on_a_white_bench_against_a_gray_brick_wall_he_wears_sunglasses_and_holds_a_cigarette_in_his_mouths.png': {'path': Value('string'), 'offset': Value('int64'), 'length': Value('int64'), 'width': Value('int64'), 'height': Value('int64'), 'aspect': Value('float64'), 'cogvlm_caption': Value('string'), 'caption': Value('string')}}

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.

Photo Aesthetics — Webshart

This is the canonical, maintained location for the former terminusresearch/photo-aesthetics dataset. The migration completed on August 19, 2026, with 30,032 image samples repackaged into 371 indexed Webshart shards. Every sample now includes both the original CogVLM caption and a newer GLM-5.3-Flash caption.

The legacy repository now contains only a relocation notice. Its original tar archives, parquet file, and prior history were removed after this copy was validated, avoiding a duplicate of roughly 397 GB. Existing users should update their dataset ID to webshart/terminusresearch-photo-aesthetics and use subfolder="webshart".

The source photographs were collected from Pexels in 2023 and originally captioned with CogVLM. They were recaptioned with GLM-5.3-Flash through CaptionFlow in September 2026. Conversion and publication were performed by bghira from Terminus Research. The dataset is licensed MIT.

Each webshart/shard-NNNNN.tar has a paired JSON index containing byte offsets, image geometry, and both caption sets. Underscores in legacy filenames were converted to spaces. The completed migration record is stored in webshart/.webshart-optimize-state.json.

Caption sets

Each image entry in a shard's JSON index contains two scalar string fields:

Metadata key Caption source Notes
caption GLM-5.3-Flash Newer concise captions; recommended and used by default by Webshart and the SimpleTuner configuration below.
cogvlm_caption CogVLM Original captions retained for reproducibility and comparison.

Webshart recognizes the singular caption key as the canonical caption, so the GLM-5.3-Flash value is exposed as both sample.caption and sample.captions. To select either field explicitly, read the paired shard index:

import json

import webshart
from huggingface_hub import hf_hub_download

repo_id = "webshart/terminusresearch-photo-aesthetics"
dataset = webshart.discover_dataset(repo_id, subfolder="webshart")
loader = webshart.TarDataLoader(dataset, load_file_data=False)

shard_index = 0
sample_index = 0
sample = loader.load_sample(shard_index, sample_index)

# The recommended GLM-5.3-Flash caption is the Webshart default.
glm_caption = sample.caption

# Read the same sample's named fields when explicit selection is needed.
shard_name = dataset.get_shard_info(shard_index)["name"]
index_path = hf_hub_download(
    repo_id=repo_id,
    repo_type="dataset",
    filename=f"webshart/{shard_name}.json",
)
with open(index_path, encoding="utf-8") as handle:
    entry = json.load(handle)["files"][sample.path]

assert glm_caption == entry["caption"]
cogvlm_caption = entry["cogvlm_caption"]

SimpleTuner example

Add this object to your multidatabackend configuration:

{
  "id": "photo-aesthetics-webshart",
  "type": "webshart",
  "dataset_type": "image",
  "source": "webshart/terminusresearch-photo-aesthetics",
  "subfolder": "webshart",
  "caption_strategy": "webshart",
  "metadata_backend": "webshart",
  "webshart": {
    "cache_dir": "cache/webshart/photo-aesthetics",
    "shard_cache_gb": 25,
    "parallel_downloads": 4
  }
}

Set shard_cache_gb to 0 to use indexed HTTP range reads without whole-shard caching.

This configuration uses the GLM-5.3-Flash caption field. Use the explicit metadata loading example above if you need the legacy cogvlm_caption field instead.

Webshart Python example

import webshart

dataset = webshart.discover_dataset(
    "webshart/terminusresearch-photo-aesthetics",
    subfolder="webshart",
)
print(dataset.num_shards, dataset.total_files)
print(dataset.probe_caption_layout(max_shards=8))

loader = webshart.TarDataLoader(dataset)
sample_ref = dataset.list_samples_in_shard(0)[0]
sample = loader.load_sample(0, 0)
assert sample.path == sample_ref
print(sample.path, sample.caption, sample.width, sample.height)
Downloads last month
107

Models trained or fine-tuned on webshart/terminusresearch-photo-aesthetics