Dev (#104)
* clean gitignore * update requirements.txt * add _convert_ parameter to trainer and optimizer
This commit is contained in:
1 parent
6bf0303510
commit
755cd89cf0
4 files changed
+21
-113
No files matched your search
+11
-101
@@ -1,88 +1,3 @@
|
||||
# Created by .ignore support plugin (hsz.mobi)
|
||||
### JetBrains template
|
||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
|
||||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||
|
||||
.idea/
|
||||
|
||||
# User-specific stuff
|
||||
.idea/**/workspace.xml
|
||||
.idea/**/tasks.xml
|
||||
.idea/**/usage.statistics.xml
|
||||
.idea/**/dictionaries
|
||||
.idea/**/shelf
|
||||
|
||||
# Generated files
|
||||
.idea/**/contentModel.xml
|
||||
|
||||
# Sensitive or high-churn files
|
||||
.idea/**/dataSources/
|
||||
.idea/**/dataSources.ids
|
||||
.idea/**/dataSources.local.xml
|
||||
.idea/**/sqlDataSources.xml
|
||||
.idea/**/dynamic.xml
|
||||
.idea/**/uiDesigner.xml
|
||||
.idea/**/dbnavigator.xml
|
||||
|
||||
# Gradle
|
||||
.idea/**/gradle.xml
|
||||
.idea/**/libraries
|
||||
|
||||
# Gradle and Maven with auto-import
|
||||
# When using Gradle or Maven with auto-import, you should exclude module files,
|
||||
# since they will be recreated, and may cause churn. Uncomment if using
|
||||
# auto-import.
|
||||
# .idea/artifacts
|
||||
# .idea/compiler.xml
|
||||
# .idea/modules.xml
|
||||
# .idea/*.iml
|
||||
# .idea/modules
|
||||
# *.iml
|
||||
# *.ipr
|
||||
|
||||
# CMake
|
||||
cmake-build-*/
|
||||
|
||||
# Mongo Explorer plugin
|
||||
.idea/**/mongoSettings.xml
|
||||
|
||||
# File-based project format
|
||||
*.iws
|
||||
|
||||
# IntelliJ
|
||||
out/
|
||||
|
||||
# mpeltonen/sbt-idea plugin
|
||||
.idea_modules/
|
||||
|
||||
# JIRA plugin
|
||||
atlassian-ide-plugin.xml
|
||||
|
||||
# Cursive Clojure plugin
|
||||
.idea/replstate.xml
|
||||
|
||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||
com_crashlytics_export_strings.xml
|
||||
crashlytics.properties
|
||||
crashlytics-build.properties
|
||||
fabric.properties
|
||||
|
||||
# Editor-based Rest Client
|
||||
.idea/httpRequests
|
||||
|
||||
# Android studio 3.1+ serialized cache file
|
||||
.idea/caches/build_file_checksums.ser
|
||||
|
||||
### VisualStudioCode template
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
**/.vscode
|
||||
|
||||
### Python template
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
@@ -213,23 +128,18 @@ dmypy.json
|
||||
# Pyre type checker
|
||||
.pyre/
|
||||
|
||||
### JupyterNotebooks template
|
||||
# gitignore template for Jupyter Notebooks
|
||||
# website: http://jupyter.org/
|
||||
### VisualStudioCode
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
*.code-workspace
|
||||
**/.vscode
|
||||
|
||||
.ipynb_checkpoints
|
||||
*/.ipynb_checkpoints/*
|
||||
# JetBrains
|
||||
.idea/
|
||||
|
||||
# IPython
|
||||
profile_default/
|
||||
ipython_config.py
|
||||
|
||||
# Remove previous ipynb_checkpoints
|
||||
# git rm -r .ipynb_checkpoints/
|
||||
|
||||
|
||||
|
||||
# Template specific
|
||||
# Lightning-Hydra-Template
|
||||
data/
|
||||
logs/
|
||||
.env.vars
|
||||
@@ -1,8 +1,12 @@
|
||||
_target_: torch.optim.Adam
|
||||
|
||||
# these are default parameters for Adam
|
||||
lr: 0.001
|
||||
eps: 1e-08
|
||||
weight_decay: 0
|
||||
betas: [0.9, 0.999]
|
||||
|
||||
|
||||
# betas: [ 0.9, 0.999 ] # BUGGED :(
|
||||
# _convert_ is hydra syntax needed to make betas parameter work, learn more here:
|
||||
# https://hydra.cc/docs/next/advanced/instantiate_objects/overview/#parameter-conversion-strategies
|
||||
_convert_: "partial"
|
||||
+4
-10
@@ -2,11 +2,11 @@
|
||||
torch>=1.7.1
|
||||
torchvision>=0.8.2
|
||||
torchaudio>=0.7.2
|
||||
pytorch-lightning>=1.2.2
|
||||
pytorch-lightning>=1.2.4
|
||||
torchmetrics
|
||||
|
||||
# --------- hydra --------- #
|
||||
hydra-core==1.1.0.dev3
|
||||
hydra-core==1.1.0.dev4
|
||||
hydra_colorlog>=1.0.0
|
||||
hydra-optuna-sweeper>=0.9.0rc2
|
||||
# hydra-ray-launcher>=0.1.2
|
||||
@@ -18,15 +18,9 @@ wandb>=0.10.20
|
||||
# mlflow
|
||||
# tensorboard
|
||||
|
||||
# --------- linters --------- #
|
||||
pre-commit
|
||||
# isort
|
||||
# black
|
||||
# mypy
|
||||
|
||||
# --------- others --------- #
|
||||
rich>=9.12.3
|
||||
python-dotenv
|
||||
pre-commit
|
||||
dvc
|
||||
# scikit-learn
|
||||
# pandas
|
||||
scikit-learn
|
||||
+1
-1
@@ -59,7 +59,7 @@ def train(config: DictConfig) -> Optional[float]:
|
||||
# Init Lightning trainer
|
||||
log.info(f"Instantiating trainer <{config.trainer._target_}>")
|
||||
trainer: Trainer = hydra.utils.instantiate(
|
||||
config.trainer, callbacks=callbacks, logger=logger
|
||||
config.trainer, callbacks=callbacks, logger=logger, _convert_="partial"
|
||||
)
|
||||
|
||||
# Send some parameters from config to all lightning loggers
|
||||
|
||||
Reference in new issue
Block a user