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

Ignoring .pth files, using name in the config. #5

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading