sandeep-krishnamurthy commented on a change in pull request #12790: Extending the DCGAN example implemented by gluon API to provide a more straight-forward evaluation on the generated image URL: https://github.com/apache/incubator-mxnet/pull/12790#discussion_r225282868
########## File path: example/gluon/DCgan/dcgan.py ########## @@ -0,0 +1,317 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +import matplotlib as mpl +mpl.use('Agg') +from matplotlib import pyplot as plt + +import argparse +import mxnet as mx +from mxnet import gluon +from mxnet.gluon import nn +from mxnet import autograd +import numpy as np +import logging +from datetime import datetime +import os +import time + +from inception_score import get_inception_score + +def fill_buf(buf, i, img, shape): Review comment: Please add code docs for easy readability and maintaining this script. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services