Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arch update - 20.10 #953

Merged
merged 33 commits into from Oct 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
febbb20
docs update
Scitator Oct 6, 2020
bd4153e
brace yourself; arch update is comming
Scitator Oct 6, 2020
4c9322a
one to many
Scitator Oct 6, 2020
19f29e5
nn
Scitator Oct 6, 2020
10c33e2
imports
Scitator Oct 11, 2020
fcd3843
imports2
Scitator Oct 11, 2020
3e3910d
imports3
Scitator Oct 11, 2020
9afa217
imports4
Scitator Oct 11, 2020
4e13aae
merged with master
Scitator Oct 11, 2020
652ddd4
merged with master 2
Scitator Oct 11, 2020
701ea76
tests update
Scitator Oct 11, 2020
d83b2f1
tests update
Scitator Oct 11, 2020
c21b90c
tests update
Scitator Oct 11, 2020
a41d6da
tests update
Scitator Oct 11, 2020
3e292fe
imports update
Scitator Oct 11, 2020
4e973d5
imports update
Scitator Oct 11, 2020
b9113da
imports update
Scitator Oct 11, 2020
1ad9b97
imports update
Scitator Oct 11, 2020
c24a0ca
imports update
Scitator Oct 11, 2020
ea05043
imports update
Scitator Oct 11, 2020
a9dcd88
imports update
Scitator Oct 11, 2020
5a65ca8
docs update
Scitator Oct 11, 2020
52b5149
tests update
Scitator Oct 11, 2020
5bcd074
tests update
Scitator Oct 11, 2020
322ec43
tests update
Scitator Oct 11, 2020
d3d257c
tests update
Scitator Oct 11, 2020
6a77eac
docs update
Scitator Oct 11, 2020
c124450
Merge branch 'master' of github.com:catalyst-team/catalyst into arch/…
Scitator Oct 11, 2020
2ba7e90
backward compatibility
Scitator Oct 11, 2020
61b178c
docs updates
Scitator Oct 11, 2020
c199570
renamed callback split names
ditwoo Oct 11, 2020
2fe0b28
changelog
Scitator Oct 12, 2020
6061316
docs update
Scitator Oct 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Expand Up @@ -22,7 +22,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- `IRunner._prepare_for_stage` logic moved to `IStageBasedRunner.prepare_for_stage` ([#947](https://github.com/catalyst-team/catalyst/pull/947))
- now we create components in the following order: datasets/loaders, model, criterion, optimizer, scheduler, callbacks
- `MnistMLDataset` and `MnistQGDataset` data split logic - now targets of the datasets are disjoint ([#949](https://github.com/catalyst-team/catalyst/pull/949))
-
- architecture redesign ([#953](https://github.com/catalyst-team/catalyst/pull/953))
- experiments, runners, callbacks grouped by primitives under `catalyst.experiments`/`catalyst.runners`/`catalyst.callbacks` respectively
- settings and typing moved from `catalyst.tools.*` to `catalyst.*`
- utils moved from `catalyst.*.utils` to `catalyst.utils`

### Removed

Expand Down
18 changes: 9 additions & 9 deletions bin/tests/check_core_settings.sh
Expand Up @@ -21,7 +21,7 @@ nlp_required = false
EOT

python -c """
from catalyst.contrib.dl import callbacks
from catalyst.contrib import callbacks
from catalyst.contrib import utils

try:
Expand All @@ -45,12 +45,12 @@ EOT

# check if fail if requirements not installed
python -c """
from catalyst.tools import settings
from catalyst.settings import SETTINGS

assert settings.use_lz4 == False and settings.use_pyarrow == False
assert SETTINGS.use_lz4 == False and SETTINGS.use_pyarrow == False

try:
from catalyst.contrib.dl.callbacks import AlchemyLogger, VisdomLogger
from catalyst.contrib.callbacks import AlchemyLogger
except ImportError:
pass # Ok
else:
Expand All @@ -61,7 +61,7 @@ pip install -r requirements/requirements-contrib.txt --quiet --find-links https:
pip install -r requirements/requirements-ecosystem.txt --quiet --find-links https://download.pytorch.org/whl/cpu/torch_stable.html --upgrade-strategy only-if-needed

python -c """
from catalyst.contrib.dl.callbacks import AlchemyLogger, VisdomLogger
from catalyst.contrib.callbacks import AlchemyLogger
"""


Expand All @@ -77,13 +77,13 @@ EOT

# check if fail if requirements not installed
python -c """
from catalyst.tools import settings
from catalyst.settings import SETTINGS

assert settings.use_libjpeg_turbo == False
assert SETTINGS.use_libjpeg_turbo == False

try:
from catalyst.contrib.data import cv as cv_data
from catalyst.contrib.dl.callbacks import InferMaskCallback
from catalyst.contrib.callbacks import InferMaskCallback
from catalyst.contrib.models import cv as cv_models
from catalyst.contrib.utils import imread, imwrite
from catalyst.data.__main__ import COMMANDS
Expand All @@ -103,7 +103,7 @@ pip install -r requirements/requirements-cv.txt --quiet --find-links https://dow

python -c """
from catalyst.contrib.data import cv as cv_data
from catalyst.contrib.dl.callbacks import InferMaskCallback
from catalyst.contrib.callbacks import InferMaskCallback
from catalyst.contrib.models import cv as cv_models
from catalyst.contrib.utils import imread, imwrite
from catalyst.data.__main__ import COMMANDS
Expand Down
2 changes: 1 addition & 1 deletion bin/tests/check_core_tune.sh
Expand Up @@ -10,7 +10,7 @@ echo 'pipeline 01'
EXPDIR=./examples/cifar_stages_optuna
BASELOGDIR=./examples/logs/cifar_stages_optuna

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/tune.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config.yml \
Expand Down
4 changes: 2 additions & 2 deletions bin/tests/check_dl_core_.sh
Expand Up @@ -9,8 +9,8 @@ rm -rf ./tests/logs


################################ pipeline 01 ################################
(set -e; for f in tests/_tests_scripts/core_*.py; do PYTHONPATH=./catalyst:${PYTHONPATH} python "$f"; done)
(set -e; for f in tests/_tests_scripts/dl_*.py; do PYTHONPATH=./catalyst:${PYTHONPATH} python "$f"; done)
(set -e; for f in tests/_tests_scripts/core_*.py; do PYTHONPATH=.:${PYTHONPATH} python "$f"; done)
(set -e; for f in tests/_tests_scripts/dl_*.py; do PYTHONPATH=.:${PYTHONPATH} python "$f"; done)


################################ pipeline 99 ################################
Expand Down
60 changes: 30 additions & 30 deletions bin/tests/check_dl_core_callbacks.sh
Expand Up @@ -63,7 +63,7 @@ function check_line_counts {
LOG_MSG='pipeline 00'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config0.yml \
Expand All @@ -83,7 +83,7 @@ check_num_files ${CHECKPOINTS} 7 # 3x2 checkpoints + metrics.json

############################# CHECK QUANTIZATION FEATURE ####################################

quantization=$(python -c "from catalyst.tools.settings import IS_QUANTIZATION_AVAILABLE; print(int(IS_QUANTIZATION_AVAILABLE))")
quantization=$(python -c "from catalyst.settings import IS_QUANTIZATION_AVAILABLE; print(int(IS_QUANTIZATION_AVAILABLE))")

echo "pytorch quantization available: ${quantization}"

Expand All @@ -101,7 +101,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 01'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config1.yml \
Expand All @@ -127,7 +127,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 02'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config2.yml \
Expand Down Expand Up @@ -156,7 +156,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 03'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config3.yml \
Expand All @@ -182,7 +182,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 04'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config4.yml \
Expand Down Expand Up @@ -211,7 +211,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 05'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config5.yml \
Expand All @@ -238,7 +238,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 06'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config6.yml \
Expand All @@ -264,7 +264,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 07'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config7.yml \
Expand All @@ -290,7 +290,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 08'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config8.yml \
Expand Down Expand Up @@ -321,7 +321,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 09'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config9.yml \
Expand Down Expand Up @@ -350,7 +350,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 10'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config10.yml \
Expand Down Expand Up @@ -379,7 +379,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 11'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config11.yml \
Expand Down Expand Up @@ -410,7 +410,7 @@ LOGDIR=./tests/logs/_tests_dl_callbacks/for_resume
CHECKPOINTS=${LOGDIR}/checkpoints
LOGFILE=${CHECKPOINTS}/_metrics.json

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config0.yml \
Expand All @@ -432,7 +432,7 @@ LOGDIR=./tests/logs/_tests_dl_callbacks/resumed
CHECKPOINTS=${LOGDIR}/checkpoints
LOGFILE=${CHECKPOINTS}/_metrics.json

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config12.yml \
Expand Down Expand Up @@ -462,7 +462,7 @@ LOGDIR=./tests/logs/_tests_dl_callbacks/for_resume
CHECKPOINTS=${LOGDIR}/checkpoints
LOGFILE=${CHECKPOINTS}/_metrics.json

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config0.yml \
Expand All @@ -484,7 +484,7 @@ LOGDIR=./tests/logs/_tests_dl_callbacks/resumed
CHECKPOINTS=${LOGDIR}/checkpoints
LOGFILE=${CHECKPOINTS}/_metrics.json

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config13.yml \
Expand Down Expand Up @@ -513,7 +513,7 @@ LOGDIR=./tests/logs/_tests_dl_callbacks
CHECKPOINTS=${LOGDIR}/checkpoints
LOGFILE=${CHECKPOINTS}/_metrics.json

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config14.yml \
Expand Down Expand Up @@ -542,7 +542,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 15'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config15.yml \
Expand Down Expand Up @@ -573,7 +573,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 16'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config16.yml \
Expand Down Expand Up @@ -604,7 +604,7 @@ rm -rf ${LOGDIR} ${EXP_OUTPUT}
LOG_MSG='pipeline 17'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config17.yml \
Expand Down Expand Up @@ -636,7 +636,7 @@ LOGDIR=./tests/logs/_tests_dl_callbacks/for_resume
CHECKPOINTS=${LOGDIR}/checkpoints
LOGFILE=${CHECKPOINTS}/_metrics.json

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config0.yml \
Expand All @@ -658,7 +658,7 @@ LOGDIR=./tests/logs/_tests_dl_callbacks/other
CHECKPOINTS=${LOGDIR}/checkpoints
LOGFILE=${CHECKPOINTS}/_metrics.json

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config18.yml \
Expand Down Expand Up @@ -690,7 +690,7 @@ LOGDIR=./tests/logs/_tests_dl_callbacks/for_resume
CHECKPOINTS=${LOGDIR}/checkpoints
LOGFILE=${CHECKPOINTS}/_metrics.json

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config0.yml \
Expand All @@ -712,7 +712,7 @@ LOGDIR=./tests/logs/_tests_dl_callbacks/other
CHECKPOINTS=${LOGDIR}/checkpoints
LOGFILE=${CHECKPOINTS}/_metrics.json

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config19.yml \
Expand Down Expand Up @@ -748,7 +748,7 @@ rm -rf ./tests/logs/_tests_dl_callbacks ${EXP_OUTPUT}
#TRACE=${LOGDIR}/trace
#LOGFILE=${CHECKPOINTS}/_metrics.json
#
#PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
#PYTHONPATH=./examples:.:${PYTHONPATH} \
# python catalyst/dl/scripts/run.py \
# --expdir=${EXPDIR} \
# --config=${EXPDIR}/config20.yml \
Expand Down Expand Up @@ -778,7 +778,7 @@ EXPDIR=./tests/_tests_ml_cmcscore
LOGDIR=./tests/logs/_tests_ml_cmcscore
LOGFILE=${LOGDIR}/checkpoints/_metrics.json

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config1.yml \
Expand Down Expand Up @@ -814,15 +814,15 @@ LOGFILE=${CHECKPOINTS}/_metrics.json
EXP_OUTPUT=./tests/output.txt


PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--stages/stage1/stage_params/num_epochs='2:int' \
--stages/stage1/callbacks_params/fast_run/num_epoch_steps='2:int' \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config0.yml \
--logdir=${LOGDIR}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config0.yml \
Expand All @@ -839,7 +839,7 @@ rm -rf ./tests/logs/_tests_dl_callbacks ${EXP_OUTPUT}
LOG_MSG='pipeline 23'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--stages/stage1/stage_params/num_epochs='2:int' \
--stages/stage1/callbacks_params/optimizer/use_fast_zero_grad='1:bool' \
Expand Down
2 changes: 1 addition & 1 deletion bin/tests/check_dl_core_overfit_callback.sh
Expand Up @@ -63,7 +63,7 @@ function check_line_counts {
LOG_MSG='pipeline 01'
echo ${LOG_MSG}

PYTHONPATH=./examples:./catalyst:${PYTHONPATH} \
PYTHONPATH=./examples:.:${PYTHONPATH} \
python catalyst/dl/scripts/run.py \
--expdir=${EXPDIR} \
--config=${EXPDIR}/config30.yml \
Expand Down