You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OLOv10m-doclayout summary (fused): 465 layers, 19924276 parameters, 0 gradients
Class Images Instances Box(P R mAP50 mAP50-95): 0%| | 0/1 [00:00<?
Traceback (most recent call last):
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\train.py", line 63, in <module>
results = model.train(
^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\engine\model.py", line 660, in train
self.trainer.train()
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\engine\trainer.py", line 214, in train
self._do_train(world_size)
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\engine\trainer.py", line 473, in _do_train
self.final_eval()
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\engine\trainer.py", line 630, in final_eval
self.metrics = self.validator(model=f)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\engine\validator.py", line 192, in __call__
preds = model(batch["img"], augment=augment)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\nn\autobackend.py", line 420, in forward
y = self.model(im, augment=augment, visualize=visualize, embed=embed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\nn\tasks.py", line 96, in forward
return self.predict(x, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\nn\tasks.py", line 114, in predict
return self._predict_once(x, profile, visualize, embed)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\nn\tasks.py", line 136, in _predict_once
x = m(x) # run
^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\nn\modules\g2l_crm.py", line 114, in forward
y.append(m(y[-1]))
^^^^^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\nn\modules\g2l_crm.py", line 77, in forward
return x + self.cv2(self.dilated_block(self.cv1(x))) if self.add else self.cv2(self.dilated_block(self.cv1(x)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\nn\modules\g2l_crm.py", line 43, in forward
dx = [self.dilated_conv(x, d) for d in self.dilation]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\nn\modules\g2l_crm.py", line 43, in <listcomp>
dx = [self.dilated_conv(x, d) for d in self.dilation]
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Programming\Documents\DocLayout-YOLO-main\doclayout_yolo\nn\modules\g2l_crm.py", line 36, in dilated_conv
bn = self.dcv.bn
^^^^^^^^^^^
File "C:\Users\Programming\AppData\Roaming\Python\Python311\site-packages\torch\nn\modules\module.py", line 1931, in __getattr__
raise AttributeError(
AttributeError: 'Conv' object has no attribute 'bn'
Meanwhile, the --epoch 5 seems a relative short training period, we follow original yolo setting train for 500 epochs and stop when no better performance on validation set is observed.
Hello,
I got the following error, if I train the model on custom dataset with the following command:
Command:
Error:
What is the cause of the issue?
Thanks in forward, best regards
Christian
Appendix
The folder structure is:
Dataset.yaml:
train.txt, test.txt, val.txt are with absolute path, like the following example:
The settings.yaml in Ultraytics is set as follows:
The text was updated successfully, but these errors were encountered: