When I try the Genertor Class of StyleGan2 Networks,the Program raise an AttibuteError when the program statement execute to the MappingNetwork part.The error message is below.How can I fix it.
Message=__deepcopy__
Source=D:\SketchFaceNeRF-main\eg3d\dnnlib\util.py
StackTrace:
File "D:\SketchFaceNeRF-main\eg3d\dnnlib\util.py", line 49, in __getattr__ (Current frame)
raise AttributeError(name)
File "D:\SketchFaceNeRF-main\eg3d\torch_utils\persistence.py", line 108, in __init__
self._init_kwargs = copy.deepcopy(kwargs)
File "D:\SketchFaceNeRF-main\eg3d\training\triplane_sketch3_project.py", line 54, in __init__
self.backbone = StyleGAN2Backbone(z_dim, c_dim, w_dim, img_resolution=256, img_channels=32*3, mapping_kwargs=mapping_kwargs, **synthesis_kwargs)
File "D:\SketchFaceNeRF-main\eg3d\torch_utils\persistence.py", line 106, in __init__
super().__init__(*args, **kwargs)
File "D:\SketchFaceNeRF-main\inference_handdraw.py", line 169, in <module>
G = TriPlaneGenerator(512,25,512,512,3,sr_num_fp16_res=4,mapping_kwargs=mapping_kwargs,rendering_kwargs=G_load.rendering_kwargs,sr_kwargs=sr_kwargs,**synthesis_dict)
I don’t know why the exception will appear and the program is so complex,so no attempt was made.