Skip to content

Issue with Jsonl and code_type="SNAC" #217

@thangpnb

Description

@thangpnb

System Info

Torch version 2.3.0, CUDA version 12.4, Ubuntu 22.04, GTX 1080TI

Information

  • The official example scripts
  • My own modified scripts

🐛 Describe the bug

Originally posted by @Lalaramarya and support by @cwx-worst-one in #216

if snac_tokens_str is a 'list' of 'int', I have error in here:
def get_snac_answer_token(snac_tokens_str):
snac_tokens = snac_tokens_str.split()
audio_length = len(snac_tokens) // 8 + 8

Error logs

snac_tokens = snac_tokens_str.split()
^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'split'

Expected behavior

Can run training with Jsonl and code_type="SNAC"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions