Closed EtagiBI closed 1 year ago
You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template. The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";
Your code has this bug: https://stackoverflow.com/questions/25314547/cell-var-from-loop-warning-from-pylint Closing.
In deep machine learning we have three standard types of datasets:
I'd like to train a Detectron2 model, so I need a training dataset and a validation dataset. My training dataset has 1928 images in it, whereas my validation dataset has 304 images in it.
According to docs, in Detectron2 training dataset is called "train" and validation dataset is called "test". Alright then.
Instructions To Reproduce the Issue:
Here's my code:
When I start training, the following output appears:
According to this output, the training process relies on 304 images, but that's my validation dataset, not training dataset.
Every 500 iterations I get the following output:
Expected behavior:
The output refers to 304 images, so I assume that validation set is used for evaluation. I expect to see any lines mentioning 1928 images and corresponding annotations distribution, but logs search shows no matches with '1928'. It seems that
cfg.DATASETS.TRAIN
setting is completely ignored by Detectron2, so my training dataset isn't taken into account at all.Why does Detectron2 behave that way?
Environment:
sys.platform win32 Python 3.7.11 (default, Jul 27 2021, 09:42:29) [MSC v.1916 64 bit (AMD64)] numpy 1.21.2 detectron2 0.5 @c:\users\e-soft\detectron2\detectron2 Compiler MSVC 192930133 CUDA compiler CUDA 11.2 detectron2 arch flags c:\users\e-soft\detectron2\detectron2_C.cp37-win_amd64.pyd; cannot find cuobjdump DETECTRON2_ENV_MODULE
PyTorch 1.8.2 @C:\Users\E-soft\Anaconda3\envs\Detectium\lib\site-packages\torch
PyTorch debug build False
GPU available Yes
GPU 0 NVIDIA GeForce GTX 1080 Ti (arch=6.1)
Driver version
CUDA_HOME C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1
Pillow 8.4.0
torchvision 0.9.2 @C:\Users\E-soft\Anaconda3\envs\Detectium\lib\site-packages\torchvision
torchvision arch flags C:\Users\E-soft\Anaconda3\envs\Detectium\lib\site-packages\torchvision_C.pyd; cannot find cuobjdump
fvcore 0.1.5.post20210924
iopath 0.1.9
cv2 4.5.3
PyTorch built with: