質問編集履歴

3

質問内容を変更しました。

2020/09/03 04:34

投稿

oinari03
oinari03

スコア59

test CHANGED
File without changes
test CHANGED
@@ -50,6 +50,16 @@
50
50
 
51
51
  初心者であり、わからない点もあるので不明な点があれば追記いたします。
52
52
 
53
+ 改めてお願いしたいこと
54
+
55
+ ①errorの解消
56
+
57
+ ②loss,accの精度を確認するときの流れというか、実装のアドバイス
58
+
59
+ ③model.pyのforwardの中身を見てfc1のあたりがおかしそうなので中身をどうにかしてみたいのですが、
60
+
61
+ xに何を与えて確認したらいいのかわかりません
62
+
53
63
 
54
64
 
55
65
  ### error

2

追記しました。

2020/09/03 04:34

投稿

oinari03
oinari03

スコア59

test CHANGED
File without changes
test CHANGED
@@ -6,7 +6,29 @@
6
6
 
7
7
 
8
8
 
9
- やろうと思っていることはpytorchで256x256x3の画像分類をしようとしています。
9
+ やろうと思っていることは以下のディレクトリ構成からpytorchで256x256x3の画像を2値に画像分類をしようとしています。
10
+
11
+
12
+
13
+ ```
14
+
15
+ ├─animal_dataset
16
+
17
+ ├─train
18
+
19
+ │ ├─cat(70枚くらい)
20
+
21
+ │ └─dog(70枚くらい)
22
+
23
+ └─val
24
+
25
+ ├─cat(30枚くらい)
26
+
27
+ └─dog(30枚くらい)
28
+
29
+ ```
30
+
31
+
10
32
 
11
33
 
12
34
 

1

参考リンクを設定しました。

2020/09/03 03:58

投稿

oinari03
oinari03

スコア59

test CHANGED
File without changes
test CHANGED
@@ -426,11 +426,9 @@
426
426
 
427
427
  ### 参考
428
428
 
429
- https://pystyle.info/pytorch-train-classification-problem-using-a-pretrained-model/
429
+ [画像分類参考](https://pystyle.info/pytorch-train-classification-problem-using-a-pretrained-model/)
430
-
431
-
432
-
430
+
433
- https://discuss.pytorch.org/t/runtimeerror-size-mismatch-m1-64-x-512-m2-8192-x-512-at-pytorch-aten-src-thc-generic-thctensormathblas-cu-290/69127/3
431
+ [errorについて](https://discuss.pytorch.org/t/runtimeerror-size-mismatch-m1-64-x-512-m2-8192-x-512-at-pytorch-aten-src-thc-generic-thctensormathblas-cu-290/69127/3)
434
432
 
435
433
 
436
434