質問編集履歴

5

文修正

2020/06/20 15:45

投稿

namiki_s
namiki_s

スコア5

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,4 @@
1
1
  ### 前提・実現したいこと
2
-
3
- python初心者です。
4
2
 
5
3
 
6
4
 

4

タイトル変更

2020/06/20 15:45

投稿

namiki_s
namiki_s

スコア5

test CHANGED
@@ -1 +1 @@
1
- DCGAN-tensorflow-masterで自前の画像を学習させて画像生成したいです(初心者です)
1
+ DCGAN-tensorflow-masterで自前の画像を学習させて画像生成したいです
test CHANGED
File without changes

3

誤字

2020/06/20 10:47

投稿

namiki_s
namiki_s

スコア5

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- DCGAN-tensorflow-masterをダウンードし自前の画像を使って学習させ、新しく画像生成を行いたいのですがうまくいきません。
7
+ DCGAN-tensorflow-masterをダウンードし自前の画像を使って学習させ、新しく画像生成を行いたいのですがうまくいきません。
8
8
 
9
9
  サンプルの実行は成功しました。
10
10
 

2

タイトル変更

2020/06/20 10:46

投稿

namiki_s
namiki_s

スコア5

test CHANGED
@@ -1 +1 @@
1
- 自前の画像を学習させて画像生成したい(初心者です)
1
+ DCGAN-tensorflow-masterで自前の画像を学習させて画像生成したいです(初心者です)
test CHANGED
File without changes

1

エラー文の修正

2020/06/20 05:58

投稿

namiki_s
namiki_s

スコア5

test CHANGED
@@ -1 +1 @@
1
- 自前の画像を学習させて画像生成したい
1
+ 自前の画像を学習させて画像生成したい(初心者です)
test CHANGED
@@ -22,9 +22,11 @@
22
22
 
23
23
  ### 発生している問題・エラーメッセージ
24
24
 
25
- Exception: [!] Entire dataset size is less than the configured batch_size
25
+ raise TypeError("Cannot handle this data type: %s, %s" % typekey)
26
26
 
27
- ```
27
+ TypeError: Cannot handle this data type: (1, 1, 3), <f8
28
+
29
+
28
30
 
29
31
  エラーメッセージ
30
32
 
@@ -32,23 +34,43 @@
32
34
 
33
35
  Traceback (most recent call last):
34
36
 
35
- File "main.py", line 147, in <module>
37
+ File "main.py", line 147, in <module>
36
38
 
37
- tf.app.run()
39
+ tf.app.run()
38
40
 
39
- File "/Users/shimauchi_namiki/Library/Python/3.6/lib/python/site-packages/tensorflow/python/platform/app.py", line 126, in run
41
+ File "/Users/shimauchi_namiki/Library/Python/3.6/lib/python/site-packages/tensorflow/python/platform/app.py", line 126, in run
40
42
 
41
- _sys.exit(main(argv))
43
+ _sys.exit(main(argv))
42
44
 
43
- File "main.py", line 115, in main
45
+ File "main.py", line 120, in main
44
46
 
45
- max_to_keep=FLAGS.max_to_keep)
47
+ dcgan.train(FLAGS)
46
48
 
47
- File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/model.py", line 100, in __init__
49
+ File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/model.py", line 195, in train
48
50
 
49
- raise Exception("[!] Entire dataset size is less than the configured batch_size")
51
+ grayscale=self.grayscale) for sample_file in sample_files]
50
52
 
53
+ File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/model.py", line 195, in <listcomp>
54
+
55
+ grayscale=self.grayscale) for sample_file in sample_files]
56
+
57
+ File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/utils.py", line 44, in get_image
58
+
59
+ resize_height, resize_width, crop)
60
+
61
+ File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/utils.py", line 102, in transform
62
+
63
+ resize_height, resize_width)
64
+
65
+ File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/utils.py", line 94, in center_crop
66
+
67
+ im = Image.fromarray(x[j:j+crop_h, i:i+crop_w])
68
+
69
+ File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PIL/Image.py", line 2716, in fromarray
70
+
51
- Exception: [!] Entire dataset size is less than the configured batch_size
71
+ raise TypeError("Cannot handle this data type: %s, %s" % typekey)
72
+
73
+ TypeError: Cannot handle this data type: (1, 1, 3), <f8
52
74
 
53
75
  ### 該当のソースコード
54
76