yhlleo / uaggan Goto Github PK
View Code? Open in Web Editor NEWA Pytorch implementation of "Unsupervised Attention-Guided Image-to-Image Translation"
License: Other
A Pytorch implementation of "Unsupervised Attention-Guided Image-to-Image Translation"
License: Other
Hi,
I have gotten the following error during the test phase?
File "test.py", line 47, in
model = create_model(opt) # create a model given opt.model and other options
File "/media/deep/DATA/New_CODE/working3/amena/uaggan/models/init.py", line 65, in create_model
instance = model(opt)
File "/media/deep/DATA/New_CODE/working3/amena/uaggan/models/uag_gan_model.py", line 27, in init
BaseModel.init(self, opt)
File "/media/deep/DATA/New_CODE/working3/amena/uaggan/models/base_model.py", line 35, in init
self.device = torch.device('cuda:{}'.format(self.gpu_ids[0])) if self.gpu_ids else torch.device('cpu') # get device name: CPU or GPU
AttributeError: module 'torch' has no attribute 'device'
Hi,
Thank you for this task. If I want to make attention in the background that I need to change rather than the object. For example, in domain A and B, we have horse images, when translating from domain A - B, I want to keep the same horse in domain B but the background will be changed as domain A. How I can do that? Thank you in advance.
Could you pls explain the insights behind adding early stop training? Why we need to stop the gradient of attention networks?
uaggan/models/uag_gan_model.py
Line 215 in 1a7ced4
In paper, authors have mentioned that they have not used mask till 30 epochs for D. Also, they have not trained attention portion after 30 epochs. Have you used these conditions in codes?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.