Skip to content

Commit

Permalink
Ignoring .pth files, using name in the config.
Browse files Browse the repository at this point in the history
  • Loading branch information
drewoldag committed Sep 19, 2024
1 parent b11bad0 commit f746187
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,6 @@ _html/

# Project initialization script
.initialize_new_project.sh

# Model files
**/*.pth
18 changes: 6 additions & 12 deletions example_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,21 @@ timeout = 3600
chunksize = 990

[model]
# name = "ExampleCNN"
# name = "ExampleAutoencoder"

# An example of requesting an external model class
# external_class = "user_package.submodule.ExternalModel"
external_cls = "kbmod_ml.models.cnn.CNN"
# The name of the built-in model to use or the libpath to an external model
# e.g. "user_package.submodule.ExternalModel" or "ExampleAutoencoder"
name = "kbmod_ml.models.cnn.CNN"

weights_filepath = "example_model.pth"
epochs = 10

[data_loader]
# Name of data loader to use
# Name of the built-in data loader to use or the libpath to an external data loader
# e.g. "user_package.submodule.ExternalDataLoader" or "HSCDataLoader"
name = "CifarDataLoader"
# name = "HSCDataLoader"

# An example of requesting an external data loader class
# external_class = "user_package.submodule.ExternalDataLoader"

# Directory path where the data is stored
path = "/Users/drew/code/fibad/data/cifar-10-batches-py"
# path = "/Users/drew/code/fibad/data/hsc-samples"
path = "/home/drew/code/fibad/data/"

# Default PyTorch DataLoader parameters
batch_size = 10
Expand Down

0 comments on commit f746187

Please sign in to comment.