zhujiapeng / resefa

[ICML 2022] Region-Based Semantic Factorization in GANs
https://zhujiapeng.github.io/resefa/
MIT License
70 stars 4 forks source link

Problems with converting pkl to pth #9

Open zxchasing opened 1 year ago

zxchasing commented 1 year ago

When I run the convert_model code, the dnnlib package is missing. After I install dnnlib-0.0.1, the dnnlib.tflib.ops package is missing. Where can I find the new version of dnnlib? Error encountered: File "/data/zxc/Hammer-main/converters/stylegan2_converter.py", line 59, in load_source G, D, Gs = pickle.load(f) File "/home/shenxj/miniconda3/envs/resefa/lib/python3.7/site-packages/dnnlib/tflib/network.py", line 291, in setstate exec(self._build_module_src, module.dict) # pylint: disable=exec-used File "", line 13, in ModuleNotFoundError: No module named 'dnnlib.tflib.ops'

Lzxhh commented 7 months ago

I have the same problem. Do you have ffhq.pth now?