質問するログイン新規登録

質問編集履歴

5

文修正

2020/06/20 15:45

投稿

namiki_s
namiki_s

スコア5

title CHANGED
File without changes
body CHANGED
@@ -1,5 +1,4 @@
1
1
  ### 前提・実現したいこと
2
- python初心者です。
3
2
 
4
3
  DCGAN-tensorflow-masterをダウンロードし自前の画像を使って学習させ、新しく画像生成を行いたいのですがうまくいきません。
5
4
  サンプルの実行は成功しました。

4

タイトル変更

2020/06/20 15:45

投稿

namiki_s
namiki_s

スコア5

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

3

誤字

2020/06/20 10:47

投稿

namiki_s
namiki_s

スコア5

title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,7 @@
1
1
  ### 前提・実現したいこと
2
2
  python初心者です。
3
3
 
4
- DCGAN-tensorflow-masterをダウンードし自前の画像を使って学習させ、新しく画像生成を行いたいのですがうまくいきません。
4
+ DCGAN-tensorflow-masterをダウンードし自前の画像を使って学習させ、新しく画像生成を行いたいのですがうまくいきません。
5
5
  サンプルの実行は成功しました。
6
6
 
7
7
  初めて質問するので情報が不足しているかもしれません。

2

タイトル変更

2020/06/20 10:46

投稿

namiki_s
namiki_s

スコア5

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

1

エラー文の修正

2020/06/20 05:58

投稿

namiki_s
namiki_s

スコア5

title CHANGED
@@ -1,1 +1,1 @@
1
- 自前の画像を学習させて画像生成したい
1
+ 自前の画像を学習させて画像生成したい(初心者です)
body CHANGED
@@ -10,20 +10,31 @@
10
10
 
11
11
 
12
12
  ### 発生している問題・エラーメッセージ
13
- Exception: [!] Entire dataset size is less than the configured batch_size
13
+ raise TypeError("Cannot handle this data type: %s, %s" % typekey)
14
- ```
14
+ TypeError: Cannot handle this data type: (1, 1, 3), <f8
15
+
15
16
  エラーメッセージ
16
17
  ```
17
18
  Traceback (most recent call last):
18
- File "main.py", line 147, in <module>
19
+ File "main.py", line 147, in <module>
19
- tf.app.run()
20
+ tf.app.run()
20
- File "/Users/shimauchi_namiki/Library/Python/3.6/lib/python/site-packages/tensorflow/python/platform/app.py", line 126, in run
21
+ File "/Users/shimauchi_namiki/Library/Python/3.6/lib/python/site-packages/tensorflow/python/platform/app.py", line 126, in run
21
- _sys.exit(main(argv))
22
+ _sys.exit(main(argv))
22
- File "main.py", line 115, in main
23
+ File "main.py", line 120, in main
23
- max_to_keep=FLAGS.max_to_keep)
24
+ dcgan.train(FLAGS)
24
- File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/model.py", line 100, in __init__
25
+ File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/model.py", line 195, in train
26
+ grayscale=self.grayscale) for sample_file in sample_files]
27
+ File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/model.py", line 195, in <listcomp>
28
+ grayscale=self.grayscale) for sample_file in sample_files]
29
+ File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/utils.py", line 44, in get_image
30
+ resize_height, resize_width, crop)
31
+ File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/utils.py", line 102, in transform
32
+ resize_height, resize_width)
33
+ File "/Users/shimauchi_namiki/DCGAN-tensorflow-master/utils.py", line 94, in center_crop
34
+ im = Image.fromarray(x[j:j+crop_h, i:i+crop_w])
35
+ File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PIL/Image.py", line 2716, in fromarray
25
- raise Exception("[!] Entire dataset size is less than the configured batch_size")
36
+ raise TypeError("Cannot handle this data type: %s, %s" % typekey)
26
- Exception: [!] Entire dataset size is less than the configured batch_size
37
+ TypeError: Cannot handle this data type: (1, 1, 3), <f8
27
38
  ### 該当のソースコード
28
39
 
29
40
  ```ここに言語名を入力