Skip to content

[Solved] Problems with TensorFlow 1.0 and Windows #9

@drfknoble

Description

@drfknoble

Hi there,

First, I wanted to say thanks for sharing! I'm working through the code to help with my own segmentation project and having something to work from is a big help.

Second, I came across a few issues (minor really) that I've figured out and wanted to share:

  • TensorFlow 1.0 replaced tf.pack() with tf.stack().
  • In TensorFlow 1.0, variables should be initialised using tf.global_variables_initializer()
  • In Windows, the os.path.splittext() should use "\ \", rather than '/'. Otherwise, the program can't find any files to pickle (and the MITSceneParsing.pickle file is empty), which in turn means 0 records are found and the feed dict instruction doesn't work.

Like I said, pretty minor stuff, but I wanted to post in case anyone else had any issues.

Best regards,

Frazer

P.S. If you get an out of memory error, it's likely because you're trying to work with 20,000 images, which might be a bit too much. I deleted some of the training images and it worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions