ASDA icon indicating copy to clipboard operation
ASDA copied to clipboard

ValueError: Sample larger than population or is negative

Open qunwen opened this issue 1 year ago • 6 comments

when i running train_stn.py,i got this bug like ValueError: Sample larger than population or is negative anyone knows how to solve it? bug

qunwen avatar Apr 05 '23 08:04 qunwen

I met the same issue. It seems that in part_anns.json, all file_name are in .bmp whereas the data is in .jpg. I printed out the len of valid_part_anns and self.part_anns but they were all 0. Not sure how to fix this

hongquant17 avatar Apr 11 '23 03:04 hongquant17

and the root_dir is parts_bmp_filter_done so it kind of makes sense, I wonder whether there was an additional root_dir for .jpg data

hongquant17 avatar Apr 11 '23 03:04 hongquant17

download .bmp here: https://pan.baidu.com/s/4eYe1PoY

------------------ 原始邮件 ------------------ 发件人: "Binyr/ASDA" @.>; 发送时间: 2023年4月11日(星期二) 中午11:23 @.>; @.***>; 主题: Re: [Binyr/ASDA] ValueError: Sample larger than population or is negative (Issue #7)

I met the same issue. It seems that in part_anns.json, all file_name are in .bmp whereas the data is in .jpg. I printed out the len of valid_part_anns and self.part_anns but they were all 0. Not sure how to fix this

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Binyr avatar Apr 13 '23 15:04 Binyr

@Binyr Update: I downloaded the parts_bmp_filter_done.zip, what is the structure of those folders of .bmp, where should I place them?

hongquant17 avatar Apr 15 '23 04:04 hongquant17

download .bmp here: https://pan.baidu.com/s/4eYe1PoY ------------------ 原始邮件 ------------------ 发件人: "Binyr/ASDA" @.>; 发送时间: 2023年4月11日(星期二) 中午11:23 @.>; @.>; 主题: Re: [Binyr/ASDA] ValueError: Sample larger than population or is negative (Issue #7) I met the same issue. It seems that in part_anns.json, all file_name are in .bmp whereas the data is in .jpg. I printed out the len of valid_part_anns and self.part_anns but they were all 0. Not sure how to fix this — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.>

This share is invalid, please send it again

1-zym avatar Dec 29 '23 07:12 1-zym

@Binyr Update: I downloaded the parts_bmp_filter_done.zip, what is the structure of those folders of .bmp, where should I place them? Hello,you solved it now?

1-zym avatar Jan 03 '24 06:01 1-zym