Skip to content
Snippets Groups Projects
Commit b564db01 authored by blia's avatar blia
Browse files

create bash script for reproduce figure

parents 9f2bafd0 86802244
No related branches found
No related tags found
No related merge requests found
# Default ignored files
/workspace.xml
\ No newline at end of file
<?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
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?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
<?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
<?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
......@@ -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
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment