{
  "id": 97809,
  "title": "Explaining the metric FID",
  "url": "/competitions/generative-dog-images/discussion/97809",
  "author_name": "Nanashi",
  "post_date": "2019-06-29T00:47:01.350000",
  "votes": 52,
  "comment_count": 7,
  "views": 0,
  "content": "<p>Please check the basic kernel <a href=\"https://www.kaggle.com/wendykan/demo-mifid-metric-for-dog-image-generation-comp/notebook\">Demo MiFID metric for Dog image generation comp</a> by <a href=\"/wendykan\">@wendykan</a> </p>\n\n<h1>How to measure GAN performance?</h1>\n\n<p>In GANs, the objective function for the generator and the discriminator usually measures how well they are doing relative to the opponent. For example, we measure how well the generator is fooling the discriminator. It is not a good metric in measuring the image quality or its diversity. As part of the GAN series, we look into the Inception Score and Fréchet Inception Distance on how to compare results from different GAN models.</p>\n\n<h2>Inception Score (IS)</h2>\n\n<p>IS uses two criteria in measuring the performance of GAN:</p>\n\n<ul>\n<li>The quality of the generated images, and</li>\n<li><strong>their diversity.</strong></li>\n</ul>\n\n<p>Entropy can be viewed as randomness. If the value of a random variable x is highly predictable, it has low entropy. On the contrary, if it is highly unpredictable, the entropy is high. For example, in the figure below, we have two probability distributions p(x). p2 has a higher entropy than p1 because p2 has a more uniform distribution and therefore, less predictable about what x is.</p>\n\n<p></p>\n\n<h2>Fréchet Inception Distance (FID)</h2>\n\n<p>In FID, we use the Inception network to extract features from an intermediate layer. Then we model the data distribution for these features using a multivariate Gaussian distribution with mean µ and covariance Σ. The FID between the real images x and generated images g is computed as:</p>\n\n<p></p>\n\n<p>where Tr sums up all the diagonal elements.</p>\n\n<p>&gt; Lower FID values mean better image quality and diversity.</p>\n\n<p>FID is sensitive to mode collapse. As shown below, the distance increases with simulated missing modes.</p>\n\n<p></p>\n\n<p>FID is more robust to noise than IS. If the model only generates one image per class, the distance will be high. So FID is a better measurement for image diversity. FID has some rather high bias but low variance. By computing the FID between a training dataset and a testing dataset, we should expect the FID to be zero since both are real images. However, running the test with different batches of training sample shows none zero FID.</p>\n\n<p>![](<a href=\"https://cdn-images-1.medium.com/max/1600/1\">https://cdn-images-1.medium.com/max/1600/1</a><em>D-XiZT9FdCWaA9jnyomsVw.png =400x</em>)</p>\n\n<p>Also, both FID and IS are based on the <strong>feature extraction</strong> (the presence or the absence of features). Will a generator have the same score if the spatial relationship is not maintained?</p>\n\n<h2>Precision, Recall and F1 Score</h2>\n\n<p>If the generated images look similar to the real images on average, the precision is high. High recall implies the generator can generate any sample found in the training dataset. A F1 score is the harmonic average of precision and recall.</p>\n\n<p>In the Google Brain research paper “Are GANs created equal”, a toy experiment with a dataset of triangles is created to measure the precision and the recall of different GAN models.</p>\n\n<p>![](<a href=\"https://cdn-images-1.medium.com/max/1600/1\">https://cdn-images-1.medium.com/max/1600/1</a><em>0qc9oLuZxjeAqt4JBzPw2A.png =450x</em>)</p>\n\n<h2>Kaggle Evaluation (MiFID)</h2>\n\n<p>Submissions are evaluated on MiFID (Memorization-informed Fréchet Inception Distance), which is a modification from Fréchet Inception Distance (FID).</p>\n\n<p>The smaller MiFID is, the better your generated images are.</p>\n\n<p>Kaggle calculates public and private MiFID scores with the same code, but with different pre-trained models and evaluation images. The public pre-train neural network is Inception, and the public images used for evaluation are the ImageNet Dogs (all 120 breeds). We will not be sharing what private model or dataset is used for the private MiFID score.</p>\n\n<p>A demo of our <strong>MiFID</strong> evaluation code can be seen here.</p>\n\n<p>Our workflow of computing the public/private MiFID is demonstrated below:</p>\n\n<p><strong>Check <a href=\"https://www.kaggle.com/c/generative-dog-images/overview/evaluation\">Kaggle Evaluation Workflow</a></strong></p>\n\n<p><img src=\"https://storage.googleapis.com/kaggle-media/competitions/GAN/Kaggle%20GAN%20Diagram%20(3\" alt=\"\">.png)</p>\n\n<p>I guess we need to find out more about the <strong>mysterious NN</strong> and <strong>private image features</strong></p>\n\n<h2>References</h2>\n\n<ul>\n<li><p><a href=\"https://medium.com/&lt;a href=\">@jonathan</a>_hui/gan-how-to-measure-gan-performance-64b988c47732\"&gt;GAN — How to measure GAN performance?</p></li>\n<li><p><a href=\"https://arxiv.org/pdf/1606.03498.pdf\">Improved Techniques for Training GANs</a></p></li>\n<li><p><a href=\"https://arxiv.org/pdf/1711.10337.pdf\">Are GANs Created Equal? A Large-Scale Study</a></p></li>\n<li><p><a href=\"https://arxiv.org/pdf/1706.08500.pdf\">GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium</a></p></li>\n</ul>",
  "messages": [
    {
      "id": 564085,
      "postDate": "2019-06-29T00:47:01.350Z",
      "content": "<p>Please check the basic kernel <a href=\"https://www.kaggle.com/wendykan/demo-mifid-metric-for-dog-image-generation-comp/notebook\">Demo MiFID metric for Dog image generation comp</a> by <a href=\"/wendykan\">@wendykan</a> </p>\n\n<h1>How to measure GAN performance?</h1>\n\n<p>In GANs, the objective function for the generator and the discriminator usually measures how well they are doing relative to the opponent. For example, we measure how well the generator is fooling the discriminator. It is not a good metric in measuring the image quality or its diversity. As part of the GAN series, we look into the Inception Score and Fréchet Inception Distance on how to compare results from different GAN models.</p>\n\n<h2>Inception Score (IS)</h2>\n\n<p>IS uses two criteria in measuring the performance of GAN:</p>\n\n<ul>\n<li>The quality of the generated images, and</li>\n<li><strong>their diversity.</strong></li>\n</ul>\n\n<p>Entropy can be viewed as randomness. If the value of a random variable x is highly predictable, it has low entropy. On the contrary, if it is highly unpredictable, the entropy is high. For example, in the figure below, we have two probability distributions p(x). p2 has a higher entropy than p1 because p2 has a more uniform distribution and therefore, less predictable about what x is.</p>\n\n<p></p>\n\n<h2>Fréchet Inception Distance (FID)</h2>\n\n<p>In FID, we use the Inception network to extract features from an intermediate layer. Then we model the data distribution for these features using a multivariate Gaussian distribution with mean µ and covariance Σ. The FID between the real images x and generated images g is computed as:</p>\n\n<p></p>\n\n<p>where Tr sums up all the diagonal elements.</p>\n\n<p>&gt; Lower FID values mean better image quality and diversity.</p>\n\n<p>FID is sensitive to mode collapse. As shown below, the distance increases with simulated missing modes.</p>\n\n<p></p>\n\n<p>FID is more robust to noise than IS. If the model only generates one image per class, the distance will be high. So FID is a better measurement for image diversity. FID has some rather high bias but low variance. By computing the FID between a training dataset and a testing dataset, we should expect the FID to be zero since both are real images. However, running the test with different batches of training sample shows none zero FID.</p>\n\n<p>![](<a href=\"https://cdn-images-1.medium.com/max/1600/1\">https://cdn-images-1.medium.com/max/1600/1</a><em>D-XiZT9FdCWaA9jnyomsVw.png =400x</em>)</p>\n\n<p>Also, both FID and IS are based on the <strong>feature extraction</strong> (the presence or the absence of features). Will a generator have the same score if the spatial relationship is not maintained?</p>\n\n<h2>Precision, Recall and F1 Score</h2>\n\n<p>If the generated images look similar to the real images on average, the precision is high. High recall implies the generator can generate any sample found in the training dataset. A F1 score is the harmonic average of precision and recall.</p>\n\n<p>In the Google Brain research paper “Are GANs created equal”, a toy experiment with a dataset of triangles is created to measure the precision and the recall of different GAN models.</p>\n\n<p>![](<a href=\"https://cdn-images-1.medium.com/max/1600/1\">https://cdn-images-1.medium.com/max/1600/1</a><em>0qc9oLuZxjeAqt4JBzPw2A.png =450x</em>)</p>\n\n<h2>Kaggle Evaluation (MiFID)</h2>\n\n<p>Submissions are evaluated on MiFID (Memorization-informed Fréchet Inception Distance), which is a modification from Fréchet Inception Distance (FID).</p>\n\n<p>The smaller MiFID is, the better your generated images are.</p>\n\n<p>Kaggle calculates public and private MiFID scores with the same code, but with different pre-trained models and evaluation images. The public pre-train neural network is Inception, and the public images used for evaluation are the ImageNet Dogs (all 120 breeds). We will not be sharing what private model or dataset is used for the private MiFID score.</p>\n\n<p>A demo of our <strong>MiFID</strong> evaluation code can be seen here.</p>\n\n<p>Our workflow of computing the public/private MiFID is demonstrated below:</p>\n\n<p><strong>Check <a href=\"https://www.kaggle.com/c/generative-dog-images/overview/evaluation\">Kaggle Evaluation Workflow</a></strong></p>\n\n<p><img src=\"https://storage.googleapis.com/kaggle-media/competitions/GAN/Kaggle%20GAN%20Diagram%20(3\" alt=\"\">.png)</p>\n\n<p>I guess we need to find out more about the <strong>mysterious NN</strong> and <strong>private image features</strong></p>\n\n<h2>References</h2>\n\n<ul>\n<li><p><a href=\"https://medium.com/&lt;a href=\">@jonathan</a>_hui/gan-how-to-measure-gan-performance-64b988c47732\"&gt;GAN — How to measure GAN performance?</p></li>\n<li><p><a href=\"https://arxiv.org/pdf/1606.03498.pdf\">Improved Techniques for Training GANs</a></p></li>\n<li><p><a href=\"https://arxiv.org/pdf/1711.10337.pdf\">Are GANs Created Equal? A Large-Scale Study</a></p></li>\n<li><p><a href=\"https://arxiv.org/pdf/1706.08500.pdf\">GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium</a></p></li>\n</ul>",
      "rawMarkdown": "Please check the basic kernel [Demo MiFID metric for Dog image generation comp](https://www.kaggle.com/wendykan/demo-mifid-metric-for-dog-image-generation-comp/notebook) by @wendykan \n\n\n# How to measure GAN performance?\n\nIn GANs, the objective function for the generator and the discriminator usually measures how well they are doing relative to the opponent. For example, we measure how well the generator is fooling the discriminator. It is not a good metric in measuring the image quality or its diversity. As part of the GAN series, we look into the Inception Score and Fréchet Inception Distance on how to compare results from different GAN models.\n\n## Inception Score (IS)\n\nIS uses two criteria in measuring the performance of GAN:\n\n- The quality of the generated images, and\n- **their diversity.**\n\nEntropy can be viewed as randomness. If the value of a random variable x is highly predictable, it has low entropy. On the contrary, if it is highly unpredictable, the entropy is high. For example, in the figure below, we have two probability distributions p(x). p2 has a higher entropy than p1 because p2 has a more uniform distribution and therefore, less predictable about what x is.\n\n![](https://cdn-images-1.medium.com/max/1600/1*RdIYRsqXxRAKwcjtxg6_kw.jpeg)\n\n## Fréchet Inception Distance (FID)\n\nIn FID, we use the Inception network to extract features from an intermediate layer. Then we model the data distribution for these features using a multivariate Gaussian distribution with mean µ and covariance Σ. The FID between the real images x and generated images g is computed as:\n\n![](https://cdn-images-1.medium.com/max/1600/1*tJmwViZesuFM89TcVN7J3A.png)\n\nwhere Tr sums up all the diagonal elements.\n\n&gt; Lower FID values mean better image quality and diversity.\n\nFID is sensitive to mode collapse. As shown below, the distance increases with simulated missing modes.\n\n![](https://cdn-images-1.medium.com/max/1600/1*8PzOnrzIeuM0E1unrFKLfg.png)\n\nFID is more robust to noise than IS. If the model only generates one image per class, the distance will be high. So FID is a better measurement for image diversity. FID has some rather high bias but low variance. By computing the FID between a training dataset and a testing dataset, we should expect the FID to be zero since both are real images. However, running the test with different batches of training sample shows none zero FID.\n\n![](https://cdn-images-1.medium.com/max/1600/1*D-XiZT9FdCWaA9jnyomsVw.png =400x*)\n\nAlso, both FID and IS are based on the **feature extraction** (the presence or the absence of features). Will a generator have the same score if the spatial relationship is not maintained?\n\n## Precision, Recall and F1 Score\n\nIf the generated images look similar to the real images on average, the precision is high. High recall implies the generator can generate any sample found in the training dataset. A F1 score is the harmonic average of precision and recall.\n\nIn the Google Brain research paper “Are GANs created equal”, a toy experiment with a dataset of triangles is created to measure the precision and the recall of different GAN models.\n\n![](https://cdn-images-1.medium.com/max/1600/1*0qc9oLuZxjeAqt4JBzPw2A.png =450x*)\n\n## Kaggle Evaluation (MiFID)\n\nSubmissions are evaluated on MiFID (Memorization-informed Fréchet Inception Distance), which is a modification from Fréchet Inception Distance (FID).\n\nThe smaller MiFID is, the better your generated images are.\n\nKaggle calculates public and private MiFID scores with the same code, but with different pre-trained models and evaluation images. The public pre-train neural network is Inception, and the public images used for evaluation are the ImageNet Dogs (all 120 breeds). We will not be sharing what private model or dataset is used for the private MiFID score.\n\nA demo of our **MiFID** evaluation code can be seen here.\n\nOur workflow of computing the public/private MiFID is demonstrated below:\n\n**Check [Kaggle Evaluation Workflow](https://www.kaggle.com/c/generative-dog-images/overview/evaluation)**\n\n![](https://storage.googleapis.com/kaggle-media/competitions/GAN/Kaggle%20GAN%20Diagram%20(3).png)\n\nI guess we need to find out more about the **mysterious NN** and **private image features**\n\n## References\n- [GAN — How to measure GAN performance?](https://medium.com/@jonathan_hui/gan-how-to-measure-gan-performance-64b988c47732)\n\n- [Improved Techniques for Training GANs](https://arxiv.org/pdf/1606.03498.pdf)\n\n- [Are GANs Created Equal? A Large-Scale Study](https://arxiv.org/pdf/1711.10337.pdf)\n\n- [GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium](https://arxiv.org/pdf/1706.08500.pdf)",
      "votes": 52
    },
    {
      "id": 566998,
      "postDate": "2019-07-02T22:39:12.913Z",
      "content": "<p>In my kernel <a href=\"https://www.kaggle.com/cdeotte/dog-autoencoder#How-is-LB-scored?\">here</a>, I further clarify the metric FID by explaining the below diagram. <code>FID approx = ||c2-c1||^2 + (h2-h1)^2 + (w2-w1)^2</code>. FID is the distance squared between two ellipses (Gaussian distributions) in latent space where <code>c_k</code> is the center of the ellipses (means of features) and <code>h_k</code> and <code>w_k</code> are widths of ellipses (standard deviation of features).</p>\n\n<p><img src=\"http://playagricola.com/Kaggle/ellipsesb7119.jpg\" alt=\"image\"></p>",
      "rawMarkdown": "In my kernel [here][1], I further clarify the metric FID by explaining the below diagram. `FID approx = ||c2-c1||^2 + (h2-h1)^2 + (w2-w1)^2`. FID is the distance squared between two ellipses (Gaussian distributions) in latent space where `c_k` is the center of the ellipses (means of features) and `h_k` and `w_k` are widths of ellipses (standard deviation of features).\n\n![image](http://playagricola.com/Kaggle/ellipsesb7119.jpg)\n\n[1]: https://www.kaggle.com/cdeotte/dog-autoencoder#How-is-LB-scored?",
      "votes": 11
    },
    {
      "id": 584572,
      "postDate": "2019-07-26T07:16:41.760Z",
      "content": "<p>How do we measure inception score and FID ? Do we save the images generated by generator during training and later measure the score or do we go parallaly during training ?</p>",
      "rawMarkdown": "How do we measure inception score and FID ? Do we save the images generated by generator during training and later measure the score or do we go parallaly during training ?",
      "replies": [
        {
          "id": 591847,
          "postDate": "2019-08-04T11:06:19.543Z",
          "content": "<p>Probably looking up to references might help you out. </p>",
          "rawMarkdown": " Probably looking up to references might help you out. ",
          "votes": 2
        }
      ]
    },
    {
      "id": 566994,
      "postDate": "2019-07-02T22:23:44.253Z",
      "rawMarkdown": "",
      "isDeleted": true
    },
    {
      "id": 565209,
      "postDate": "2019-06-30T15:31:27.360Z",
      "content": "<p>thanks a lot <a href=\"/jesucristo\">@jesucristo</a> </p>",
      "rawMarkdown": "thanks a lot @jesucristo ",
      "votes": 1
    },
    {
      "id": 591866,
      "postDate": "2019-08-04T11:50:38.610Z",
      "content": "<p>Thanks for sharing <a href=\"/jesucristo\">@jesucristo</a> </p>",
      "rawMarkdown": "Thanks for sharing @jesucristo "
    },
    {
      "id": 564401,
      "postDate": "2019-06-29T11:18:51.320Z",
      "content": "<p>Thanks for sharing!</p>",
      "rawMarkdown": "Thanks for sharing!"
    }
  ],
  "comments": [
    {
      "id": 566998,
      "author_name": "Chris Deotte",
      "author_url": "",
      "post_date": "2019-07-02T22:39:12.913000",
      "content": "<p>In my kernel <a href=\"https://www.kaggle.com/cdeotte/dog-autoencoder#How-is-LB-scored?\">here</a>, I further clarify the metric FID by explaining the below diagram. <code>FID approx = ||c2-c1||^2 + (h2-h1)^2 + (w2-w1)^2</code>. FID is the distance squared between two ellipses (Gaussian distributions) in latent space where <code>c_k</code> is the center of the ellipses (means of features) and <code>h_k</code> and <code>w_k</code> are widths of ellipses (standard deviation of features).</p>\n\n<p><img src=\"http://playagricola.com/Kaggle/ellipsesb7119.jpg\" alt=\"image\"></p>",
      "votes": 11,
      "replies": []
    },
    {
      "id": 584572,
      "author_name": "Bishwa Karki",
      "author_url": "",
      "post_date": "2019-07-26T07:16:41.760000",
      "content": "<p>How do we measure inception score and FID ? Do we save the images generated by generator during training and later measure the score or do we go parallaly during training ?</p>",
      "votes": 0,
      "replies": [
        {
          "id": 591847,
          "author_name": "torch",
          "author_url": "",
          "post_date": "2019-08-04T11:06:19.543000",
          "content": "<p>Probably looking up to references might help you out. </p>",
          "votes": 2,
          "replies": []
        }
      ]
    },
    {
      "id": 566994,
      "author_name": "",
      "author_url": "",
      "post_date": "2019-07-02T22:23:44.253000",
      "content": "",
      "votes": 0,
      "replies": []
    },
    {
      "id": 565209,
      "author_name": "Firat Gonen",
      "author_url": "",
      "post_date": "2019-06-30T15:31:27.360000",
      "content": "<p>thanks a lot <a href=\"/jesucristo\">@jesucristo</a> </p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 591866,
      "author_name": "Karan Jakhar",
      "author_url": "",
      "post_date": "2019-08-04T11:50:38.610000",
      "content": "<p>Thanks for sharing <a href=\"/jesucristo\">@jesucristo</a> </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 564401,
      "author_name": "Shweta Goyal",
      "author_url": "",
      "post_date": "2019-06-29T11:18:51.320000",
      "content": "<p>Thanks for sharing!</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "564085": "Please check the basic kernel [Demo MiFID metric for Dog image generation comp](https://www.kaggle.com/wendykan/demo-mifid-metric-for-dog-image-generation-comp/notebook) by @wendykan \n\n\n# How to measure GAN performance?\n\nIn GANs, the objective function for the generator and the discriminator usually measures how well they are doing relative to the opponent. For example, we measure how well the generator is fooling the discriminator. It is not a good metric in measuring the image quality or its diversity. As part of the GAN series, we look into the Inception Score and Fréchet Inception Distance on how to compare results from different GAN models.\n\n## Inception Score (IS)\n\nIS uses two criteria in measuring the performance of GAN:\n\n- The quality of the generated images, and\n- **their diversity.**\n\nEntropy can be viewed as randomness. If the value of a random variable x is highly predictable, it has low entropy. On the contrary, if it is highly unpredictable, the entropy is high. For example, in the figure below, we have two probability distributions p(x). p2 has a higher entropy than p1 because p2 has a more uniform distribution and therefore, less predictable about what x is.\n\n![](https://cdn-images-1.medium.com/max/1600/1*RdIYRsqXxRAKwcjtxg6_kw.jpeg)\n\n## Fréchet Inception Distance (FID)\n\nIn FID, we use the Inception network to extract features from an intermediate layer. Then we model the data distribution for these features using a multivariate Gaussian distribution with mean µ and covariance Σ. The FID between the real images x and generated images g is computed as:\n\n![](https://cdn-images-1.medium.com/max/1600/1*tJmwViZesuFM89TcVN7J3A.png)\n\nwhere Tr sums up all the diagonal elements.\n\n&gt; Lower FID values mean better image quality and diversity.\n\nFID is sensitive to mode collapse. As shown below, the distance increases with simulated missing modes.\n\n![](https://cdn-images-1.medium.com/max/1600/1*8PzOnrzIeuM0E1unrFKLfg.png)\n\nFID is more robust to noise than IS. If the model only generates one image per class, the distance will be high. So FID is a better measurement for image diversity. FID has some rather high bias but low variance. By computing the FID between a training dataset and a testing dataset, we should expect the FID to be zero since both are real images. However, running the test with different batches of training sample shows none zero FID.\n\n![](https://cdn-images-1.medium.com/max/1600/1*D-XiZT9FdCWaA9jnyomsVw.png =400x*)\n\nAlso, both FID and IS are based on the **feature extraction** (the presence or the absence of features). Will a generator have the same score if the spatial relationship is not maintained?\n\n## Precision, Recall and F1 Score\n\nIf the generated images look similar to the real images on average, the precision is high. High recall implies the generator can generate any sample found in the training dataset. A F1 score is the harmonic average of precision and recall.\n\nIn the Google Brain research paper “Are GANs created equal”, a toy experiment with a dataset of triangles is created to measure the precision and the recall of different GAN models.\n\n![](https://cdn-images-1.medium.com/max/1600/1*0qc9oLuZxjeAqt4JBzPw2A.png =450x*)\n\n## Kaggle Evaluation (MiFID)\n\nSubmissions are evaluated on MiFID (Memorization-informed Fréchet Inception Distance), which is a modification from Fréchet Inception Distance (FID).\n\nThe smaller MiFID is, the better your generated images are.\n\nKaggle calculates public and private MiFID scores with the same code, but with different pre-trained models and evaluation images. The public pre-train neural network is Inception, and the public images used for evaluation are the ImageNet Dogs (all 120 breeds). We will not be sharing what private model or dataset is used for the private MiFID score.\n\nA demo of our **MiFID** evaluation code can be seen here.\n\nOur workflow of computing the public/private MiFID is demonstrated below:\n\n**Check [Kaggle Evaluation Workflow](https://www.kaggle.com/c/generative-dog-images/overview/evaluation)**\n\n![](https://storage.googleapis.com/kaggle-media/competitions/GAN/Kaggle%20GAN%20Diagram%20(3).png)\n\nI guess we need to find out more about the **mysterious NN** and **private image features**\n\n## References\n- [GAN — How to measure GAN performance?](https://medium.com/@jonathan_hui/gan-how-to-measure-gan-performance-64b988c47732)\n\n- [Improved Techniques for Training GANs](https://arxiv.org/pdf/1606.03498.pdf)\n\n- [Are GANs Created Equal? A Large-Scale Study](https://arxiv.org/pdf/1711.10337.pdf)\n\n- [GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium](https://arxiv.org/pdf/1706.08500.pdf)",
    "566998": "In my kernel [here][1], I further clarify the metric FID by explaining the below diagram. `FID approx = ||c2-c1||^2 + (h2-h1)^2 + (w2-w1)^2`. FID is the distance squared between two ellipses (Gaussian distributions) in latent space where `c_k` is the center of the ellipses (means of features) and `h_k` and `w_k` are widths of ellipses (standard deviation of features).\n\n![image](http://playagricola.com/Kaggle/ellipsesb7119.jpg)\n\n[1]: https://www.kaggle.com/cdeotte/dog-autoencoder#How-is-LB-scored?",
    "584572": "How do we measure inception score and FID ? Do we save the images generated by generator during training and later measure the score or do we go parallaly during training ?",
    "566994": "",
    "565209": "thanks a lot @jesucristo ",
    "591866": "Thanks for sharing @jesucristo ",
    "564401": "Thanks for sharing!"
  }
}