-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e47c421
commit a4f963a
Showing
13 changed files
with
137 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
###################################### | ||
# Ubuntu 22.04, 20.04 | ||
sudo apt update | ||
sudo apt install python3-venv python3-pip python3-dev python3-setuptools | ||
sudo apt install software-properties-common -y | ||
sudo add-apt-repository ppa:deadsnakes/ppa | ||
sudo apt install python3.9 -y | ||
sudo apt install msttcorefonts -qqpython3-distutils #fonts (optional) | ||
export SETUPTOOLS_USE_DISTUTILS=stdlib | ||
###################################### | ||
python3 -m venv env | ||
source env/bin/activate | ||
git clone --recurse-submodules -j8 https://github.com/simplymathematics/deckard.git | ||
# git submodule update --init --recursive # To just update the submodules | ||
python3 -m pip install deckard/adversarial-robustness-toolbox/ | ||
python3 -m pip install -e deckard/ | ||
python3 -m pip install pyinstaller | ||
python3 -m pip install -u numba pip setuptools | ||
cd deckard && pyinstaller --onefile deckard.py -n deckard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
_target_: deckard.base.data.Data | ||
generate: | ||
_target_: deckard.base.data.generator.DataGenerator | ||
name: torch_cifar10 | ||
sample: | ||
_target_: deckard.base.data.sampler.SklearnDataSampler | ||
random_state : 0 | ||
stratify: True | ||
train_size : 100 | ||
test_size : 100 | ||
sklearn_pipeline: | ||
_target_: deckard.base.data.sklearn_pipeline.SklearnDataPipeline | ||
preprocessor: | ||
name: sklearn.preprocessing.StandardScaler | ||
with_mean: True | ||
with_std: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
_target_: deckard.base.data.Data | ||
generate: | ||
_target_: deckard.base.data.generator.DataGenerator | ||
name: torch_cifar100 | ||
sample: | ||
_target_: deckard.base.data.sampler.SklearnDataSampler | ||
random_state : 0 | ||
stratify: True | ||
train_size : 100 | ||
test_size : 100 | ||
sklearn_pipeline: | ||
_target_: deckard.base.data.sklearn_pipeline.SklearnDataPipeline | ||
preprocessor: | ||
name: sklearn.preprocessing.StandardScaler | ||
with_mean: True | ||
with_std: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ optimizer: | |
lr : 0.01 | ||
momentum : 0.9 | ||
clip_values : [0, 255] | ||
device_type : ${oc.env:DECKARD_DEVICE_TYPE,cpu} |
Oops, something went wrong.