question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running the test code

See original GitHub issue

So I configured a docker with your code and exact code copies. The configuration file lists

# Parameter section begins here. Edit to change number of test scenes, which model to use, output path.
MAX_NUM_TEST_SCENES=1
NUM_HIERARCHY_LEVELS=3
BASE_OUTPUT_DIR=../results

# Fill in path to test scenes
TEST_SCENES_PATH_3='../data/vox19'
TEST_SCENES_PATH_2='../data/vox9'
TEST_SCENES_PATH_1='../data/vox5'

# Fill in model to use here
PREDICT_SEMANTICS=0
HIERARCHY_LEVEL_3_MODEL='../models/completion/hierarchy1of3'
HIERARCHY_LEVEL_2_MODEL='../models/completion/hierarchy2of3'
HIERARCHY_LEVEL_1_MODEL='../models/completion/hierarchy3of3'

# Specify output folders for each hierarchy level.
OUTPUT_FOLDER_3=${BASE_OUTPUT_DIR}/vis_level3
OUTPUT_FOLDER_2=${BASE_OUTPUT_DIR}/vis_level2
OUTPUT_FOLDER_1=${BASE_OUTPUT_DIR}/vis_level1

When running the shell script from src folder, the first hierarchy is loaded, but when it tries to save the results I get an error

Processing hierarchy level 3, scene 1 of 1: ../data/vox19/e582d82458819d07c184a49feac3ca85__0__.tfrecords.
Traceback (most recent call last):
  File "complete_scan.py", line 394, in <module>
    tf.app.run(main)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 125, in run
    _sys.exit(main(argv))
  File "complete_scan.py", line 325, in main
    assign_fn(session)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/contrib/framework/python/ops/variables.py", line 697, in callback
    saver.restore(session, model_path)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1713, in restore
    raise ValueError("Can't load save_path when it is None.")
ValueError: Can't load save_path when it is None.

Which in my opinion means that the paths are somehow configured incorrectly. Any clues on where to look?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

9reactions
StevenPuttemanscommented, Sep 4, 2018

Ok solution found, you need for each model folder a file called checkpoint with the following content

model_checkpoint_path: "model.ckpt"
all_model_checkpoint_paths: "model.ckpt"

Once you have that, it works glamoursly 😃 @angeladai I suggest you add those to help people in the future =/

0reactions
euzercommented, Jul 16, 2019

Ok solution found, you need for each model folder a file called checkpoint with the following content

model_checkpoint_path: "model.ckpt"
all_model_checkpoint_paths: "model.ckpt"

Once you have that, it works glamoursly 😃 @angeladai I suggest you add those to help people in the future =/

hi @StevenPuttemans that means to copy that checkpoint file inside of the models folder ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing Python in Visual Studio Code
Test : Run All Tests - Runs all tests that have been discovered. Test: Run Tests in Current File - Runs all tests...
Read more >
Run tests | IntelliJ IDEA Documentation - JetBrains
Run the selected test or test folder: Ctrl+Shift+F10 ... such as code coverage, you can run them by using the following options:.
Read more >
Getting Started With Testing in Python
There are many ways to test your code. In this tutorial, you'll learn the techniques from the most basic steps and work towards...
Read more >
unittest — Unit testing framework — Python 3.11.1 ...
Such a working environment for the testing code is called a test fixture. A new TestCase instance is created as a unique test...
Read more >
Running unit tests - RosettaCommons
Unit tests are C++ code and must be compiled before they are run. There are three ways to run unit tests: Run all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found