KeyuWu-CS / MonoHair

Code of MonoHair: High-Fidelity Hair Modeling from a Monocular Video
Other
100 stars 4 forks source link

Fix OrderedDict mutation while iteration in prepare_data.py #6

Open 0mil opened 4 months ago

0mil commented 4 months ago

This PR fixes a RuntimeError: OrderedDict mutated during iteration error This code worked in Python 3.9.16. I guess that the error occurs when using Python 3.10.12. The error is caused by modifying an OrderedDict during iteration, which is prohibited in Python 3.10.12.

Changes: