Comments (6)
你提供的信息过少,我没法帮你
from dualstylegan.
你提供的信息过少,我没法帮你
我按照readme中说的,下载了cartoon的generator.pt按照要求目录存放,运行python style_transfer.py ,在76行generator.load_state_dict(ckpt["g_ema"]),出现报错
from dualstylegan.
至少提供你输入的命令行吧
from dualstylegan.
python style_transfer.py
完全按照readme中说的,命令行就是python style_transfer.py ,没提供参数
from dualstylegan.
那我只能猜测你模型下载错了
你可以试着下载一下其他风格的,比如caricature,然后运行一下
python style_transfer.py --style caricature --name caricature_transfer --style_id 0 --weight 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
看是不是报一样的错。
如果没报错就是你下载的有问题
如果也报错,那可能是代码哪里有问题(但是那么多人都试过了一直都没啥问题),你可以试一下添加
generator.load_state_dict(ckpt["g_ema"], strict=False)
去忽略那些unexpected key
from dualstylegan.
那我只能猜测你模型下载错了 你可以试着下载一下其他风格的,比如caricature,然后运行一下
python style_transfer.py --style caricature --name caricature_transfer --style_id 0 --weight 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
看是不是报一样的错。 如果没报错就是你下载的有问题 如果也报错,那可能是代码哪里有问题(但是那么多人都试过了一直都没啥问题),你可以试一下添加
generator.load_state_dict(ckpt["g_ema"], strict=False)
去忽略那些unexpected key
添加
generator.load_state_dict(ckpt["g_ema"], strict=False)
后就好了,感谢帮助
from dualstylegan.
Related Issues (20)
- the gpu memory usage of finetuning dualstylegan on 8 gpus HOT 2
- Apart from Human images
- Freeze/crash in web demo on reconstruct_face()
- issue while installing HOT 18
- Fantastic work, I was wondering if I can still run this in my pc which has no GPU. HOT 4
- Fine-Tune DualStyleGAN on Target Domain auto terminate HOT 1
- Training fails HOT 2
- 訓練問題 HOT 5
- finetune_stylegan.py error - TypeError: 'tuple' object is not callable HOT 2
- train_sampler.py - IndexError
- 有没有更简单的app.py
- Error on notebook
- RuntimeError: Error(s) in loading state_dict for Discriminator: HOT 10
- weight 设定有什么说法么? HOT 2
- Problems with training on Google Colab - FIXED HOT 2
- How do '(3) Training DualStyleGAN' on cpu
- About the --style and --style_id parameters. HOT 1
- How to achieve toon style results like ToonApp HOT 1
- What is the purpose of destylization? HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dualstylegan.