mirror of
https://github.com/denshooter/gpu_colorization.git
synced 2026-01-21 12:32:57 +01:00
add comment that code for loading imagenet dataset copied from blog article
This commit is contained in:
@@ -29,6 +29,8 @@ def getRGB(L, AB, batch_mode=True):
|
||||
|
||||
def main():
|
||||
|
||||
# Code for loading the ImageNet2012 dataset taken from:
|
||||
# https://medium.com/analytics-vidhya/how-to-train-a-neural-network-classifier-on-imagenet-using-tensorflow-2-ede0ea3a35ff
|
||||
|
||||
labels_path = tf.keras.utils.get_file('ImageNetLabels.txt','https://storage.googleapis.com/download.tensorflow.org/data/ImageNetLabels.txt')
|
||||
imagenet_labels = np.array(open(labels_path).read().splitlines())
|
||||
|
||||
Reference in New Issue
Block a user