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

Error: "local variable 'chunk_id' referenced before assignment #1

Open
xueshun-6estates opened this issue Jul 17, 2024 · 1 comment

Comments

@xueshun-6estates
Copy link

When running the convert_parquet_to_png.py script, an error occurs at the process_guichat() function. The error indicates that the chunk_id variable inside the write_images_version2 function is not initialized. I wonder if this is a bug or if there are any underlying reasons for this issue.

@yiye3
Copy link
Collaborator

yiye3 commented Jul 17, 2024

Thanks for your question, I have corrected this error. You can use the new code. https://github.com/yiye3/GUICourse/blob/ecda29e5f4e6cdc6a7d4531fc7cfb8197e95bcfc/data_preprocess/convert_parquet_to_png.py#L61

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

2 participants