質問編集履歴
2
内容の修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
定義済みの変数でなぜNameErrorがおこる?
|
body
CHANGED
@@ -121,41 +121,10 @@
|
|
121
121
|
というコードより上に変数「i」が使用されているのにそこではエラーが出ません。
|
122
122
|
なぜなのでしょう?
|
123
123
|
|
124
|
+
またどのように解決するのでしょう
|
124
125
|
#環境
|
125
126
|
[TelloPy](https://github.com/hanyazou/TelloPy/tree/develop-0.7.0/tests):0.6.0
|
126
127
|
python:3.5
|
127
128
|
Keras:2.0.1
|
128
129
|
opencv-python:3.1.0.0
|
129
|
-
ssd:1.0.0
|
130
|
+
ssd:1.0.0
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
#他のエラー
|
134
|
-
実行するとその時々で他にも異なるエラーが出ることがあり、それらについてもどうしたらよいでしょうか
|
135
|
-
|
136
|
-
```python
|
137
|
-
Traceback (most recent call last):
|
138
|
-
File "C:\Users\one\Anaconda3\envs\py3.5\lib\site-packages\tensorflow\python\client\session.py", line 582, in __del__
|
139
|
-
UnboundLocalError: local variable 'status' referenced before assignment
|
140
|
-
```
|
141
|
-
```Python
|
142
|
-
Traceback (most recent call last):
|
143
|
-
File "C:\Users\one\Anaconda3\envs\py3.5\lib\site-packages\tellopy\examples\video_effect.py", line 92, in main
|
144
|
-
image = getSSDImage(imgpil)
|
145
|
-
File "C:\Users\one\Anaconda3\envs\py3.5\lib\site-packages\tellopy\examples\video_effect.py", line 65, in getSSDImage
|
146
|
-
score = top_conf[i]
|
147
|
-
IndexError: index 0 is out of bounds for axis 0 with size 0
|
148
|
-
index 0 is out of bounds for axis 0 with size 0
|
149
|
-
```
|
150
|
-
```Python
|
151
|
-
Traceback (most recent call last):
|
152
|
-
File "C:\Users\one\Anaconda3\envs\py3.5\lib\site-packages\tellopy\examples\video_effect.py", line 85, in main
|
153
|
-
container = av.open(drone.get_video_stream())
|
154
|
-
File "av/container/core.pyx", line 249, in av.container.core.open
|
155
|
-
File "av/container/core.pyx", line 210, in av.container.core.Container.__cinit__
|
156
|
-
File "av/container/core.pyx", line 111, in av.container.core.ContainerProxy.__init__
|
157
|
-
File "av/container/core.pyx", line 182, in av.container.core.ContainerProxy.err_check
|
158
|
-
File "av/utils.pyx", line 103, in av.utils.err_check
|
159
|
-
av.AVError: [Errno 1094995529] Invalid data found when processing input: 'VideoStream'
|
160
|
-
[Errno 1094995529] Invalid data found when processing input: 'VideoStream'
|
161
|
-
```
|
1
タイトルの変更
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
TelloPyを実行してNameErrorなどが出て困っています
|
body
CHANGED
@@ -128,6 +128,8 @@
|
|
128
128
|
opencv-python:3.1.0.0
|
129
129
|
ssd:1.0.0
|
130
130
|
|
131
|
+
|
132
|
+
|
131
133
|
#他のエラー
|
132
134
|
実行するとその時々で他にも異なるエラーが出ることがあり、それらについてもどうしたらよいでしょうか
|
133
135
|
|