felixchenfy / Realtime-Action-Recognition

Apply ML to the skeletons from OpenPose; 9 actions; multiple people. (WARNING: I'm sorry that this is only good for course demo, not for real world applications !!! Those ary very difficult !!!)
MIT License
875 stars 256 forks source link

Try to do training, but there has bug "ValueError: could not convert string to float: 'jump' " #5

Closed wytchen closed 4 years ago

wytchen commented 5 years ago

Hello, thank you for sharing, I have generated "src/skeleton_data/skeletons5_info.txt", and then I try to do training , but there has bug "ValueError: could not convert string to float: 'jump' " while running enc.fit(Y_str) , I could not resolve after try many methods, would you kindly help answer ?

felixchenfy commented 5 years ago

Hello, I just tried my program again and there is no bug on my computer.

I locate the sentence you described and print out the Y_str as below :

    enc = OneHotEncoder(handle_unknown='ignore')
    print("Y_str:", Y_str)
    enc.fit(Y_str)

The result is:

Y_str: [['jump'], ['jump'], ['jump'], ['jump'], ..., ['wave'], ['wave']]

Is your result same as mine?
Could you tell me about your "Y_str" and "skeletons5_info.txt" so I might have chance to figure out the problem?
Thanks

pablovicentem commented 5 years ago

I am having the same error, did you manage to solve it?

wytchen commented 5 years ago

Hi Pabio,

I have reprogram the One Hot Encoder part, then can work, hope could

help you.

Pablo Vicente notifications@github.com 於 2019年10月4日 週五 下午3:10寫道:

I am having the same error, did you manage to solve it?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/felixchenfy/Realtime-Action-Recognition/issues/5?email_source=notifications&email_token=AE5D7LIGVFXCPC5KRXXO2XTQM3T5FA5CNFSM4IF6TWG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAKWPKI#issuecomment-538273705, or mute the thread https://github.com/notifications/unsubscribe-auth/AE5D7LIOVTZ4H4HOKBHUO2LQM3T5FANCNFSM4IF6TWGQ .

-- 祝 順心 / Best regards, 陳昱廷 / Wayne YT Chen