<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>daiiz</author_name>
  <author_url>https://blog.hatena.ne.jp/daiiz/</author_url>
  <blog_title>#daiizメモ</blog_title>
  <blog_url>https://daiiz.hatenablog.com/</blog_url>
  <categories>
    <anon>TensorFlow</anon>
    <anon>tech</anon>
  </categories>
  <description>学習や評価用の画像データをTensorFlowに与えるとき，JPEG，PNG画像をそのまま与えてもよいけれど，これらの教師ラベルや画像サイズ情報などとともにTFRecord形式のファイルに格納して使う方法が便利．公式ドキュメントで言う以下の説明の前半について，コード書いてみる． writerを生成する &amp; 画像を読み込む TFRecordに詰め込みたい画像ファイルのパスとラベルの組を用意する．今回使用する画像は以下のような，576×576pxな正方形のJPEGファイル． img_data = [ ['./img/chicken_curry.jpg', 0], ['./img/tandoori_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaiiz.hatenablog.com%2Fentry%2F2016%2F10%2F05%2F153727&quot; title=&quot;【TensorFlow】画像データをTFRecordファイルに詰める - #daiizメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://i.gyazo.com/b516ed1da4ae1177cb6f677607bbd33c.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-10-05 15:37:27</published>
  <title>【TensorFlow】画像データをTFRecordファイルに詰める</title>
  <type>rich</type>
  <url>https://daiiz.hatenablog.com/entry/2016/10/05/153727</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
