質問編集履歴
2
transformのコード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,13 +28,25 @@
|
|
28
28
|
|
29
29
|
```
|
30
30
|
|
31
|
+
|
32
|
+
|
31
33
|
```ここに言語を入力
|
32
34
|
|
33
35
|
dataset = datasets.ImageFolder(root=dataset_root_dir)
|
34
36
|
|
35
37
|
```
|
36
38
|
|
39
|
+
```ここに言語を入力
|
37
40
|
|
41
|
+
data_transform = transforms.Compose([
|
42
|
+
|
43
|
+
transforms.RandomHorizontalFlip(),
|
44
|
+
|
45
|
+
transforms.RandomVerticalFlip(),
|
46
|
+
|
47
|
+
])
|
48
|
+
|
49
|
+
```
|
38
50
|
|
39
51
|
```ここに言語を入力
|
40
52
|
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,17 +34,7 @@
|
|
34
34
|
|
35
35
|
```
|
36
36
|
|
37
|
-
```ここに言語を入力
|
38
37
|
|
39
|
-
data_transform = transforms.Compose([
|
40
|
-
|
41
|
-
transforms.RandomHorizontalFlip(),
|
42
|
-
|
43
|
-
transforms.RandomVerticalFlip(),
|
44
|
-
|
45
|
-
])
|
46
|
-
|
47
|
-
```
|
48
38
|
|
49
39
|
```ここに言語を入力
|
50
40
|
|