Giter VIP home page Giter VIP logo

pytorch-pretrained-gans's People

Contributors

lukemelas 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  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

pytorch-pretrained-gans's Issues

Cannot import pytorch_pretrained_gans

I follow the tutorial and install by running
pip install git+https://github.com/lukemelas/pytorch-pretrained-gans

However, I receive the following error:

from pytorch_pretrained_gans import make_gan
Traceback (most recent call last):
File "", line 1, in
File "/home/zeyuy/miniconda3/lib/python3.8/site-packages/pytorch_pretrained_gans/init.py", line 5, in
from .StudioGAN import make_studiogan
File "/home/zeyuy/miniconda3/lib/python3.8/site-packages/pytorch_pretrained_gans/StudioGAN/init.py", line 9, in
from .models import resnet
ModuleNotFoundError: No module named 'pytorch_pretrained_gans.StudioGAN.models'

Basic setup has an import erro

Hi,

Thank you for making this repository. I tried setting it up as instructed with the following code, but the code fails to import make_gan

pip install git+https://github.com/lukemelas/pytorch-pretrained-gans

import torch
from pytorch_pretrained_gans import make_gan

Sample a class-conditional image from BigGAN with default resolution 256

G = make_gan(gan_type='biggan') # -> nn.Module
y = G.sample_class(batch_size=1) # -> torch.Size([1, 1000])
z = G.sample_latent(batch_size=1) # -> torch.Size([1, 128])
x = G(z=z, y=y) # -> torch.Size([1, 3, 256, 256])

Screen Shot 2024-04-03 at 3 29 23 PM

Access Discriminator Model

Hi,
Thank you for the repo, it is very useful!

For my current work, I would like to get also the pre-trained Discriminators from the GAN models that I load.
Is it possible for you to share them as well?

Thanks

BigBiGAN Encoder

Hi,

Thanks very much for compiling all of these models. I am curious if the encoder for BigBiGAN would be difficult to implement in this repository? Its quite uncommon for a GAN to also train an encoder that maps real images into the latent space. So it would be useful to have a pytorch implementation if it.

Best,
Cory

Architecture of BigBiGAN

Hi,
According to the architecture of BigBiGAN, there are joint, and unary terms in the discriminator. Can you help me in finding that in your BigBiGAN model arch?

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.