Code Monkey home page Code Monkey logo

Comments (5)

zsyzzsoft avatar zsyzzsoft commented on June 15, 2024

The concatenation of DATA_DIR and DATASET should be the path to your tfrecords folder. For example, if the path of your tfrecords is ~/datasets/custom/custom.tfrecords, you can set --data-dir=~/datasets --dataset=custom

from co-mod-gan.

WC-0525 avatar WC-0525 commented on June 15, 2024

Thank you very much for your help. I'm a novice. Today I want to use ffhq data set for training, but I encountered the following problems. I would appreciate it if you could help me.

I have the original ffhq dataset (1024*1024,.png). Should I put these pictures in "/datasets"? And use "create_from_images.py" to generate into "/datasets/ffhq/ffhq-r10.tfrecords"? For example,I typed "python dataset_tools/create_from_images.py --tfrecord-dir=./datasets/ffhq --train-image-dir=./datasets --shuffle --compressed
" on the command line.

But then I used the files generated in this way for training, and the result failed. In addition, the file size of the ".tfrecords" I generated is 0KB, which I find very strange.

I'm sorry if there is any interruption.

from co-mod-gan.

zsyzzsoft avatar zsyzzsoft commented on June 15, 2024

You can directly download ffhq-r10.tfrecords without using create_from_images.py.

from co-mod-gan.

WC-0525 avatar WC-0525 commented on June 15, 2024

Thanks for your help. Unfortunately, I am in China and cannot download the dataset from Google Drive. So I can only make it myself.

from co-mod-gan.

zsyzzsoft avatar zsyzzsoft commented on June 15, 2024

OK I see... --compressed only works for JPEG images, so you can remove this option and try again.

from co-mod-gan.

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.