Skip to content

Commit 67f0182

Browse files
authored
Merge pull request #346 from astro-informatics/update-lexci-models
Move test model into repo instead of submodule
2 parents df448b0 + 85ec1e9 commit 67f0182

20 files changed

+5
-8
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "lexci_models"]
2-
path = lexci_models
3-
url = git@github.com:astro-informatics/lexci_models.git

cpp/tests/cppflow_model.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ TEST_CASE("Cppflow Model"){
3232
cppflow::tensor input_tensor = sopt::cppflowutils::convert_image_to_tensor(image, image_rows, image_cols);
3333

3434
// Read in model
35-
cppflow::model model(std::string(sopt::notinstalled::models_directory() + "/DnCNN/snr_15_model.pb/"));
35+
cppflow::model model(std::string(sopt::notinstalled::models_directory() + "/snr_15_model.pb/"));
3636

3737
// Run model on image
3838
// TODO: Automatically detect the string parameters, see issue #320
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.

cpp/tests/tf_inpainting.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ using Image = sopt::Image<Scalar>;
3131
TEST_CASE("Inpainting"){
3232
extern std::unique_ptr<std::mt19937_64> mersenne;
3333
std::string const input = "cameraman256";
34-
std::string const model_path = static_cast<std::string>(sopt::notinstalled::models_directory() + "/DnCNN/snr_15_model.pb/");
34+
35+
std::string const model_path = std::string(sopt::notinstalled::models_directory() + "/snr_15_model.pb/");
3536

3637
Image const image = sopt::notinstalled::read_standard_tiff(input);
3738

cpp/tools_for_tests/directories.in.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
namespace sopt::notinstalled {
88
//! Holds images and such
9-
inline std::string data_directory() { return "@PROJECT_SOURCE_DIR@/images"; }
9+
inline std::string data_directory() { return "@PROJECT_SOURCE_DIR@/cpp/tests/test_data"; }
1010
//! Output artefacts from tests
1111
inline std::string output_directory() { return "@PROJECT_BINARY_DIR@/outputs"; }
1212
//! Tensorflow models
13-
inline std::string models_directory() { return "@PROJECT_SOURCE_DIR@/lexci_models"; }
13+
inline std::string models_directory() { return "@PROJECT_SOURCE_DIR@/cpp/tests/test_data"; }
1414
} // namespace sopt::notinstalled
1515
#endif

lexci_models

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)