GithubHelp home page GithubHelp logo

Comments (8)

ArghyaPal avatar ArghyaPal commented on July 18, 2024

Hi,

open the dataloader.py file
and, add

elif dataset == 'AWA':
data_loader = DataLoader(
datasets.ImageFolder('data/AWA', transform=transform),
batch_size=batch_size, shuffle=True)

then, open main.py
and modify this line:
parser.add_argument('--dataset', type=str, default='mnist', choices=[ 'mnist', 'fashion-mnist', 'cifar10', 'cifar100', 'svhn', 'stl10', 'lsun-bed'],

to, parser.add_argument('--dataset', type=str, default='mnist', choices=['AWA', 'mnist', 'fashion-mnist', 'cifar10', 'cifar100', 'svhn', 'stl10', 'lsun-bed'],

from pytorch-generative-model-collections.

HamzahNizami avatar HamzahNizami commented on July 18, 2024

Do the images have to be in a specific format or size.
Thanks in advance

from pytorch-generative-model-collections.

HamzahNizami avatar HamzahNizami commented on July 18, 2024

Hi,

open the dataloader.py file
and, add

elif dataset == 'AWA':
data_loader = DataLoader(
datasets.ImageFolder('data/AWA', transform=transform),
batch_size=batch_size, shuffle=True)

then, open main.py
and modify this line:
parser.add_argument('--dataset', type=str, default='mnist', choices=[ 'mnist', 'fashion-mnist', 'cifar10', 'cifar100', 'svhn', 'stl10', 'lsun-bed'],

to, parser.add_argument('--dataset', type=str, default='mnist', choices=['AWA', 'mnist', 'fashion-mnist', 'cifar10', 'cifar100', 'svhn', 'stl10', 'lsun-bed'],

Do the images have to be in a specific format or size.
Thanks in advance

from pytorch-generative-model-collections.

ArghyaPal avatar ArghyaPal commented on July 18, 2024

No, I don't think so. Please go ahead and use your dataset.. please reply back, if you encounter any problem related to image size

from pytorch-generative-model-collections.

HamzahNizami avatar HamzahNizami commented on July 18, 2024

Okay I will try soon.

I have a dataset of my own JPG images. These images are of strawberries. The image I want to generate is of strawberries.

My images are in colour, will this affect training on this GitHub. Do I need to change to gray-scale.

Finally @ArghyaPal have you successfully trained this model on your dataset? Any help would be greatly appreciated.

Thanks in advance!

from pytorch-generative-model-collections.

HamzahNizami avatar HamzahNizami commented on July 18, 2024

No, I don't think so. Please go ahead and use your dataset.. please reply back, if you encounter any problem related to image size

@ArghyaPal

Hi, I'm currently getting the following error.

image

Even though my images are jpg as shown in the image below. Any help would be appreicated.

image

from pytorch-generative-model-collections.

HamzahNizami avatar HamzahNizami commented on July 18, 2024

I managed to fix this issue by placing them in another folder called 1, so my directory is now, data/strawberriesBlack/1/B(1).jpg

However, my results are completely blank after 50 epochs on GAN

image

My dataset is currently coloured, do you think I should change to grayscale?
How big should said dataset actually be?

Thanks in advance

from pytorch-generative-model-collections.

evdelph avatar evdelph commented on July 18, 2024

@ArghyaPal I am having issues with either size or color scaling with these models, . I am trying to run color images of ships through GAN but I get shape errors (see issue 25). Is there a fix to this?

from pytorch-generative-model-collections.

Related Issues (20)

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.