質問編集履歴
3
写真の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -143,3 +143,25 @@
|
|
143
143
|
Python3 (3.9)
|
144
144
|
|
145
145
|
macbookpro 16
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
1,
|
154
|
+
|
155
|
+
写真
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
![イメージ説明](c4e16b023f94f28309c508b3813cad60.png)
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
2,
|
2
文字追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,9 +14,17 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
+
![イメージ説明](64b822dad16e0cafdebf832de44eb790.png)
|
17
18
|
|
18
19
|
|
19
20
|
|
21
|
+
npyの中身です。
|
22
|
+
|
23
|
+
shapeは、エラーが帰ってきました。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
npyでも、特別なものは存在するのでしょうか?
|
20
28
|
|
21
29
|
|
22
30
|
|
1
文字変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,35 +36,15 @@
|
|
36
36
|
|
37
37
|
TypeError Traceback (most recent call last)
|
38
38
|
|
39
|
-
<ipython-input-2
|
39
|
+
<ipython-input-28-e50bfa95f0d9> in <module>()
|
40
40
|
|
41
|
-
1
|
41
|
+
1
|
42
42
|
|
43
|
-
----> 2
|
43
|
+
----> 2 im = Image.fromarray((f_1 * 255).astype(np.uint8))
|
44
|
-
|
45
|
-
3
|
46
|
-
|
47
|
-
4
|
48
44
|
|
49
45
|
|
50
46
|
|
51
|
-
5 frames
|
52
|
-
|
53
|
-
/usr/local/lib/python3.7/dist-packages/matplotlib/image.py in set_data(self, A)
|
54
|
-
|
55
|
-
692 not np.can_cast(self._A.dtype, float, "same_kind")):
|
56
|
-
|
57
|
-
693 raise TypeError("Image data of dtype {} cannot be converted to "
|
58
|
-
|
59
|
-
--> 694 "float".format(self._A.dtype))
|
60
|
-
|
61
|
-
695
|
62
|
-
|
63
|
-
696 if not (self._A.ndim == 2
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
TypeError:
|
47
|
+
TypeError: unsupported operand type(s) for *: 'dict' and 'int'
|
68
48
|
|
69
49
|
```
|
70
50
|
|