Code Monkey home page Code Monkey logo

Comments (9)

junyanz avatar junyanz commented on May 22, 2024

The error is "cannot find any image file in the given directory". Could you make sure that you set the image directory DATA_ROOT correctly?

from pix2pix.

kenn avatar kenn commented on May 22, 2024

Same here, fresh install following the README on the latest MacBook Pro.

DATA_ROOT=./datasets/facades name=facades_generation which_direction=BtoA th train.lua

fails with the same error, and I confirmed ls ./datasets/facades returns test/ train/ val/.

from pix2pix.

Flipajs avatar Flipajs commented on May 22, 2024

I had the same problem.
Adding env before whole command hleped.

env DATA_ROOT=./datasets/facades name=facades_generation which_direction=BtoA th train.lua

from pix2pix.

kenn avatar kenn commented on May 22, 2024

Ah, there was an obscure error before that:

/tmp/lua_f46sBl: line 1: gfind: command not found

So I installed gfind with brew install findutils and this issue was solved. (You might also need to install coreutils as well)

Maybe install script needs to take care of this?

from pix2pix.

kenn avatar kenn commented on May 22, 2024

I had another error saying module 'cunn' not found:No LuaRocks module found for cunn after this and I had to:

luarocks install clnn

Then I had another error that says

Please install cltorch from https://github.com/hughperkins/distro-cl

and lastly I found this:

$ git clone --recursive https://github.com/hughperkins/distro -b distro-cl ~/torch-cl
$ cd ~/torch-cl
$ bash install-deps
Already up-to-date.
Warning: readline is a keg-only and another version is linked to opt.
Use `brew install --force` if you want to install this version
Warning: cmake-3.7.1 already installed
Warning: wget-1.18 already installed
Error: git-2.10.2 already installed
To install this version, first `brew unlink git`
qt: This formula either does not compile or function as expected on macOS
versions newer than El Capitan due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.

So it won't work on macOS Sierra yet? :(

from pix2pix.

ilsang avatar ilsang commented on May 22, 2024

I'm newbie.
I had same error when set path contains tif image files.
But when I set path contains jpg image files, there wasn't problem.
Is it impossible to import tif image files?

from pix2pix.

junyanz avatar junyanz commented on May 22, 2024

Hi ilsang, It seems that "image.load" doesn't work for TIF format. You can find a related discussion at stackoverflow. You can also convert TIF to JPG/PNG offline.

from pix2pix.

ashleyjamesbrown avatar ashleyjamesbrown commented on May 22, 2024

Im having same issue with gfind and gwc but installing coreutils throws up an error installing (findutils seems to install ok)

Last 15 lines from /Users/ashleybrown/Library/Logs/Homebrew/coreutils/03.make:
 src/ginstall -c -m 644 'man/unlink.1' '/usr/local/Cellar/coreutils/8.27/share/man/man1/gunlink.1'
  src/ginstall -c src/uniq '/usr/local/Cellar/coreutils/8.27/bin/./guniq'
 src/ginstall -c -m 644 'man/vdir.1' '/usr/local/Cellar/coreutils/8.27/share/man/man1/gvdir.1'
  src/ginstall -c src/unlink '/usr/local/Cellar/coreutils/8.27/bin/./gunlink'
 src/ginstall -c -m 644 'man/wc.1' '/usr/local/Cellar/coreutils/8.27/share/man/man1/gwc.1'
  src/ginstall -c src/vdir '/usr/local/Cellar/coreutils/8.27/bin/./gvdir'
 src/ginstall -c -m 644 'man/whoami.1' '/usr/local/Cellar/coreutils/8.27/share/man/man1/gwhoami.1'
  src/ginstall -c src/wc '/usr/local/Cellar/coreutils/8.27/bin/./gwc'
  src/ginstall -c src/whoami '/usr/local/Cellar/coreutils/8.27/bin/./gwhoami'
 src/ginstall -c -m 644 'man/yes.1' '/usr/local/Cellar/coreutils/8.27/share/man/man1/gyes.1'
  src/ginstall -c src/yes '/usr/local/Cellar/coreutils/8.27/bin/./gyes'
  src/ginstall -c src/ginstall '/usr/local/Cellar/coreutils/8.27/bin'
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
coreutils formula: incorrect $MANPAGES instructions https://github.com/Homebrew/homebrew-core/issues/14273
coreutils manpage not recognized by touchbar https://github.com/Homebrew/homebrew-core/issues/14262

Error: You are using macOS 10.9.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

from pix2pix.

ashleyjamesbrown avatar ashleyjamesbrown commented on May 22, 2024

It seems that all I had to do was upgrade to Mac OSX 10.12 and the latest xCode and it allowed me to install the xcode command line tools and coreutils so the above errors stopped.

brew link --overwrite coreutils fixed the link error

Now it seems to be able to run the train command on the cpu (its been going for the last 12 hours)

from pix2pix.

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.