TencentYoutuResearch / CrowdCounting-P2PNet

The official codes for the ICCV2021 Oral presentation "Rethinking Counting and Localization in Crowds: A Purely Point-Based Framework"
Other
423 stars 114 forks source link

problem on random_crop when training (train.py 運行到random_crop時出問題) #53

Open SingCheng opened 1 year ago

SingCheng commented 1 year ago

Hi everyone, 你們好,

When I run the train.py, it occurs the following problems: 當我運行train.py時,出現了以下問題:

image

The annotation points in the Txt file follow as instructions. 每一張圖片的annotation points 都是根據要求寫的

x1 y1 x2 y2

Each image will contain at least 4 points 每張圖片至少有4個點

Some of the annotation points and images have been done. 已經有一部份圖片處理了.

Just wondering how to solve this problem. 請問一下我要如何解決這個問題?

感謝感謝

ruler77 commented 1 year ago

看上去似乎是你的points有问题,正常情况它应该是二维的,你这里是一维的

xiaotongtongxue commented 11 months ago

I have the same problem, have you solved it?

xiaotongtongxue commented 11 months ago

I have addressed the problem. The reason is that some txts are empty. Therefore, deleting them, your code will be run.