add something

This commit is contained in:
freeneuro 2022-04-20 15:33:12 +08:00
parent 487c78ffe8
commit 1e268451fc
12516 changed files with 12715 additions and 25 deletions

8
.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.6 (ml)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PyDocumentationSettings">
<option name="format" value="GOOGLE" />
<option name="myDocStringFormat" value="Google" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="pytest" />
</component>
</module>

35
.idea/deployment.xml Normal file
View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false">
<serverData>
<paths name="idrl@192.168.2.164:22">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
<paths name="root@192.168.2.1:36417">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
<paths name="root@192.168.8.110:28888">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
<paths name="root@192.168.8.110:28888 password">
<serverdata>
<mappings>
<mapping local="$PROJECT_DIR$" web="/" />
</mappings>
</serverdata>
</paths>
</serverData>
</component>
</project>

View File

@ -0,0 +1,120 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<Languages>
<language minSize="56" name="Python" />
</Languages>
</inspection_tool>
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredPackages">
<value>
<list size="100">
<item index="0" class="java.lang.String" itemvalue="scikit-image" />
<item index="1" class="java.lang.String" itemvalue="paddlepaddle" />
<item index="2" class="java.lang.String" itemvalue="gradio" />
<item index="3" class="java.lang.String" itemvalue="pillow" />
<item index="4" class="java.lang.String" itemvalue="numpy" />
<item index="5" class="java.lang.String" itemvalue="paddlehub" />
<item index="6" class="java.lang.String" itemvalue="torch" />
<item index="7" class="java.lang.String" itemvalue="typing-extensions" />
<item index="8" class="java.lang.String" itemvalue="torchvision" />
<item index="9" class="java.lang.String" itemvalue="dicom-factory" />
<item index="10" class="java.lang.String" itemvalue="ttach" />
<item index="11" class="java.lang.String" itemvalue="tensorboard" />
<item index="12" class="java.lang.String" itemvalue="tqdm" />
<item index="13" class="java.lang.String" itemvalue="cupy-cuda100" />
<item index="14" class="java.lang.String" itemvalue="matplotlib" />
<item index="15" class="java.lang.String" itemvalue="tensorboardX" />
<item index="16" class="java.lang.String" itemvalue="keras" />
<item index="17" class="java.lang.String" itemvalue="tensorflow-gpu" />
<item index="18" class="java.lang.String" itemvalue="scikit_image" />
<item index="19" class="java.lang.String" itemvalue="skimage" />
<item index="20" class="java.lang.String" itemvalue="Pillow" />
<item index="21" class="java.lang.String" itemvalue="pprint" />
<item index="22" class="java.lang.String" itemvalue="fire" />
<item index="23" class="java.lang.String" itemvalue="tnt" />
<item index="24" class="java.lang.String" itemvalue="scipy" />
<item index="25" class="java.lang.String" itemvalue="h5py" />
<item index="26" class="java.lang.String" itemvalue="opencv_python" />
<item index="27" class="java.lang.String" itemvalue="absl-py" />
<item index="28" class="java.lang.String" itemvalue="protobuf" />
<item index="29" class="java.lang.String" itemvalue="tensorflow-estimator" />
<item index="30" class="java.lang.String" itemvalue="googleapis-common-protos" />
<item index="31" class="java.lang.String" itemvalue="testpath" />
<item index="32" class="java.lang.String" itemvalue="python-dateutil" />
<item index="33" class="java.lang.String" itemvalue="defusedxml" />
<item index="34" class="java.lang.String" itemvalue="py" />
<item index="35" class="java.lang.String" itemvalue="gast" />
<item index="36" class="java.lang.String" itemvalue="MarkupSafe" />
<item index="37" class="java.lang.String" itemvalue="Pygments" />
<item index="38" class="java.lang.String" itemvalue="pyzmq" />
<item index="39" class="java.lang.String" itemvalue="bleach" />
<item index="40" class="java.lang.String" itemvalue="certifi" />
<item index="41" class="java.lang.String" itemvalue="oauthlib" />
<item index="42" class="java.lang.String" itemvalue="astunparse" />
<item index="43" class="java.lang.String" itemvalue="Markdown" />
<item index="44" class="java.lang.String" itemvalue="jsonschema" />
<item index="45" class="java.lang.String" itemvalue="google-api-core" />
<item index="46" class="java.lang.String" itemvalue="notebook" />
<item index="47" class="java.lang.String" itemvalue="terminado" />
<item index="48" class="java.lang.String" itemvalue="Werkzeug" />
<item index="49" class="java.lang.String" itemvalue="iniconfig" />
<item index="50" class="java.lang.String" itemvalue="wrapt" />
<item index="51" class="java.lang.String" itemvalue="kiwisolver" />
<item index="52" class="java.lang.String" itemvalue="jupyter-client" />
<item index="53" class="java.lang.String" itemvalue="pexpect" />
<item index="54" class="java.lang.String" itemvalue="ipykernel" />
<item index="55" class="java.lang.String" itemvalue="nbconvert" />
<item index="56" class="java.lang.String" itemvalue="attrs" />
<item index="57" class="java.lang.String" itemvalue="jedi" />
<item index="58" class="java.lang.String" itemvalue="install" />
<item index="59" class="java.lang.String" itemvalue="idna" />
<item index="60" class="java.lang.String" itemvalue="rsa" />
<item index="61" class="java.lang.String" itemvalue="jupyter-core" />
<item index="62" class="java.lang.String" itemvalue="networkx" />
<item index="63" class="java.lang.String" itemvalue="ptyprocess" />
<item index="64" class="java.lang.String" itemvalue="json5" />
<item index="65" class="java.lang.String" itemvalue="google-cloud-vision" />
<item index="66" class="java.lang.String" itemvalue="more-itertools" />
<item index="67" class="java.lang.String" itemvalue="pluggy" />
<item index="68" class="java.lang.String" itemvalue="pandocfilters" />
<item index="69" class="java.lang.String" itemvalue="requests" />
<item index="70" class="java.lang.String" itemvalue="importlib-metadata" />
<item index="71" class="java.lang.String" itemvalue="Jinja2" />
<item index="72" class="java.lang.String" itemvalue="pyrsistent" />
<item index="73" class="java.lang.String" itemvalue="seaborn" />
<item index="74" class="java.lang.String" itemvalue="tensorboard-plugin-wit" />
<item index="75" class="java.lang.String" itemvalue="zipp" />
<item index="76" class="java.lang.String" itemvalue="prompt-toolkit" />
<item index="77" class="java.lang.String" itemvalue="urllib3" />
<item index="78" class="java.lang.String" itemvalue="jupyterlab" />
<item index="79" class="java.lang.String" itemvalue="ipywidgets" />
<item index="80" class="java.lang.String" itemvalue="six" />
<item index="81" class="java.lang.String" itemvalue="tornado" />
<item index="82" class="java.lang.String" itemvalue="google-auth-oauthlib" />
<item index="83" class="java.lang.String" itemvalue="opencv-python" />
<item index="84" class="java.lang.String" itemvalue="parso" />
<item index="85" class="java.lang.String" itemvalue="pytest" />
<item index="86" class="java.lang.String" itemvalue="jupyterlab-server" />
<item index="87" class="java.lang.String" itemvalue="nbformat" />
<item index="88" class="java.lang.String" itemvalue="Send2Trash" />
<item index="89" class="java.lang.String" itemvalue="packaging" />
<item index="90" class="java.lang.String" itemvalue="toml" />
<item index="91" class="java.lang.String" itemvalue="prometheus-client" />
<item index="92" class="java.lang.String" itemvalue="chardet" />
<item index="93" class="java.lang.String" itemvalue="pandas" />
<item index="94" class="java.lang.String" itemvalue="cachetools" />
<item index="95" class="java.lang.String" itemvalue="grpcio" />
<item index="96" class="java.lang.String" itemvalue="pytz" />
<item index="97" class="java.lang.String" itemvalue="google-auth" />
<item index="98" class="java.lang.String" itemvalue="json" />
<item index="99" class="java.lang.String" itemvalue="multiprocessing" />
</list>
</value>
</option>
</inspection_tool>
<inspection_tool class="PyTypeCheckerInspection" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="PyUnboundLocalVariableInspection" enabled="false" level="WARNING" enabled_by_default="false" />
</profile>
</component>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.6 (ml)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Full-coverage-camouflage-adversarial-attack.iml" filepath="$PROJECT_DIR$/.idea/Full-coverage-camouflage-adversarial-attack.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

