Hangz-nju-cuhk / Rotate-and-Render

Code for Rotate-and-Render: Unsupervised Photorealistic Face Rotation from Single-View Images (CVPR 2020)
Creative Commons Attribution 4.0 International
489 stars 112 forks source link

Report Bugs #10

Closed terrencew closed 4 years ago

terrencew commented 4 years ago

hi, I've downloaded the repo, run the code, and python reports the following errors:

  1. /options/base_options.py", line 177, in parse (3 if opt.use_BG else 0) AttributeError: 'Namespace' object has no attribute 'use_BG' It seems opt.use_BG is not defined.

  2. Set opt.use_BG to True manually, run again: /models/rotatespade_model.py", line 181, in initialize_networks netE = networks.define_E(opt) if opt.use_vae else None AttributeError: 'Namespace' object has no attribute 'use_vae'

So are these bugs or I run experiments/v100_test.sh in a wrong way?

Hangz-nju-cuhk commented 4 years ago

Thanks for reporting. I think I have fixed them, could you please try again?

terrencew commented 4 years ago

Thanks for your help. Now it's ok.