diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 5c98b428844d9f7d529e2b6fb918d15bf072f3df..0000000000000000000000000000000000000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Default ignored files -/workspace.xml \ No newline at end of file diff --git a/.idea/Region_Active_Learning.iml b/.idea/Region_Active_Learning.iml deleted file mode 100644 index 8a05c6ed5f0c89c2998d9aee8978f53136f7649a..0000000000000000000000000000000000000000 --- a/.idea/Region_Active_Learning.iml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<module type="PYTHON_MODULE" version="4"> - <component name="NewModuleRootManager"> - <content url="file://$MODULE_DIR$" /> - <orderEntry type="inheritedJdk" /> - <orderEntry type="sourceFolder" forTests="false" /> - </component> - <component name="PyDocumentationSettings"> - <option name="format" value="GOOGLE" /> - <option name="myDocStringFormat" value="Google" /> - </component> -</module> \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2da2d6447d11dfe32bfb846c3d5b199fc99..0000000000000000000000000000000000000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ -<component name="InspectionProjectProfileManager"> - <settings> - <option name="USE_PROJECT_PROFILE" value="false" /> - <version value="1.0" /> - </settings> -</component> \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index d1e22ecb89619a9c2dcf51a28d891a196d2462a0..0000000000000000000000000000000000000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project version="4"> - <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" /> -</project> \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index d3d102fea877018a860e8cf0eddd1e08d700c629..0000000000000000000000000000000000000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project version="4"> - <component name="ProjectModuleManager"> - <modules> - <module fileurl="file://$PROJECT_DIR$/.idea/Region_Active_Learning.iml" filepath="$PROJECT_DIR$/.idea/Region_Active_Learning.iml" /> - </modules> - </component> -</project> \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7f4cb416c083d265558da75d457237d671..0000000000000000000000000000000000000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<project version="4"> - <component name="VcsDirectoryMappings"> - <mapping directory="$PROJECT_DIR$" vcs="Git" /> - </component> -</project> \ No newline at end of file diff --git a/README.md b/README.md index f9bab58e63fc95888055827acb4547cc8ad93b2b..c358a35fb53f314e573aba64ce4a1028212ae5c5 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ In order to evaluate the model at each acquisition step, run ``` python python3 -c 'import Test as te;te.running_test_for_single_acquisition_step(model_dir)' Args: - model_dir: the directory that saves the model ckpt + model_dir: the directory that saves the model ckpt ``` #### Train the model @@ -43,21 +43,32 @@ Args: ```python python3 -c 'import Train_Active_Full_Im as tafi;tafi.running_loop_active_learning_full_image(stage)' Args: - stage: int, 0:random, 1:VarRatio, 2:Entropy, 3:BALD + stage: int, 0:random, 1:VarRatio, 2:Entropy, 3:BALD ``` - For region based active learning, run - ```python - python3 -c 'import Train_Active_Region_Im as tari;tari.running_loop_active_learning_region(stage)' - Args: - stage: int, 0:random, 1:VarRatio, 2:Entropy, 3:BALD - ``` + + ```python + python3 -c 'import Train_Active_Region_Im as tari;tari.running_loop_active_learning_region(stage)' + Args: + stage: int, 0:random, 1:VarRatio, 2:Entropy, 3:BALD + ``` #### Reproduce figures In order to reproduce the figures in the paper, run ```bash +<<<<<<< HEAD ./produce_figure.sh +======= +# Download the statistics +cd Exp_Stat +wget https: +tar -xzvf calibration_score.tar.gz +cd .. +cd eval_calibration +python3 visualize_calibration_score.py --save True +>>>>>>> 86802244ca958cf2c36e6ac8940fac4b6c09d8f4 ```