Coder Social home page Coder Social logo

LFW processing about torch-gan HOT 5 CLOSED

jakezhaojb avatar jakezhaojb commented on July 30, 2024
LFW processing

from torch-gan.

Comments (5)

skaae avatar skaae commented on July 30, 2024

Hi jake,
I just tried with a fresh repo and it works fine for me. Are you sure the files are downloaded correctly?

from torch-gan.

jakezhaojb avatar jakezhaojb commented on July 30, 2024

Hi,

I think I downloaded it right. Can you tell me the version you are using for python and PIL?

from torch-gan.

jakezhaojb avatar jakezhaojb commented on July 30, 2024

I think the problem is originated from #L16 of create_dataset.py in which I got an numpy.array carrying a number of PIL image handlers, and #L19 won't allow this object array to be cropped.

So that I suspect if there is a version discrepancy

from torch-gan.

andersbll avatar andersbll commented on July 30, 2024

Hi there! Make sure you are using Pillow rather than PIL.

The python script works using a recent version of Anaconda Linux with Pillow 3.

from torch-gan.

jakezhaojb avatar jakezhaojb commented on July 30, 2024

Thanks @andersbll
That was exactly the problem!

from torch-gan.

Related Issues (5)

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.