Running the test code
See original GitHub issueSo 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:
- Created 5 years ago
- Comments:11
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok solution found, you need for each model folder a file called
checkpoint
with the following contentOnce 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 ?