Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception:    SplitsNotFoundError
Message:      The split names could not be parsed from the dataset config.
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
                  for split_generator in builder._split_generators(
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      StreamingDownloadManager(base_path=builder.base_path, download_config=download_config)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/webdataset/webdataset.py", line 85, in _split_generators
                  pa.Table.from_pylist(cast_to_python_objects([example], only_1d_for_numpy=True))
                  ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "pyarrow/table.pxi", line 2044, in pyarrow.lib._Tabular.from_pylist
                File "pyarrow/table.pxi", line 6401, in pyarrow.lib._from_pylist
                  return cls.from_arrays(arrays, names, metadata=metadata)
                File "pyarrow/table.pxi", line 4868, in pyarrow.lib.Table.from_arrays
                  converted_arrays = _sanitize_arrays(arrays, names, schema, metadata,
                File "pyarrow/table.pxi", line 1611, in pyarrow.lib._sanitize_arrays
                  converted_arrays = _schema_from_arrays(arrays, names, metadata,
                File "pyarrow/table.pxi", line 1592, in pyarrow.lib._schema_from_arrays
                  val = array(val)
                File "pyarrow/array.pxi", line 400, in pyarrow.lib.array
                File "pyarrow/array.pxi", line 46, in pyarrow.lib._sequence_to_array
                  chunked = GetResultValue(
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                  return check_status(status)
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowNotImplementedError: Unsupported numpy type 14
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 68, in compute_split_names_from_streaming_response
                  for split in get_dataset_split_names(
                               ~~~~~~~~~~~~~~~~~~~~~~~^
                      path=dataset,
                      ^^^^^^^^^^^^^
                      config_name=config,
                      ^^^^^^^^^^^^^^^^^^^
                      token=hf_token,
                      ^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
                  info = get_dataset_config_info(
                      path,
                  ...<6 lines>...
                      **config_kwargs,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
                  raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
              datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.

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.

COPRA Flow TG-FROG

A synthetic dataset for learning to refine ultrafast pulse reconstructions from transient-grating frequency-resolved optical gating (TG-FROG) traces. It contains 10,000 pulses, each paired with 30 reconstruction candidates: 300,000 source–target pairs in total.

Download and use

Install the Hugging Face CLI, then download and extract the dataset:

hf download atal-narayan/copra-flow-tg-frog --repo-type dataset \
  --revision v0.1.0 --local-dir data/flow_matching_10k
python data/flow_matching_10k/extract.py

The extraction script verifies each archive and every extracted pulse against SHA-256 checksums. It creates data/flow_matching_10k/shards/, ready for the training and evaluation commands in the code repository. Keep splits.json with the dataset. The tar files can be removed after successful extraction if you need the disk space.

Download and extract the complete dataset for the supplied training and benchmark commands: they validate membership against the full fixed split. This is a scientific NumPy dataset, loaded through the project code or numpy.load; it is not a tabular datasets.load_dataset collection.

What is included

Files Contents
archives/train-000.tar … train-008.tar 9,000 training pulse shards
archives/val-000.tar 1,000 validation pulse shards
splits.json Exact pulse UID membership for both partitions
manifest.json Pulse families, parameters, UIDs, and generation seeds
generation_config.json Settings used to generate the data
inventory.json Per-shard and per-archive membership, sizes, and checksums
array_schema.json, DATA_FORMAT.md Array layouts, units, and normalization conventions
SHA256SUMS, SHARD_SHA256SUMS Checksums for release files and extracted shards

The archives contain the original NPZ shards byte for byte. Duplicate metadata sidecars and local progress logs are omitted; scientific metadata remains embedded in each shard. No experimental measurements are included.

Arrays and physical conventions

Each extracted shards/<pulse_uid>.npz includes:

Array Shape Meaning
target_field 256 Clean complex pulse field
source_fields 30 × 256 Target-aligned complex reconstruction candidates
source_fields_raw 30 × 256 Candidates before target ambiguity alignment
measured_trace 256 × 256 Nonnegative, peak-normalized noisy TG-FROG trace
time_axis, delay_axis 256 Time and delay in seconds
freq_axis 256 Absolute angular frequency in rad/s
source_kind, hard_negative, source_weight 30 Candidate provenance and training weights

Load an example without pickle:

from pathlib import Path
import numpy as np

path = next(Path('data/flow_matching_10k/shards').glob('*.npz'))
with np.load(path, allow_pickle=False) as pulse:
    target = pulse['target_field']
    sources = pulse['source_fields']
    trace = pulse['measured_trace']

The temporal spacing is 2.5 fs and the carrier wavelength is 800 nm. Pulse fields are RMS-normalized. The stored target spectrum uses the generator's physical scaling, so it should not be treated as the normalized target field's spectrum without accounting for that scaling. See DATA_FORMAT.md for details.

Generation and split

Pulses are sampled from 17 synthetic families. The simulator computes TG-FROG traces, adds 1% Gaussian intensity noise with nonnegative clipping, and runs 400 COPRA iterations per pulse. Each shard contains 17 COPRA snapshots, a final COPRA field, direct and guarded Hann refinements, two smoothed snapshots, and eight generated hard negatives. The hard_negative mask also flags COPRA candidates selected by diagnostic criteria: there are 80,000 generated augmentations and 115,347 flagged candidates in total. Use source_kind to distinguish them. Generation settings and seeds are provided.

The fixed split contains 9,000 training pulses (270,000 pairs) and 1,000 validation pulses (30,000 pairs). Related candidates never cross partitions. Use splits.json; splitting individual candidate rows would leak information. The validation set was used to select the released checkpoint and is not an independent test set.

Intended use and limitations

Use this dataset to train and evaluate synthetic pulse reconstruction methods under the stated simulation conditions. Source alignment uses known synthetic targets; experimental inference must use the target-free processing supplied by the code. Results may not transfer to other noise levels, carrier wavelengths, grids, experimental instruments, or pulse distributions.

The dataset was generated by simulation and contains no human-subject records. See the code repository's reproducibility notes for evaluation conventions and limitations.

Attribution

Dataset creator: Atal Narayan Sahu. Released under Creative Commons Attribution 4.0 International. When redistributing or adapting the dataset, provide attribution, link to the license, and indicate changes. Citation metadata is maintained in the code repository's CITATION.cff.

Downloads last month
17

Models trained or fine-tuned on atal-narayan/copra-flow-tg-frog