Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notes_generator/preprocessing/onset_converter.py, line 64 #7

Open
hongyu19930808 opened this issue May 8, 2023 · 0 comments
Open

Comments

@hongyu19930808
Copy link

for row in values:
    msec = row[6]
    time = int(round(msec / unit))
    ret[time, 0] = 1

row[6] should be row[5], since the columns of the "score" dataframe in my computer, is

score values: Index(['live_id', 'live_difficulty_id', 'live_difficulty_type', 'title',
'note_id', 'timing_msec', 'rail', 'note_type', 'diff', 'bgm_path'],
dtype='object')

Personally, I recommend using score.to_dict("records") instead of score.values and changing row[6] to row["timing_msec"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant