Nic Eggert
0489e31b02
Fix CometML tests ( #585 )
...
* monkeypatch atexit.register to fix problem with cometml logging
* Use experiment id for version in cometml
2019-12-07 00:24:59 -05:00
Jirka Borovec
c374c4fb80
extend documentation ( #569 )
...
* extend documentation
* update index
* fix list
2019-12-07 00:23:48 -05:00
Jirka Borovec
ed97231e09
update GitHub templates ( #601 )
2019-12-07 00:23:01 -05:00
Jirka Borovec
6666ca5af3
add slack badge ( #583 )
...
* add slack badge
* Update README.md
2019-12-04 19:21:52 -05:00
Jirka Borovec
1d4b6be17b
rename trainer modules, drop _mixin ( #571 )
...
* rename trainer modules, drop _mixin
* fix imports
2019-12-04 11:39:14 -05:00
Jirka Borovec
e0dbc8ab46
Abstract Mixin classes ( #572 )
...
* make partial Trainer classes as abstract
* add empty attributes/methods
* flake8
* fix mixin order
* update abstact
* reorder
2019-12-04 10:57:32 -05:00
William Falcon
6ba30a113d
fixed gan template ( #528 )
...
* fixed gan template
* Update gan.py
2019-12-04 08:28:46 -05:00
Adrian Wälchli
218f0a5b4a
inspect training_step for opt_idx ( #573 )
2019-12-04 07:32:47 -05:00
Ir1dXD
c316173e89
use print for INFO and lower levels summarize() ( #580 )
...
* use print for INFO and lower levels summarize()
* use logging.INFO instead of magic number
* bring logging.info back for other cases
* move logging config to __init__.py
* prepend the model summary with a newline
2019-12-04 07:05:34 -05:00
Ir1dXD
d4571d1d6f
filter param with no grad ( #579 )
2019-12-04 07:04:58 -05:00
Dang Nguyen Anh Khoa
b5b77e44b1
fix logging error ( #575 )
...
* fix logging error
* no need for the '+' sign
* move space to beginning of next line
2019-12-04 07:04:14 -05:00
Jirka Borovec
ab4fea0b55
fix defecation warnings ( #570 )
...
* fix defecation warnings
* flake8
* update deprecations
2019-12-04 06:59:19 -05:00
Jirka Borovec
3a58937d8b
rename variables nb -> num ( #567 )
...
* rename nb -> num
* flake8
* batch_nb, epoch_nb, gpu_nb, split_nb
* add _num deprecations
2019-12-04 06:57:10 -05:00
Jirka Borovec
63717e8fda
prune tests ( #564 )
...
* format docstring in tests
* prune unused vars
* optimize imports
* drop duplicated var
2019-12-04 06:48:53 -05:00
Nic Eggert
62f6f92fdf
Use pytest tmpdir fixture ( #482 )
...
* Use pytest tmpdir
* Switch to tmpdir fixtures
* Switch to tmpdir fixture
* tmpdir fixture
* Fix more conflicts
2019-12-03 08:01:04 -05:00
Mary Trofimova
a6d64ac013
Support torch.optim.lr_scheduler.ReduceLROnPlateau ( #320 )
...
* feat: add reducelronplateau callback
* feat: use reducelronplateau callback in trainer
* feat: only on unsupported lr schedulers
* feat: last but not the least merge of master
* feat: merge master
* feat: support only on scheduler in reduceLrOnPlateauScheduler
* refactor: code style
* Update pt_callbacks.py
* Update trainer.py
* Update train_loop_mixin.py
* Update trainer.py
* Update train_loop_mixin.py
2019-12-03 07:59:41 -05:00
Jirka Borovec
89ececb32b
fix for pyTorch 1.1 ( #552 )
...
* min pyTorch 1.1
* try fixed test-tube
* try fixed test-tube
* try fixed test-tube
* cleaning
* Update requirements.txt
2019-12-01 03:42:33 -05:00
Yongrae Jo
2b8475f590
Add resuming from specific checkpoint ( #516 )
...
* Add resume_from_checkpoint
* Fix variable name
* #515 Remove did_restore
* #515 Simplify code
* #515 Update doc for resume_from_checkpoint
* #515 Add on_gpu
2019-11-30 16:48:38 -05:00
Pariente Manuel
df7b6d958e
Correct behavior for argument gpus in Trainer ( #561 )
2019-11-30 14:50:50 -05:00
williamFalcon
db0587f158
fixed tests
2019-11-28 16:02:36 -08:00
williamFalcon
6629897d45
Merge branch 'master' of https://github.com/williamFalcon/pytorch-lightning
2019-11-28 16:00:45 -08:00
William Falcon
29122e4308
Dp default ( #560 )
...
* set auto dp if no backend
* fix imagenet example
* run flake8 first to fail build on syntax first
2019-11-28 18:14:08 -05:00
Jirka Borovec
d71556e7a1
Sphinx generated documentation ( #521 )
...
* upgrade req.
* move MkDocs
* create Sphinx
* init Sphinx
* move md from MkDocs to Sphinx
* CI: build docs
* build Sphinx
formatting
move docs from MD to docstring in particular package/modules
formatting
add Sphinx ext.
rename root_module to core
drop implicit name "_logger"
drop duplicate name "overwrite"
fix imports
use pytorch theme
add sample link mapping
try fix RTD build
use forked template
fix some docs warnings
fix paths
add deprecation warnings
fix flake8
fix paths
revert refactor
revert MLFlowLogger
* revert example import
* update link
* Update lightning_module_template.py
2019-11-28 12:48:55 -05:00
Jirka Borovec and Ir1dXD
47659daa5f
speed-up testing ( #504 )
...
* extend CI timeout
* add short MNIST
* lower dataset and stop thr
* refactor imports
* formatting
* early stop
* play params
* play params
* minor refactoring
# Conflicts:
# pytorch_lightning/testing/__init__.py
# pytorch_lightning/testing/lm_test_module.py
# pytorch_lightning/testing/lm_test_module_base.py
# pytorch_lightning/testing/lm_test_module_mixins.py
# pytorch_lightning/testing/model.py
# pytorch_lightning/testing/model_base.py
# pytorch_lightning/testing/model_mixins.py
# pytorch_lightning/testing/test_module.py
# pytorch_lightning/testing/test_module_base.py
# pytorch_lightning/testing/test_module_mixins.py
* typo
Co-Authored-By: Ir1dXD <sirius.caffrey@gmail.com >
* Revert "refactor imports"
This reverts commit b86aee92
* update imports
2019-11-28 12:06:05 -05:00
Jirka Borovec
9785a3e78e
Refactor: name modules ( #548 )
...
* refactor: rename some modules
* add deprecation warnings
* fix paths
2019-11-26 22:39:18 -05:00
Anton Bakhtin
fea7cc87f6
Move model to cuda before creating optimizer ( #554 )
2019-11-26 22:35:38 -05:00
Jirka Borovec
f2191b0cdf
fix for pyTorch 1.2 ( #549 )
...
* min pytorch 1.2
* fix IterableDataset
* upgrade torchvision
* fix msg
2019-11-26 10:58:50 -05:00
MikeScarp
55f3ffd7c7
fixing bug in testing for IterableDataset ( #547 )
2019-11-26 04:59:20 -05:00
Jirka Borovec
462788738b
CI buils with minimal and latest requirements ( #500 )
...
* install nim req.
* update requirements
* drop Cython
2019-11-25 06:39:19 -05:00
William Falcon
bdebe18df6
Update README.md
2019-11-23 11:12:45 -05:00
Tullie Murrell
48b797fdb0
Copy batch for local forward ( #532 )
2019-11-23 04:04:40 -05:00
Tullie Murrell
55edf7c922
Remove unneeded filename print ( #540 )
2019-11-23 04:00:39 -05:00
Tanel Alumäe
539d7bcb44
Avoid race condition in creating checkpoint directories ( #530 )
...
* Avoid race condition in creating checkpoint directories
In multi-GPU training, several processes run the code that creates checkpoint dirs. This fix avoids a probably rare situation (but it happened to me) where another process created a dir between the `exists` check and the `makedirs` call.
* Remove the now unneeded check for dir existence
2019-11-21 13:27:39 -05:00
Tullie Murrell
c1ecca418e
Write progress bar to stdout ( #531 )
...
* Default write progress bar to stdout
* Change validation progress too
2019-11-21 13:26:24 -05:00
Ir1dXD
7324dd902b
change Checkpoint callback's save_best_only to save_top_k ( #128 )
...
* docs: enable syntax highlight
* feat: change Checkpoint callback's `save_best_only` to `save_top_k`
fix #70
* docs: update docs for save_top_k
* revert other files
* style: lint for travis-ci
* fix typo
* make flake8 happy
* update according to review
* add tests
* rename func to private
* add doc on `save_top_k == 0`
* make flake8 happy
* update according to PR comments
* change some f-strings
* Update pt_callbacks.py
* Update test_models.py
* update options
* create folders
* Update test_models.py
* change epoch num
* support calling multiple times, add docs and tests
* update docs
* roll back changes in earlystopping
* clean test files
* make flake8 happy
* fix epoch number
* update tests about epoch numbers
* clean debugging code
* fix testing utils codes
* fix testing utils codes
* fix testing utils codes
* fix testing utils codes
* change save_dir to tests/tests according to previous lines
* remove unused overwrite option
* make flake8 happy
* change var name as per review
* make flake8 happy
* update property name to work on master
* elaborate in the docs
* update docs as per review
* revert previous commit
accidentally pressed wrong button when solving conflicts
2019-11-19 15:43:34 -08:00
Jeffrey Ling
619143a734
Fix incorrect handling of on_batch_end edge cases in run_training_batch ( #509 )
...
* Fix returning only 2 values on an early exit.
This fixes a bug
`ValueError: not enough values to unpack (expected 3, got 2)`
* Update train_loop_mixin.py
* Change to return dict
The return value was actually a dict even though that variable is initialized as a list.
2019-11-19 15:38:54 -08:00
William Falcon
277fd2f74a
Update README.md
2019-11-19 11:13:59 -08:00
William Falcon
d120c1edd8
Update README.md
2019-11-16 11:24:16 -05:00
William Falcon
c3d8b20290
Update README.md
2019-11-16 11:22:51 -05:00
Jirka Borovec
cd149a431a
fix failing on pip ( #503 )
2019-11-14 12:06:46 -05:00
Jeffrey Ling
1af85f3038
Update methods.md ( #507 )
2019-11-14 12:06:23 -05:00
Chenghao MOU
89f7a82157
Escape percentage symbol in argparse ( #499 )
2019-11-13 06:03:38 -05:00
Jirka Borovec
7aaaefc4d9
Add circle CI for building PyTorch 1.1/1.2/1.3 ( #502 )
...
* add CircleCI config
* fix CircleCI
* fix CircleCI
2019-11-13 06:03:13 -05:00
rwesterman
d1b6b011c3
Comet fix ( #481 )
...
* Fixing comet ml bug and adding functionality
* Updating documents
* Fixing code style issues in comet_logger
* Changing comet_logger experiment to execute lazily
* Adding tests for comet_logger and addressing comments from @Borda
* Setting step_num to optional keyword argument in log_metrics() to comply to other loggers
* Adding offline logging mode for comet_ml, updating tests and docs
* Switching to MisconfigurationException
2019-11-11 23:00:31 -05:00
Ryan Wong
ba0a32c2ae
fixed issue where callback_metrics was replaced instead of updated ( #492 )
2019-11-11 22:58:32 -05:00
William Falcon
e350a7db07
Enable apex O2 + dp ( #493 )
...
* remove O2 crash
* remove O2 crash
* bananas
2019-11-11 22:58:11 -05:00
William Falcon
8ea74733c1
bananas ( #494 )
2019-11-11 22:58:03 -05:00
William Falcon
8f966797b7
release v0.5.3.2
0.5.3.2
2019-11-09 10:51:33 -05:00
William Falcon
c10ca47ab8
fix imagenet example
2019-11-09 07:15:07 -05:00
Jason Phang
d56750899f
ImageNet Example ( #476 )
...
* ImageNet example
* cleanup
* cleanup
* Minor changes from feedback
* More cleanup
2019-11-09 01:02:21 -05:00