View File

@ -8,5 +8,4 @@
+ test_label_new folder as the same to train_label_new folder
## Note that
1. After you download the dataset and place them into each folder, you should create a yaml in data folder, see data/carala.yaml for example.
2. To run compute the adversarial loss, you need to get the label(annotation) for each image. In our implementation, for simplicity, we used the Faster RCNN to inference each rendered image(due to the character of rendered image, we can get relatively accuracy label) and get the corresponding label.
3. We provide the used train_label in [https://pan.baidu.com/s/18ZcQQgsr1DFbyUK4YVQ8WQ](https://pan.baidu.com/s/18ZcQQgsr1DFbyUK4YVQ8WQ) with the fetech code `idrl`
2. To run compute the adversarial loss, you need to get the label(annotation) for each image. In our implementation, for simplicity, we used the Faster RCNN to inference each rendered image(due to the character of rendered image, we can get relatively accuracy label) and get the corresponding label.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1 @@
2 0.49873 0.49873 0.489648 0.210352

View File

@ -0,0 +1 @@
2 0.572168 0.572168 0.247656 0.402539

View File

@ -0,0 +1 @@
2 0.498828 0.498828 0.489062 0.210938

View File

@ -0,0 +1 @@
2 0.510059 0.510059 0.211719 0.486133

View File

@ -0,0 +1 @@
2 0.510156 0.510156 0.210156 0.482031

View File

@ -0,0 +1 @@
2 0.567578 0.567578 0.29375 0.351562

View File

@ -0,0 +1 @@
2 0.519141 0.519141 0.518164 0.221875

View File

@ -0,0 +1 @@
2 0.569141 0.569141 0.278906 0.3

View File

@ -0,0 +1 @@
2 0.519141 0.519141 0.519336 0.223438

View File

@ -0,0 +1 @@
2 0.552344 0.552344 0.442773 0.311719

View File

@ -0,0 +1 @@
2 0.551953 0.551953 0.448242 0.277344

View File

@ -0,0 +1 @@
2 0.552734 0.552734 0.445508 0.278125

View File

@ -0,0 +1 @@
2 0.551953 0.551953 0.444336 0.311719

View File

@ -0,0 +1 @@
2 0.56416 0.56416 0.254687 0.44668

View File

@ -0,0 +1 @@
2 0.567578 0.567578 0.29375 0.351562

View File

@ -0,0 +1 @@
2 0.516016 0.516016 0.512305 0.228125

View File

@ -0,0 +1 @@
2 0.574707 0.574707 0.246875 0.411523

View File

@ -0,0 +1 @@
2 0.516406 0.516406 0.510156 0.228906

View File

@ -0,0 +1 @@
2 0.551562 0.551562 0.430664 0.395312

View File

@ -0,0 +1 @@
2 0.558203 0.558203 0.438281 0.352344

View File

@ -0,0 +1 @@
2 0.559375 0.559375 0.4375 0.353125

View File

@ -0,0 +1 @@
2 0.551953 0.551953 0.433594 0.39375

View File

@ -0,0 +1 @@
2 0.536719 0.536719 0.228125 0.478906

View File

@ -0,0 +1 @@
2 0.509375 0.509375 0.498633 0.20625

View File

@ -0,0 +1 @@
2 0.54375 0.54375 0.217969 0.465625

View File

@ -0,0 +1 @@
2 0.519531 0.519531 0.518555 0.221875

View File

@ -0,0 +1 @@
2 0.507812 0.507812 0.499805 0.208594

View File

@ -0,0 +1 @@
2 0.528027 0.528027 0.422461 0.41582

View File

@ -0,0 +1 @@
2 0.533203 0.533203 0.429492 0.396094

View File

@ -0,0 +1 @@
2 0.533301 0.533301 0.428906 0.400586

View File

@ -0,0 +1 @@
2 0.527734 0.527734 0.422656 0.414844

View File

@ -0,0 +1 @@
2 0.501953 0.501953 0.101562 0.244531

View File

@ -0,0 +1 @@
2 0.514844 0.514844 0.115625 0.153125

View File

@ -0,0 +1 @@
2 0.506641 0.506641 0.249805 0.108594

View File

@ -0,0 +1 @@
2 0.519922 0.519922 0.113281 0.125781

View File

@ -0,0 +1 @@
2 0.507422 0.507422 0.249219 0.108594

View File

@ -0,0 +1 @@
2 0.56875 0.56875 0.278125 0.3

View File

@ -0,0 +1 @@
2 0.514453 0.514453 0.214844 0.142188

View File

@ -0,0 +1 @@
2 0.51875 0.51875 0.217969 0.125781

View File

@ -0,0 +1 @@
2 0.51875 0.51875 0.217187 0.126563

View File

@ -0,0 +1 @@
2 0.513672 0.513672 0.214062 0.141406

View File

@ -0,0 +1 @@
2 0.51875 0.51875 0.109375 0.209375

View File

@ -0,0 +1 @@
2 0.507422 0.507422 0.24668 0.113281

View File

@ -0,0 +1 @@
2 0.521875 0.521875 0.109375 0.190625

View File

@ -0,0 +1 @@
2 0.507812 0.507812 0.246875 0.1125

View File

@ -0,0 +1 @@
2 0.514844 0.514844 0.211719 0.189063

View File

@ -0,0 +1 @@
2 0.517969 0.517969 0.21543 0.167187

View File

@ -0,0 +1 @@
2 0.519531 0.519531 0.518945 0.223438

View File

@ -0,0 +1 @@
2 0.518359 0.518359 0.214258 0.16875

View File

@ -0,0 +1 @@
2 0.515234 0.515234 0.213086 0.1875

View File

@ -0,0 +1 @@
2 0.511719 0.511719 0.103906 0.235938

View File

@ -0,0 +1 @@
2 0.505469 0.505469 0.242969 0.10625

View File

@ -0,0 +1 @@
2 0.512891 0.512891 0.102344 0.232031

View File

@ -0,0 +1 @@
2 0.504687 0.504687 0.24375 0.107031

View File

@ -0,0 +1 @@
2 0.510156 0.510156 0.210938 0.208594

View File

@ -0,0 +1 @@
2 0.510938 0.510938 0.213281 0.2

View File

@ -0,0 +1 @@
2 0.510938 0.510938 0.211719 0.200781

View File

@ -0,0 +1 @@
2 0.510156 0.510156 0.212305 0.208594

View File

@ -0,0 +1 @@
2 0.552734 0.552734 0.441406 0.313281

View File

@ -0,0 +1 @@
2 0.500391 0.500391 0.06875 0.164062

View File

@ -0,0 +1 @@
2 0.50625 0.50625 0.074219 0.098438

View File

@ -0,0 +1 @@
2 0.504297 0.504297 0.165625 0.070312

View File

@ -0,0 +1 @@
2 0.510156 0.510156 0.072656 0.08125

View File

@ -0,0 +1 @@
2 0.503906 0.503906 0.165625 0.070312

View File

@ -0,0 +1 @@
2 0.506641 0.506641 0.141406 0.092969

View File

@ -0,0 +1 @@
2 0.510938 0.510938 0.142969 0.082031

View File

@ -0,0 +1 @@
2 0.510547 0.510547 0.142969 0.080469

View File

@ -0,0 +1 @@
2 0.507031 0.507031 0.142188 0.092969

View File

@ -0,0 +1 @@
2 0.509375 0.509375 0.071094 0.139062

View File

@ -0,0 +1 @@
2 0.551953 0.551953 0.449219 0.277344

View File

@ -0,0 +1 @@
2 0.505469 0.505469 0.164062 0.075781

View File

@ -0,0 +1 @@
2 0.510156 0.510156 0.070312 0.122656

View File

@ -0,0 +1 @@
2 0.505469 0.505469 0.164844 0.075

View File

@ -0,0 +1 @@
2 0.508203 0.508203 0.141406 0.122656

View File

@ -0,0 +1 @@
2 0.509766 0.509766 0.142969 0.111719

View File

@ -0,0 +1 @@
2 0.510156 0.510156 0.141406 0.1125

View File

@ -0,0 +1 @@
2 0.508203 0.508203 0.139844 0.123438

View File

@ -0,0 +1 @@
2 0.507031 0.507031 0.070312 0.159375

View File

@ -0,0 +1 @@
2 0.503125 0.503125 0.163281 0.071875

View File

@ -0,0 +1 @@
2 0.507031 0.507031 0.06875 0.15625

View File

@ -0,0 +1 @@
2 0.553125 0.553125 0.445312 0.278125

View File

@ -0,0 +1 @@
2 0.503125 0.503125 0.161719 0.071094

View File

@ -0,0 +1 @@
2 0.50625 0.50625 0.139844 0.141406

View File

@ -0,0 +1 @@
2 0.505859 0.505859 0.141406 0.135156

View File

@ -0,0 +1 @@
2 0.50625 0.50625 0.139844 0.135937

View File

@ -0,0 +1 @@
2 0.505469 0.505469 0.140625 0.139844

Some files were not shown because too many files have changed in this diff Show More