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

Move import statement for KrakenProgressBar from function segtrain to… #557

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion kraken/ketos/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ def segtrain(ctx, output, spec, line_width, pad, load, freq, quit, epochs,
from threadpoolctl import threadpool_limits

from kraken.lib.train import SegmentationModel, KrakenTrainer
from kraken.lib.progress import KrakenProgressBar

if resize != 'fail' and not load:
raise click.BadOptionUsage('resize', 'resize option requires loading an existing model')
Expand Down Expand Up @@ -431,6 +430,7 @@ def segtest(ctx, model, evaluation_files, device, workers, threads, threshold,
import torch
import torch.nn.functional as F

from kraken.lib.progress import KrakenProgressBar
from kraken.lib.train import BaselineSet, ImageInputTransforms
from kraken.lib.vgsl import TorchVGSLModel

Expand Down