This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
UnboundLocalError: local variable 'l1_loss' referenced before assignment in Doctr's compute_loss function #1661
Labels
type: bug
Something isn't working
Bug description
While training a Doctr model with my own dataset, I encountered an UnboundLocalError in the compute_loss function of the differentiable_binarization module.
Code snippet to reproduce the bug
Error traceback
Environment
Collecting environment information...
DocTR version: 0.9.0a0
TensorFlow version: N/A
PyTorch version: 2.3.1+cu121 (torchvision 0.18.1+cu121)
OpenCV version: 4.10.0
OS: Ubuntu 22.04.4 LTS
Python version: 3.9.19
Is CUDA available (TensorFlow): N/A
Is CUDA available (PyTorch): Yes
CUDA runtime version: 11.5.119
GPU models and configuration:
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090
Nvidia driver version: 555.42.02
cuDNN version: Could not collect
Deep Learning backend
The text was updated successfully, but these errors were encountered: