Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong number of shards generated in dataset_info.json #15

Open
aliciaji1993 opened this issue Oct 3, 2024 · 0 comments
Open

wrong number of shards generated in dataset_info.json #15

aliciaji1993 opened this issue Oct 3, 2024 · 0 comments

Comments

@aliciaji1993
Copy link

aliciaji1993 commented Oct 3, 2024

After dataset generation, the output file has total of 32 tf-record files in train and 8 in val, which is expected.

But in reality, the number of shards is only 25 for some reason and some shards are missing (as below). What could be the cause?

dataset folder: (missing some shards)
Screenshot 2024-10-03 at 10 22 43

from dataset_info.json

"splits": [
    {
      "filepathTemplate": "{DATASET}-{SPLIT}.{FILEFORMAT}-{SHARD_X_OF_Y}",
      "name": "train",
      "numBytes": "3124634980",
      "shardLengths": [
        "49",
        "65",
        "51",
        "71",
        "70",
        "54",
        "67",
        "66",
        "61",
        "63",
        "56",
        "53",
        "60",
        "61",
        "71",
        "62",
        "68",
        "71",
        "58",
        "68",
        "64",
        "71",
        "71",
        "70",
        "58"
      ]
    },
    {
      "filepathTemplate": "{DATASET}-{SPLIT}.{FILEFORMAT}-{SHARD_X_OF_Y}",
      "name": "val",
      "numBytes": "758231159",
      "shardLengths": [
        "72",
        "67",
        "58",
        "72",
        "82",
        "68",
        "70",
        "61"
      ]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant