google / nerfies

This is the code for Deformable Neural Radiance Fields, a.k.a. Nerfies.
https://nerfies.github.io
Apache License 2.0
1.64k stars 221 forks source link

Error importing configs #22

Closed mouzaalmualla closed 3 years ago

mouzaalmualla commented 3 years ago

Hello,

I'm running the colab notebooks, and in the "Nerfies Training notebook" at the line:

from nerfies import configs I get the following error:

ValueError                                Traceback (most recent call last)
<ipython-input-46-236bf18885cd> in <module>()
      1 get_ipython().system(' pip install flax')
      2 get_ipython().system(' pip install frozendict')
----> 3 from nerfies import configs

5 frames
/usr/lib/python3.7/dataclasses.py in _get_field(cls, a_name, a_type)
    731     # For real fields, disallow mutable defaults for known types.
    732     if f._field_type is _FIELD and isinstance(f.default, (list, dict, set)):
--> 733         raise ValueError(f'mutable default {type(f.default)} for field '
    734                          f'{f.name} is not allowed: use default_factory')
    735 

ValueError: mutable default <class 'frozendict.core.frozendict'> for field warp_kwargs is not allowed: use default_factory

Could you help me resolve this? Thanks!

mouzaalmualla commented 3 years ago

Ok this is same as issue #19, the fix there worked.