{
  "id": 315524,
  "title": "All my tf records datasets in one place",
  "url": "/competitions/happy-whale-and-dolphin/discussion/315524",
  "author_name": "Martin Kovacevic Buvinic",
  "post_date": "2022-03-28T17:28:47.462000",
  "votes": 75,
  "comment_count": 18,
  "views": 0,
  "content": "<p>Here are my tf records for different image size and different object detection models.</p>\n<p>All bounding boxed were extracted from public discussions and notebook so it is not something new but you may find all one place.</p>\n<p>Detic:</p>\n<p><a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-256\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-256</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-512\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-512</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-768\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-768</a></p>\n<p>Yolov5:</p>\n<p><a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-256\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-256</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-512\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-512</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-768\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-768</a></p>\n<p>Yolov5 (Backfin)</p>\n<p><a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-256\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-256</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-512\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-512</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-768\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-768</a></p>\n<p>Yolov5 (Full Body)</p>\n<p><a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-256\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-256</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-768\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-768</a></p>\n<p>Cheers and have fun kaggling.</p>",
  "messages": [
    {
      "id": 1737759,
      "postDate": "2022-03-28T17:28:47.463Z",
      "content": "<p>Here are my tf records for different image size and different object detection models.</p>\n<p>All bounding boxed were extracted from public discussions and notebook so it is not something new but you may find all one place.</p>\n<p>Detic:</p>\n<p><a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-256\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-256</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-512\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-512</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-768\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-768</a></p>\n<p>Yolov5:</p>\n<p><a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-256\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-256</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-512\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-512</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-768\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-768</a></p>\n<p>Yolov5 (Backfin)</p>\n<p><a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-256\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-256</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-512\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-512</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-768\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-768</a></p>\n<p>Yolov5 (Full Body)</p>\n<p><a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-256\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-256</a><br>\n<a href=\"https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-768\" target=\"_blank\">https://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-768</a></p>\n<p>Cheers and have fun kaggling.</p>",
      "rawMarkdown": "Here are my tf records for different image size and different object detection models.\n\nAll bounding boxed were extracted from public discussions and notebook so it is not something new but you may find all one place.\n\nDetic:\n\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-256\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-512\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-768\n\nYolov5:\n\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-256\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-512\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-768\n\nYolov5 (Backfin)\n\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-256\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-512\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-768\n\nYolov5 (Full Body)\n\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-256\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-768\n\nCheers and have fun kaggling.",
      "votes": 74
    },
    {
      "id": 1739474,
      "postDate": "2022-03-30T04:43:16.027Z",
      "content": "<p>how to get tfrecord format</p>\n<p>filenames = ['gs://kds-af44e5315e385a2ad58825ddb8a1cdad1f3ba94ccf3783349018dff8/train-0-1702.tfrec']<br>\nraw_dataset = tf.data.TFRecordDataset(filenames)<br>\nfor raw_record in raw_dataset.take(1):<br>\n  e42xample = tf.train.Example()<br>\n  example.ParseFromString(raw_record.numpy())<br>\n  print(example)</p>",
      "rawMarkdown": "how to get tfrecord format\n\nfilenames = ['gs://kds-af44e5315e385a2ad58825ddb8a1cdad1f3ba94ccf3783349018dff8/train-0-1702.tfrec']\nraw_dataset = tf.data.TFRecordDataset(filenames)\nfor raw_record in raw_dataset.take(1):\n  e42xample = tf.train.Example()\n  example.ParseFromString(raw_record.numpy())\n  print(example)",
      "votes": 5,
      "replies": [
        {
          "id": 1739607,
          "postDate": "2022-03-30T07:28:12.993Z",
          "content": "<p>thank for reply.   lack of experiences in tfrecord processing.</p>",
          "rawMarkdown": "thank for reply.   lack of experiences in tfrecord processing.",
          "votes": 1
        }
      ]
    },
    {
      "id": 1738099,
      "postDate": "2022-03-29T03:10:43.067Z",
      "content": "<p>thanks for sharing. It could save lot of time for others.<br>\nIf with original notebook info would be better.</p>",
      "rawMarkdown": "thanks for sharing. It could save lot of time for others.\nIf with original notebook info would be better.",
      "votes": 3
    },
    {
      "id": 1751887,
      "postDate": "2022-04-11T07:35:45.790Z",
      "content": "<p>Hi! I wrote separate functions for reading testset and trainset. I started training, the model learned, everything is fine, but on Lb I showed an accuracy of about 0.1. The mistake is obvious with reading the testset please tell me what I did wrong.<br>\ndef read_labeled_tfrecord(example):<br>\n    LABELED_TFREC_FORMAT = {<br>\n        \"image_id\": tf.io.FixedLenFeature([], tf.string),<br>\n        \"image\": tf.io.FixedLenFeature([], tf.string),<br>\n        \"individual_id\": tf.io.FixedLenFeature([], tf.int64),<br>\n    }</p>\n<pre><code>example = tf.io.parse_single_example(example, LABELED_TFREC_FORMAT)\nposting_id = example['image_id']\nimage = decode_image(example['image'])\n\nlabel_group = tf.cast(example['individual_id'], tf.int32)\nmatches = 1\nreturn posting_id, image, label_group, matches\n</code></pre>\n<p>def read_labeled_tfrecord_test(example):<br>\n    LABELED_TFREC_FORMAT = {<br>\n        \"image_id\": tf.io.FixedLenFeature([], tf.string),<br>\n        \"image\": tf.io.FixedLenFeature([], tf.string),<br>\n        #\"individual_id\": tf.io.FixedLenFeature([], tf.int64),<br>\n    }</p>\n<pre><code>example = tf.io.parse_single_example(example, LABELED_TFREC_FORMAT)\nposting_id = example['image_id']\nimage = decode_image(example['image'])\nlabel_group = 0\n#label_group = tf.cast(example['individual_id'], tf.int32)\nmatches = 1\nreturn posting_id, image, label_group, matches\n</code></pre>",
      "rawMarkdown": "Hi! I wrote separate functions for reading testset and trainset. I started training, the model learned, everything is fine, but on Lb I showed an accuracy of about 0.1. The mistake is obvious with reading the testset please tell me what I did wrong.\ndef read_labeled_tfrecord(example):\n    LABELED_TFREC_FORMAT = {\n        \"image_id\": tf.io.FixedLenFeature([], tf.string),\n        \"image\": tf.io.FixedLenFeature([], tf.string),\n        \"individual_id\": tf.io.FixedLenFeature([], tf.int64),\n    }\n\n    example = tf.io.parse_single_example(example, LABELED_TFREC_FORMAT)\n    posting_id = example['image_id']\n    image = decode_image(example['image'])\n\n    label_group = tf.cast(example['individual_id'], tf.int32)\n    matches = 1\n    return posting_id, image, label_group, matches\n\ndef read_labeled_tfrecord_test(example):\n    LABELED_TFREC_FORMAT = {\n        \"image_id\": tf.io.FixedLenFeature([], tf.string),\n        \"image\": tf.io.FixedLenFeature([], tf.string),\n        #\"individual_id\": tf.io.FixedLenFeature([], tf.int64),\n    }\n\n    example = tf.io.parse_single_example(example, LABELED_TFREC_FORMAT)\n    posting_id = example['image_id']\n    image = decode_image(example['image'])\n    label_group = 0\n    #label_group = tf.cast(example['individual_id'], tf.int32)\n    matches = 1\n    return posting_id, image, label_group, matches",
      "votes": 1,
      "replies": [
        {
          "id": 1751980,
          "postDate": "2022-04-11T09:10:28.140Z",
          "content": "<p>Hey Andrij. Did you map the individual_ids according to the train_encoded.csv?</p>",
          "rawMarkdown": "Hey Andrij. Did you map the individual_ids according to the train_encoded.csv?",
          "votes": 1
        },
        {
          "id": 1752067,
          "postDate": "2022-04-11T11:21:21.047Z",
          "content": "<p>Thank you!!! I realized</p>",
          "rawMarkdown": "Thank you!!! I realized"
        }
      ]
    },
    {
      "id": 1741431,
      "postDate": "2022-03-31T19:53:08.680Z",
      "content": "<p>would you mind sharing which of these four datasets works best in your case?</p>",
      "rawMarkdown": "would you mind sharing which of these four datasets works best in your case?",
      "votes": 1,
      "replies": [
        {
          "id": 1742291,
          "postDate": "2022-04-01T16:52:14.617Z",
          "content": "<p>In my case full body dataset works best</p>",
          "rawMarkdown": "In my case full body dataset works best",
          "votes": 2
        },
        {
          "id": 1742329,
          "postDate": "2022-04-01T17:55:25.870Z",
          "content": "<p>Thank you !</p>",
          "rawMarkdown": "Thank you !"
        }
      ]
    },
    {
      "id": 1738954,
      "postDate": "2022-03-29T16:34:23.993Z",
      "content": "<p>I try to use the full body dataset. However Its format is not same. Can you please give the generating notebook, or the tfrecord format?</p>",
      "rawMarkdown": "I try to use the full body dataset. However Its format is not same. Can you please give the generating notebook, or the tfrecord format?",
      "votes": 2,
      "replies": [
        {
          "id": 1740307,
          "postDate": "2022-03-30T19:39:45.730Z",
          "content": "<p>The format is the same, it has the same keys </p>\n<p>Train: [\"image_id\", \"image\", \"species\",\"individual_id\"]<br>\nTest: [\"image_id\", \"image\"]<br>\nFor mapping the classes you can use the csv file store in the same dataset named train_encoded.csv</p>",
          "rawMarkdown": "The format is the same, it has the same keys \n\nTrain: [\"image_id\", \"image\", \"species\",\"individual_id\"]\nTest: [\"image_id\", \"image\"]\nFor mapping the classes you can use the csv file store in the same dataset named train_encoded.csv",
          "votes": 1
        }
      ]
    },
    {
      "id": 1737873,
      "postDate": "2022-03-28T20:04:49.933Z",
      "content": "<p>Excellent. I've been stuck at LB = 0.779 for single fold. Hopefully I can break through now before I sink into oblivion.</p>",
      "rawMarkdown": "Excellent. I've been stuck at LB = 0.779 for single fold. Hopefully I can break through now before I sink into oblivion.",
      "votes": 2
    },
    {
      "id": 1742996,
      "postDate": "2022-04-02T13:26:43.113Z",
      "content": "<p>If possible, could you please publish a simple notebook with the above tfrecord.</p>",
      "rawMarkdown": "If possible, could you please publish a simple notebook with the above tfrecord.",
      "votes": 1
    },
    {
      "id": 1749184,
      "postDate": "2022-04-08T10:07:05.597Z",
      "content": "<p>Can you please tell me how much folds does the tfrecords have???</p>",
      "rawMarkdown": "Can you please tell me how much folds does the tfrecords have???"
    },
    {
      "id": 1744361,
      "postDate": "2022-04-03T23:04:21.373Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 1738219,
      "postDate": "2022-03-29T05:50:05.053Z",
      "rawMarkdown": "",
      "votes": 1,
      "isDeleted": true
    },
    {
      "id": 1737959,
      "postDate": "2022-03-28T22:37:55.310Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 1743867,
      "postDate": "2022-04-03T11:26:23.743Z",
      "content": "<p>Thanks for sharing!<br>\nGreat job!</p>",
      "rawMarkdown": "Thanks for sharing!\nGreat job!"
    }
  ],
  "comments": [
    {
      "id": 1739474,
      "author_name": "shigengtian",
      "author_url": "",
      "post_date": "2022-03-30T04:43:16.027000",
      "content": "<p>how to get tfrecord format</p>\n<p>filenames = ['gs://kds-af44e5315e385a2ad58825ddb8a1cdad1f3ba94ccf3783349018dff8/train-0-1702.tfrec']<br>\nraw_dataset = tf.data.TFRecordDataset(filenames)<br>\nfor raw_record in raw_dataset.take(1):<br>\n  e42xample = tf.train.Example()<br>\n  example.ParseFromString(raw_record.numpy())<br>\n  print(example)</p>",
      "votes": 5,
      "replies": [
        {
          "id": 1739607,
          "author_name": "dragon zhang",
          "author_url": "",
          "post_date": "2022-03-30T07:28:12.993000",
          "content": "<p>thank for reply.   lack of experiences in tfrecord processing.</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1738099,
      "author_name": "dragon zhang",
      "author_url": "",
      "post_date": "2022-03-29T03:10:43.067000",
      "content": "<p>thanks for sharing. It could save lot of time for others.<br>\nIf with original notebook info would be better.</p>",
      "votes": 3,
      "replies": []
    },
    {
      "id": 1751887,
      "author_name": "Andrij",
      "author_url": "",
      "post_date": "2022-04-11T07:35:45.790000",
      "content": "<p>Hi! I wrote separate functions for reading testset and trainset. I started training, the model learned, everything is fine, but on Lb I showed an accuracy of about 0.1. The mistake is obvious with reading the testset please tell me what I did wrong.<br>\ndef read_labeled_tfrecord(example):<br>\n    LABELED_TFREC_FORMAT = {<br>\n        \"image_id\": tf.io.FixedLenFeature([], tf.string),<br>\n        \"image\": tf.io.FixedLenFeature([], tf.string),<br>\n        \"individual_id\": tf.io.FixedLenFeature([], tf.int64),<br>\n    }</p>\n<pre><code>example = tf.io.parse_single_example(example, LABELED_TFREC_FORMAT)\nposting_id = example['image_id']\nimage = decode_image(example['image'])\n\nlabel_group = tf.cast(example['individual_id'], tf.int32)\nmatches = 1\nreturn posting_id, image, label_group, matches\n</code></pre>\n<p>def read_labeled_tfrecord_test(example):<br>\n    LABELED_TFREC_FORMAT = {<br>\n        \"image_id\": tf.io.FixedLenFeature([], tf.string),<br>\n        \"image\": tf.io.FixedLenFeature([], tf.string),<br>\n        #\"individual_id\": tf.io.FixedLenFeature([], tf.int64),<br>\n    }</p>\n<pre><code>example = tf.io.parse_single_example(example, LABELED_TFREC_FORMAT)\nposting_id = example['image_id']\nimage = decode_image(example['image'])\nlabel_group = 0\n#label_group = tf.cast(example['individual_id'], tf.int32)\nmatches = 1\nreturn posting_id, image, label_group, matches\n</code></pre>",
      "votes": 1,
      "replies": [
        {
          "id": 1751980,
          "author_name": "Socratis Gkelios",
          "author_url": "",
          "post_date": "2022-04-11T09:10:28.140000",
          "content": "<p>Hey Andrij. Did you map the individual_ids according to the train_encoded.csv?</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1752067,
          "author_name": "Andrij",
          "author_url": "",
          "post_date": "2022-04-11T11:21:21.047000",
          "content": "<p>Thank you!!! I realized</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1741431,
      "author_name": "Zhongkai Shangguan",
      "author_url": "",
      "post_date": "2022-03-31T19:53:08.680000",
      "content": "<p>would you mind sharing which of these four datasets works best in your case?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1742291,
          "author_name": "Martin Kovacevic Buvinic",
          "author_url": "",
          "post_date": "2022-04-01T16:52:14.617000",
          "content": "<p>In my case full body dataset works best</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1742329,
          "author_name": "Zhongkai Shangguan",
          "author_url": "",
          "post_date": "2022-04-01T17:55:25.870000",
          "content": "<p>Thank you !</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1738954,
      "author_name": "dragon zhang",
      "author_url": "",
      "post_date": "2022-03-29T16:34:23.993000",
      "content": "<p>I try to use the full body dataset. However Its format is not same. Can you please give the generating notebook, or the tfrecord format?</p>",
      "votes": 2,
      "replies": [
        {
          "id": 1740307,
          "author_name": "Martin Kovacevic Buvinic",
          "author_url": "",
          "post_date": "2022-03-30T19:39:45.730000",
          "content": "<p>The format is the same, it has the same keys </p>\n<p>Train: [\"image_id\", \"image\", \"species\",\"individual_id\"]<br>\nTest: [\"image_id\", \"image\"]<br>\nFor mapping the classes you can use the csv file store in the same dataset named train_encoded.csv</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1737873,
      "author_name": "Bruce Young",
      "author_url": "",
      "post_date": "2022-03-28T20:04:49.933000",
      "content": "<p>Excellent. I've been stuck at LB = 0.779 for single fold. Hopefully I can break through now before I sink into oblivion.</p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 1742996,
      "author_name": "tatsun",
      "author_url": "",
      "post_date": "2022-04-02T13:26:43.113000",
      "content": "<p>If possible, could you please publish a simple notebook with the above tfrecord.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1749184,
      "author_name": "Ifti",
      "author_url": "",
      "post_date": "2022-04-08T10:07:05.597000",
      "content": "<p>Can you please tell me how much folds does the tfrecords have???</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1744361,
      "author_name": "",
      "author_url": "",
      "post_date": "2022-04-03T23:04:21.373000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1738219,
      "author_name": "",
      "author_url": "",
      "post_date": "2022-03-29T05:50:05.053000",
      "content": "",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1737959,
      "author_name": "",
      "author_url": "",
      "post_date": "2022-03-28T22:37:55.310000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1743867,
      "author_name": "Atom_Hu",
      "author_url": "",
      "post_date": "2022-04-03T11:26:23.743000",
      "content": "<p>Thanks for sharing!<br>\nGreat job!</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1737759": "Here are my tf records for different image size and different object detection models.\n\nAll bounding boxed were extracted from public discussions and notebook so it is not something new but you may find all one place.\n\nDetic:\n\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-256\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-512\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-detic-box-768\n\nYolov5:\n\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-256\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-512\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-yolov5-box-768\n\nYolov5 (Backfin)\n\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-256\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-512\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-backfin-768\n\nYolov5 (Full Body)\n\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-256\nhttps://www.kaggle.com/datasets/ragnar123/happywhale-tfrecords-fullbody-768\n\nCheers and have fun kaggling.",
    "1739474": "how to get tfrecord format\n\nfilenames = ['gs://kds-af44e5315e385a2ad58825ddb8a1cdad1f3ba94ccf3783349018dff8/train-0-1702.tfrec']\nraw_dataset = tf.data.TFRecordDataset(filenames)\nfor raw_record in raw_dataset.take(1):\n  e42xample = tf.train.Example()\n  example.ParseFromString(raw_record.numpy())\n  print(example)",
    "1738099": "thanks for sharing. It could save lot of time for others.\nIf with original notebook info would be better.",
    "1751887": "Hi! I wrote separate functions for reading testset and trainset. I started training, the model learned, everything is fine, but on Lb I showed an accuracy of about 0.1. The mistake is obvious with reading the testset please tell me what I did wrong.\ndef read_labeled_tfrecord(example):\n    LABELED_TFREC_FORMAT = {\n        \"image_id\": tf.io.FixedLenFeature([], tf.string),\n        \"image\": tf.io.FixedLenFeature([], tf.string),\n        \"individual_id\": tf.io.FixedLenFeature([], tf.int64),\n    }\n\n    example = tf.io.parse_single_example(example, LABELED_TFREC_FORMAT)\n    posting_id = example['image_id']\n    image = decode_image(example['image'])\n\n    label_group = tf.cast(example['individual_id'], tf.int32)\n    matches = 1\n    return posting_id, image, label_group, matches\n\ndef read_labeled_tfrecord_test(example):\n    LABELED_TFREC_FORMAT = {\n        \"image_id\": tf.io.FixedLenFeature([], tf.string),\n        \"image\": tf.io.FixedLenFeature([], tf.string),\n        #\"individual_id\": tf.io.FixedLenFeature([], tf.int64),\n    }\n\n    example = tf.io.parse_single_example(example, LABELED_TFREC_FORMAT)\n    posting_id = example['image_id']\n    image = decode_image(example['image'])\n    label_group = 0\n    #label_group = tf.cast(example['individual_id'], tf.int32)\n    matches = 1\n    return posting_id, image, label_group, matches",
    "1741431": "would you mind sharing which of these four datasets works best in your case?",
    "1738954": "I try to use the full body dataset. However Its format is not same. Can you please give the generating notebook, or the tfrecord format?",
    "1737873": "Excellent. I've been stuck at LB = 0.779 for single fold. Hopefully I can break through now before I sink into oblivion.",
    "1742996": "If possible, could you please publish a simple notebook with the above tfrecord.",
    "1749184": "Can you please tell me how much folds does the tfrecords have???",
    "1744361": "",
    "1738219": "",
    "1737959": "",
    "1743867": "Thanks for sharing!\nGreat job!"
  }
}