This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] Add DataPipeline + Callbacks + Registry (#207)
* update doc * update docs * update * update * add registry doc * revamp doc * resolve issues * update example * resolve some bugs * update on comments * resolve flake8 * update registry * update on comments * updates * add more descriptions, resolve typos * update * update docs * update on comments * update * udpate * Update flash/data/data_pipeline.py * update * update docs * removed typing in example * update * update on comments * update on comments Co-authored-by: Kaushik B <[email protected]>
- Loading branch information
1 parent
a33b6b2
commit 6185bda
Showing
27 changed files
with
1,721 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
######## | ||
Callback | ||
######## | ||
|
||
.. _callback: | ||
|
||
************** | ||
Flash Callback | ||
************** | ||
|
||
:class:`~flash.data.callback.FlashCallback` is an extension of the PyTorch Lightning `Callback <https://pytorch-lightning.readthedocs.io/en/latest/extensions/callbacks.html>`__. | ||
|
||
A callback is a self-contained program that can be reused across projects. | ||
|
||
Flash and Lightning have a callback system to execute callbacks when needed. | ||
|
||
Callbacks should capture any NON-ESSENTIAL logic that is NOT required for your lightning module to run. | ||
|
||
Same as PyTorch Lightning, Callbacks can be provided directly to the Trainer. | ||
|
||
Example:: | ||
|
||
trainer = Trainer(callbacks=[MyCustomCallback()]) | ||
|
||
|
||
******************* | ||
Available Callbacks | ||
******************* | ||
|
||
|
||
BaseDataFetcher | ||
_______________ | ||
|
||
.. autoclass:: flash.data.callback.BaseDataFetcher | ||
:members: enable | ||
|
||
BaseVisualization | ||
_________________ | ||
|
||
.. autoclass:: flash.data.base_viz.BaseVisualization | ||
:members: | ||
|
||
|
||
************* | ||
API reference | ||
************* | ||
|
||
|
||
FlashCallback | ||
_____________ | ||
|
||
.. autoclass:: flash.data.callback.FlashCallback | ||
:members: |
Oops, something went wrong.