Comments (4)
Hi mingo-x, you can combine two losses (g_loss, w_rec_loss) together.
I think there is no huge difference.
However, you should be aware that w_rec_loss only affects the encoder, not the generator in the original version.
Your modification makes w_rec_loss also affect the update of the generator.
Lastly, if you didn't modify any training code, I don't know why RuntimeError occurs. Please check your torch version.
from stylemapgan.
I also ran into this error. Hi @mingo-x, have you solved it?
from stylemapgan.
PyTorch 1.8 is working for me, version 1.10 is not.
from stylemapgan.
@songquanpeng backward(retain_graph=True), solved it.
from stylemapgan.
Related Issues (20)
- Questions about metrics for reconstruction HOT 5
- Fail to open demo HOT 2
- [code]About the train.py HOT 2
- Pre-trained weights download link is invalid. HOT 6
- How to edit my own images ? HOT 2
- Generated Result out of memory HOT 1
- What's the difference between normal generator and small generator? HOT 2
- Download.sh updated link points to possibly corrupted models HOT 2
- Any advice for class conditional image generation for stylemapgan HOT 2
- How to calculate or obtain GT_labels and LMDB_test_mask for other images in CelebA_HQ HOT 1
- Different sizes between downloaded lmdb data and generated data with prepare_data.py
- can i get a new pretrained network file? HOT 1
- How to do StyleMixing on custom dataset
- Encoding quality of real images HOT 3
- UnpicklingError: invalid load key, '<'. HOT 9
- what's the effect of different normalize_mode
- can't download model
- metrics in table 3
- ImportError: No module named 'upfirdn2d'
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 stylemapgan.