GithubHelp home page GithubHelp logo

Preprocess RaFD dataset about stargan HOT 7 OPEN

yunjey avatar yunjey commented on May 20, 2024
Preprocess RaFD dataset

from stargan.

Comments (7)

Fairydetail avatar Fairydetail commented on May 20, 2024 1

Could you please share me with the RaFD datasets? Because I had apply it in the official website for several days, but I don't receive an apply yet.Thanks a lot! @Sampson-Lee

from stargan.

Sampson-Lee avatar Sampson-Lee commented on May 20, 2024

Hi, @Fairydetail
I am sorry to tell you that I can not share the RaFD because of the agreement. I think you can get an official permission after several days, as I had waited about 15 days. Good luck.

from stargan.

Fairydetail avatar Fairydetail commented on May 20, 2024

I have the same problem with you. So would you mind to tell me the whether it works to crop like that. @Sampson-Lee

from stargan.

Sampson-Lee avatar Sampson-Lee commented on May 20, 2024

@Fairydetail I think the results are similar, although I crop in different methods

from stargan.

AdarshMJ avatar AdarshMJ commented on May 20, 2024

While training with RaFD dataset, should I also make an attribute.txt file like that of Celeb dataset? Or only train with images?

from stargan.

iamzhangyunlu avatar iamzhangyunlu commented on May 20, 2024

While training with RaFD dataset, should I also make an attribute.txt file like that of Celeb dataset? Or only train with images?

same problem with you, so how do you deal with the RaFD datasets?

from stargan.

cy19980615 avatar cy19980615 commented on May 20, 2024

Hi, @yunjey
I am confused about the method of preprocessing RaFD, where the download images have initial size 618 x 1024. If I crop the images to 256 x 256, some images became partial absent, especially when the camera angle is 45 degree or 135 degree.
So I crop the initial images as follow code:
elif dataset == 'RaFD':
box = (100, 150, 600, 700)
if mode == 'train':
transform = transforms.Compose([
transforms.Lambda(lambda x: x.crop(box)),
transforms.Resize(image_size),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])
else:
transform = transforms.Compose([
transforms.Lambda(lambda x: x.crop(box)),
transforms.Resize(image_size),
transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])
dataset = ImageFolder(image_path, transform)

And I get some samples like
But I am not sure whether the method is right, could you help me? Thanks in advance.

hello could you share me with the RaFD dataset by mailbox:[email protected] i am Anxious to do graduation design for undergraduates,thanks very much!!!

from stargan.

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.