Replies: 1 comment
-
Did you have any luck with this? I have the same problem, from what I can tell it's a issue that runs deep, I tried to resolve it using the fix for fastprogress in this branch https://github.com/fastai/fastprogress/tree/b7d338e5c6dc41e3d9ea72a23dce95569eec9a9d. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
my cmd: !python /content/doctr/references/recognition/train_pytorch.py crnn_vgg16_bn --train_path /content/Train --val_path /content/Eval --epochs 5
Namespace(amp=False, arch='crnn_vgg16_bn', batch_size=64, device=None, epochs=1, find_lr=False, font='FreeMono.ttf,FreeSans.ttf,FreeSerif.ttf', input_size=32, lr=0.001, max_chars=12, min_chars=1, name=None, pretrained=False, push_to_hub=False, resume=None, sched='cosine', show_samples=False, test_only=False, train_path='/content/Train', train_samples=1000, val_path='/content/Eval', val_samples=20, vocab='french', wb=False, weight_decay=0, workers=None)
Validation set loaded in 0.03216s (3428 samples in 54 batches)
WARNING:root:No accessible GPU, targe device set to CPU.
Train set loaded in 0.2129s (32901 samples in 514 batches)
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<torch.utils.data.dataloader.DataLoader object at 0x7f7b6a1a0ad0> <fastprogress.fastprogress.NBMasterBar object at 0x7f7b69607d90> Gopipatwa=======================
Traceback (most recent call last):
File "/content/doctr/references/recognition/train_pytorch.py", line 468, in
main(args)
File "/content/doctr/references/recognition/train_pytorch.py", line 379, in main
fit_one_epoch(model, train_loader, batch_transforms, optimizer, scheduler, mb, amp=args.amp)
File "/content/doctr/references/recognition/train_pytorch.py", line 111, in fit_one_epoch
for images, targets in progress_bar(train_loader, parent=mb):
File "/usr/local/lib/python3.7/dist-packages/fastprogress/fastprogress.py", line 39, in iter
if self.total != 0: self.update(0)
File "/usr/local/lib/python3.7/dist-packages/fastprogress/fastprogress.py", line 59, in update
self.update_bar(0)
File "/usr/local/lib/python3.7/dist-packages/fastprogress/fastprogress.py", line 81, in update_bar
self.on_update(val, f'{pct}[{val}/{tot} {elapsed_t}{self.lt}{remaining_t}{end}]')
File "/usr/local/lib/python3.7/dist-packages/fastprogress/fastprogress.py", line 134, in on_update
elif self.parent is not None: self.parent.show()
File "/usr/local/lib/python3.7/dist-packages/fastprogress/fastprogress.py", line 177, in show
self.out.update(HTML(self.html_code))
AttributeError: 'NoneType' object has no attribute 'update'
Beta Was this translation helpful? Give feedback.
All reactions