Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__init__() missing 4 required positional arguments: 'z_dim', 'style_dim', 'f_dim', and 'hidden_dim' #2

Open
shichen-wang opened this issue Nov 12, 2024 · 1 comment

Comments

@shichen-wang
Copy link

when i run python train_artnerf.py --curriculum=face2anime,meet this error,how can i fix it?

python train_artnerf.py --curriculum=face2anime
Namespace(curriculum='face2anime', fid_interval=2000, load_dir='', model_save_interval=6000, n_epochs=1000, output_dir='out_dir', port='16666', sample_interval=2000, set_step=None)
Traceback (most recent call last):
File "train_artnerf.py", line 579, in
train(opt)
File "train_artnerf.py", line 122, in train
generator = getattr(generators_artnerf, metadata['generator'])(FiLM, metadata['z_dim'], metadata['hidden_dim']).to(device)
TypeError: init() missing 4 required positional arguments: 'z_dim', 'style_dim', 'f_dim', and 'hidden_dim'

@silence-tang
Copy link
Owner

Hi, I just updated the readme and the whole project, I also released the pretrained models. Please clone the project and follow the readme to setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants