AerialDetection icon indicating copy to clipboard operation
AerialDetection copied to clipboard

执行prepare_dota1.py时报错,请问如何解决?

Open tiber2013 opened this issue 4 years ago • 7 comments

img name: P1452 img name: P0962 img name: P1838 img name: P1770 img name: P2220 multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar return list(map(*args)) File "/home/zhouqc/project/objectDetection/AerialDetection/DOTA_devkit/SplitOnlyImage_multi_process.py", line 45, in SplitSingle assert np.shape(img) != () AssertionError """

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "prepare_dota1.py", line 102, in prepare(srcpath, dstpath) File "prepare_dota1.py", line 93, in prepare split_test.splitdata(1) File "/home/zhouqc/project/objectDetection/AerialDetection/DOTA_devkit/SplitOnlyImage_multi_process.py", line 85, in splitdata self.pool.map(worker, imagenames) File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 268, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 657, in get raise self._value AssertionError

在执行到P2220时,报出错误?请问是什么意思?怎么解决?

tiber2013 avatar Feb 27 '20 13:02 tiber2013

I have the same problem, do you solved it?

wangjue-wzq avatar Mar 24 '20 03:03 wangjue-wzq

Sorry, I haven't this problem.

Sent from my iPhone

On Mar 24, 2020, at 11:20, wzq [email protected] wrote:

 I have the same problem, do you solved it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

bao258456 avatar Mar 24 '20 07:03 bao258456

img name: P1452 img name: P0962 img name: P1838 img name: P1770 img name: P2220 multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar return list(map(*args)) File "/home/zhouqc/project/objectDetection/AerialDetection/DOTA_devkit/SplitOnlyImage_multi_process.py", line 45, in SplitSingle assert np.shape(img) != () AssertionError """

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "prepare_dota1.py", line 102, in prepare(srcpath, dstpath) File "prepare_dota1.py", line 93, in prepare split_test.splitdata(1) File "/home/zhouqc/project/objectDetection/AerialDetection/DOTA_devkit/SplitOnlyImage_multi_process.py", line 85, in splitdata self.pool.map(worker, imagenames) File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 268, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 657, in get raise self._value AssertionError

在执行到P2220时,报出错误?请问是什么意思?怎么解决?

Hello, I met this question too. I just check the original data(DOTA-v1.0), where train/images should only contains 1411 png file,
val/images should only contains 458 png file,
test/images should only contains 937 png file,
the same number as the txt file in labelTxt.

It seems when unzip the original zip file of images, there may leave other file which is not png

hedes1992 avatar Apr 02 '20 02:04 hedes1992

img name: P1452 img name: P0962 img name: P1838 img name: P1770 img name: P2220 multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(*args, **kwds)) File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar return list(map(*args)) File "/home/zhouqc/project/objectDetection/AerialDetection/DOTA_devkit/SplitOnlyImage_multi_process.py", line 45, in SplitSingle assert np.shape(img) != () AssertionError """

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "prepare_dota1.py", line 102, in prepare(srcpath, dstpath) File "prepare_dota1.py", line 93, in prepare split_test.splitdata(1) File "/home/zhouqc/project/objectDetection/AerialDetection/DOTA_devkit/SplitOnlyImage_multi_process.py", line 85, in splitdata self.pool.map(worker, imagenames) File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 268, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/home/zhouqc/anaconda3/envs/AerialDetection/lib/python3.7/multiprocessing/pool.py", line 657, in get raise self._value AssertionError

在执行到P2220时,报出错误?请问是什么意思?怎么解决?

请问你解决这个问题了么?谢谢

ChengxiHAN avatar Jun 15 '20 00:06 ChengxiHAN

I have the same problem, do you solved it?

请问你解决这个问题了么?谢谢

ChengxiHAN avatar Jun 15 '20 00:06 ChengxiHAN

I have the same problem, do you solved it?

请问你解决这个问题了么?谢谢

I just check the img's number and delete the file which are not png files

hedes1992 avatar Aug 12 '20 07:08 hedes1992

数据集图片文件的后缀要与SplitOnlyImage_multi_process.splitbase类的参数‘ext’保持一致。 image

StuLiu avatar May 21 '21 11:05 StuLiu