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
I encountered the error: **RecursionError: maximum recursion depth exceeded in comparison ** while training with my custom dataset. I tried to set num_workers to 0 but the issue didn't get resolved. Please provide the fix.
The following is the code for the config file for the custom dataset
dataset_type = 'MyDataset'
# Correct path of your dataset
data_root = 'data/my_dataset'
img_norm_cfg = dict( # This img_norm_cfg is widely used because it is mean and std of ImageNet 1K pretrained model
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
crop_size = (512, 512) # Crop size of image in training
train_pipeline=[]
test_pipeline=[]
data = dict(
samples_per_gpu=4, # Batch size of a single GPU
workers_per_gpu=0, # Worker to pre-fetch data for each single GPU
train=dict( # Train dataset config
type=dataset_type, # Type of dataset, refer to mmseg/datasets/ for details.
data_root=data_root, # The root of dataset.
img_dir='img_dir/train', # The image directory of dataset.
ann_dir='ann_dir/train', # The annotation directory of dataset.
pipeline=train_pipeline), # pipeline, this is passed by the train_pipeline created before.
val=dict( # Validation dataset config.
type=dataset_type,
data_root=data_root,
img_dir='img_dir/val',
ann_dir='ann_dir/val',
pipeline=test_pipeline), # Pipeline is passed by test_pipeline created before.
test=dict(
type=dataset_type,
data_root=data_root,
img_dir='img_dir/val',
ann_dir='ann_dir/val',
pipeline=test_pipeline))
The following is the python configuration file of the intended SETR model based on SETR_MLA.
I encountered the error: **RecursionError: maximum recursion depth exceeded in comparison ** while training with my custom dataset. I tried to set num_workers to 0 but the issue didn't get resolved. Please provide the fix.
The following is the code for the config file for the custom dataset
The following is the python configuration file of the intended SETR model based on SETR_MLA.
The text was updated successfully, but these errors were encountered: