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

TypeError: tuple indices must be integers or slices, not str #13

Open
FORRYKIM opened this issue Sep 24, 2024 · 1 comment
Open

TypeError: tuple indices must be integers or slices, not str #13

FORRYKIM opened this issue Sep 24, 2024 · 1 comment

Comments

@FORRYKIM
Copy link

Traceback (most recent call last):
File "scripts/inference.py", line 100, in
run()
File "scripts/inference.py", line 39, in run
net = HyperInverter(opts)
File "./models/hyper_inverter.py", line 58, in init
self.load_weights()
File "./models/hyper_inverter.py", line 102, in load_weights
G_original = ckpt["G_ema"]
TypeError: tuple indices must be integers or slices, not str

I don't understand why I have this problem?

@FORRYKIM
Copy link
Author

solved,use official stylegan2 model

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

1 participant