aboutsummaryrefslogtreecommitdiff
path: root/cgan.py
diff options
context:
space:
mode:
authornunzip <np.scarh@gmail.com>2019-03-08 12:17:11 +0000
committernunzip <np.scarh@gmail.com>2019-03-08 12:17:11 +0000
commit240be62b504dbdcb0cadcaf313d111eefe9ceea0 (patch)
tree6bac60f960f23fe2d714bd90c3104f3328180b24 /cgan.py
parent4a0b1bd9b6a622007e9e5b5e99f49c3a5249d16b (diff)
downloade4-gan-240be62b504dbdcb0cadcaf313d111eefe9ceea0.tar.gz
e4-gan-240be62b504dbdcb0cadcaf313d111eefe9ceea0.tar.bz2
e4-gan-240be62b504dbdcb0cadcaf313d111eefe9ceea0.zip
Fix issue with produced labels
Diffstat (limited to 'cgan.py')
-rwxr-xr-xcgan.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgan.py b/cgan.py
index 68bb2cc..d27b11b 100755
--- a/cgan.py
+++ b/cgan.py
@@ -204,9 +204,9 @@ class CGAN():
labels_val = np.zeros(5000).reshape(-1, 1)
for i in range(10):
- labels_train[i*5500:] = i
- labels_test[i*1000:] = i
- labels_val[i*500:] = i
+ labels_train[i*5500:-1] = i
+ labels_test[i*1000:-1] = i
+ labels_val[i*500:-1] = i
train_data = self.generator.predict([noise_train, labels_train])
test_data = self.generator.predict([noise_test, labels_test])