agrimgupta92 / sgan

Code for "Social GAN: Socially Acceptable Trajectories with Generative Adversarial Networks", Gupta et al, CVPR 2018
MIT License
810 stars 259 forks source link

a porblem need to be solve #120

Open LeningWang opened 1 year ago

LeningWang commented 1 year ago
line = [float(i) for i in line]

ValueError: could not convert string to float: '780.0\t1.0\t8.46\t3.59'

thanks

Jhfyut commented 1 year ago

Hello, I also met the same problem. Have you solved it

seuwky1021 commented 1 year ago

下面split分割数组的时候,里面换成split('\t')

aresa66 commented 8 months ago

下面split分割数组的时候,里面换成split('\t')

Hello can you please more introduce me about this issue. Thanks

aresa66 commented 8 months ago

Hello, I also met the same problem. Have you solved it

Did you solve this? thanks

aresa66 commented 8 months ago
line = [float(i) for i in line]

ValueError: could not convert string to float: '780.0\t1.0\t8.46\t3.59'

thanks

Hi did you reached to solution about this?

seuwky1021 commented 8 months ago

下面split分割数组的时候,里面换成split('\t') when you use 'split' to split array, use 'split('\t')'. This means using tabs to divide a row into arrays. If you still don't understand, I can send you my code. Best wishes.

------------------ 原始邮件 ------------------ 发件人: "agrimgupta92/sgan" @.>; 发送时间: 2023年11月9日(星期四) 晚上8:14 @.>; @.**@.>; 主题: Re: [agrimgupta92/sgan] a porblem need to be solve (Issue #120)

下面split分割数组的时候,里面换成split('\t')

Hello can you please more introduce me about this issue. Thanks

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

aresa66 commented 8 months ago

下面split分割数组的时候,里面换成split('\t') when you use 'split' to split array, use 'split('\t')'. This means using tabs to divide a row into arrays. If you still don't understand, I can send you my code. Best wishes.

------------------ 原始邮件 ------------------ 发件人: "agrimgupta92/sgan" @.>; 发送时间: 2023年11月9日(星期四) 晚上8:14 @.>; @.**@.>; 主题: Re: [agrimgupta92/sgan] a porblem need to be solve (Issue #120)

下面split分割数组的时候,里面换成split('\t')

Hello can you please more introduce me about this issue. Thanks

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

Hi again Thanks for your answer. Yes please if I can see your code I will be better understanding about this issue. Regards

Jhfyut commented 8 months ago

Hello, I also met the same problem. Have you solved it

Did you solve this? thanks line = line.strip().split(delim)---->line = line.strip().split('\t')

aresa66 commented 8 months ago

下面split分割数组的时候,里面换成split('\t') when you use 'split' to split array, use 'split('\t')'. This means using tabs to divide a row into arrays. If you still don't understand, I can send you my code. Best wishes.

------------------ 原始邮件 ------------------ 发件人: "agrimgupta92/sgan" @.>; 发送时间: 2023年11月9日(星期四) 晚上8:14 @.>; @.**@.>; 主题: Re: [agrimgupta92/sgan] a porblem need to be solve (Issue #120)

下面split分割数组的时候,里面换成split('\t')

Hello can you please more introduce me about this issue. Thanks

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

Hi sorry but I didn't understand your comment. Can I have this part of your code? Thanks

Seazoned commented 2 months ago

I met this problem, too. And I finally found the problem is the default parameter 'delim' was set to ' '(space)instead of '/t' in train.py, like: parser.add_argument('--delim', default=' ') Maybe you should set it to '/t'.

SreekarBasa commented 1 week ago

I met this problem, too. And I finally found the problem is the default parameter 'delim' was set to ' '(space)instead of '/t' in train.py, like: parser.add_argument('--delim', default=' ') Maybe you should set it to '/t'.

It worked Thanks!!