Commit 2b3d8609 authored by Davis King's avatar Davis King

These examples compile now in visual studio due to the recent pragma directive added to core.h.

parent c409c363
...@@ -125,6 +125,8 @@ if (NOT USING_OLD_VISUAL_STUDIO_COMPILER) ...@@ -125,6 +125,8 @@ if (NOT USING_OLD_VISUAL_STUDIO_COMPILER)
add_gui_example(dnn_mmod_find_cars2_ex) add_gui_example(dnn_mmod_find_cars2_ex)
add_example(dnn_mmod_train_find_cars_ex) add_example(dnn_mmod_train_find_cars_ex)
add_gui_example(dnn_semantic_segmentation_ex) add_gui_example(dnn_semantic_segmentation_ex)
add_example(dnn_imagenet_train_ex)
add_example(dnn_metric_learning_on_images_ex)
if (NOT MSVC) if (NOT MSVC)
# Don't try to compile these programs using Visual Studio since it causes the # Don't try to compile these programs using Visual Studio since it causes the
# compiler to run out of RAM and to crash. Maybe someday Visual Studio # compiler to run out of RAM and to crash. Maybe someday Visual Studio
...@@ -133,12 +135,9 @@ if (NOT USING_OLD_VISUAL_STUDIO_COMPILER) ...@@ -133,12 +135,9 @@ if (NOT USING_OLD_VISUAL_STUDIO_COMPILER)
# run out of memory, running a 64-bit MSBuild.exe on the Command Prompt # run out of memory, running a 64-bit MSBuild.exe on the Command Prompt
# seems to work fine. So you can try something like this: # seems to work fine. So you can try something like this:
# "C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" C:\path\to\examples.sln /p:Configuration=Release /p:Platform=x64 /t:dnn_imagenet_train_ex # "C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe" C:\path\to\examples.sln /p:Configuration=Release /p:Platform=x64 /t:dnn_imagenet_train_ex
# It does take quite a while to build these examples, though!
# Note that you may additionally need to set Debug Information Format to # Note that you may additionally need to set Debug Information Format to
# C7 compatible (/Z7), in case you get compiler error "cannot update # C7 compatible (/Z7), in case you get compiler error "cannot update
# program database".) # program database".)
add_example(dnn_imagenet_train_ex)
add_example(dnn_metric_learning_on_images_ex)
add_example(dnn_semantic_segmentation_train_ex) add_example(dnn_semantic_segmentation_train_ex)
endif() endif()
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment