GithubHelp home page GithubHelp logo

danielroich / id-disentanglement-pytorch Goto Github PK

View Code? Open in Web Editor NEW
69.0 5.0 13.0 39.28 MB

Non-Official Pytorch implementation of "Face Identity Disentanglement via Latent Space Mapping" https://arxiv.org/abs/2005.07728 Using StyleGAN2 instead of StyleGAN

License: MIT License

Python 4.53% Jupyter Notebook 95.47%
face-identity-disentanglement pytorch stylegan2 stylegan-image-manipulation encoder stylegan-encoder

id-disentanglement-pytorch's People

Contributors

danielroich avatar morandaori avatar nofarmo avatar richienb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

id-disentanglement-pytorch's Issues

Attribute feature extraction failed

There is some error.
File "/data0/cdx/ID-disentanglement-pytorch/Training/train_script.py", line 159, in
attr_vec = torch.squeeze(attr_encoder(attr_images))
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/data0/cdx/ID-disentanglement-pytorch/Models/Encoders/Inception.py", line 29, in forward
return self.model(resized_data * 255)
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torch/nn/modules/container.py", line 141, in forward
input = module(input)
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torchvision/models/inception.py", line 316, in forward
outputs = self._forward(x)
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torchvision/models/inception.py", line 303, in _forward
branch3x3 = self.branch3x3_1(x)
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torchvision/models/inception.py", line 405, in forward
x = self.conv(x)
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, **kwargs)
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 447, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/home/amax/anaconda3/envs/cdx/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 443, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
RuntimeError: Expected 3D (unbatched) or 4D (batched) input to conv2d, but got input of size: [8, 1000]

train_script.py

in this train_script.py,
when running,the console shows:
"
File "D:/PycharmProjects/ID-disentanglement-Pytorch-master/Training/train_script.py", line 116, in
data = next(iter(test_loader))
"

how to do it?please.

Evaluation Codes

May I ask if the codes of evaluation are provided including FID, identity, pose and attribute as shown in figure 1?
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.