Skip to content
Snippets Groups Projects
Commit 582831ac authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[scripts] Fix usage docs

parent 1b27a248
No related branches found
Tags v1.2.1
No related merge requests found
Pipeline #79486 failed
...@@ -25,7 +25,7 @@ logger = setup(__name__.split(".")[0], format="%(levelname)s: %(message)s") ...@@ -25,7 +25,7 @@ logger = setup(__name__.split(".")[0], format="%(levelname)s: %(message)s")
.. code:: sh .. code:: sh
ptbench saliency-completeness -vv pasa tbx11k-v1-healthy-vs-atb --device="cuda" --weight=path/to/model_final.pth --output-folder=path/to/completeness-scores/ ptbench saliency-completeness -vv pasa tbx11k-v1-healthy-vs-atb --device="cuda" --weight=path/to/model_final.ckpt --output-folder=path/to/completeness-scores/
""", """,
) )
......
...@@ -257,10 +257,10 @@ def train( ...@@ -257,10 +257,10 @@ def train(
"""Trains an CNN to perform image classification. """Trains an CNN to perform image classification.
Training is performed for a configurable number of epochs, and Training is performed for a configurable number of epochs, and
generates at least a final_model.pth. It may also generate a number generates at least a final_model.ckpt. It may also generate a
of intermediate checkpoints. Checkpoints are model files (.pth number of intermediate checkpoints. Checkpoints are model files
files) that are stored during the training and useful to resume the (.ckpt files) that are stored during the training and useful to
procedure in case it stops abruptly. resume the procedure in case it stops abruptly.
""" """
import torch import torch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment