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
When I tried to run the training script for document detection using PyTorch
python references/detection/train_pytorch.py db_resnet50 --train_path doctr-main/data/train/images --val_path doctr-main/data/train/labels.json --epochs 5
But I encountered an import error:
Traceback (most recent call last):
File "d:\JIN\Capstone_Spring\doctr-main\references\detection\train_pytorch.py", line 29, in
from doctr import transforms as T
ImportError: cannot import name 'transforms' from 'doctr' (c:\Users\Admin\anaconda3\envs\doctr_env\Lib\site-packages\doctr_init_.py)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I tried to run the training script for document detection using PyTorch
python references/detection/train_pytorch.py db_resnet50 --train_path doctr-main/data/train/images --val_path doctr-main/data/train/labels.json --epochs 5
But I encountered an import error:
Traceback (most recent call last):
File "d:\JIN\Capstone_Spring\doctr-main\references\detection\train_pytorch.py", line 29, in
from doctr import transforms as T
ImportError: cannot import name 'transforms' from 'doctr' (c:\Users\Admin\anaconda3\envs\doctr_env\Lib\site-packages\doctr_init_.py)
Beta Was this translation helpful? Give feedback.
All reactions