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

configuring processor pipelines #288

Open
Tailor2019 opened this issue Oct 27, 2021 · 4 comments
Open

configuring processor pipelines #288

Tailor2019 opened this issue Oct 27, 2021 · 4 comments

Comments

@Tailor2019
Copy link

Hello!
@ChWick
@andbue
Please where can I retrieve the implementation of this method? and what design the "cls()" in the source code ?
Is the create_trainer() defines parameters for training before or after preprocessing the data?
Thanks a lot for your continuous help!

@andbue
Copy link
Member

andbue commented Oct 27, 2021

create_trainer is defined here:
https://github.com/Planet-AI-GmbH/tfaip/blob/516a1f176e979c0abeb305550be0682c25a059e3/tfaip/scenario/scenariobase.py#L290
it calls the __init__ of the trainer class defined in the scenario, in our case

def trainer_cls(cls):
from calamari_ocr.ocr.training.trainer import Trainer
return Trainer

this means it calls this function:
def __init__(self, params: TrainerParams, scenario, restore=False):

Everything until there just defines parameters. The setup of the pipelines and the training starts only with the train()-function
def train(self, callbacks=None, **kwargs):

@Tailor2019
Copy link
Author

@ChWick
@andbue
Thanks for your fast reply!
Please can you tell about some explanation about the setup of the pipelines.
thanks a lot!

@andbue
Copy link
Member

andbue commented Oct 27, 2021

Sorry, you do have to be a bit more specific here.

@Tailor2019
Copy link
Author

Tailor2019 commented Oct 28, 2021

@andbue
I mean the preprocessing and post processing pipelines.
How can I monitor these pipeline (which parameters can I use)
Does the definition of parameters occurs after or before launching the setup of the pipelines to run?
Thanks in advance!

@bertsky bertsky changed the title the .cls().create_trainer() method in the "train.py" configuring processor pipelines Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants