Comments (5)
error: list index out of range domain B data loading for /home/........./snowy/imgs/0ce5101a-36562e6a.jpg
After investigation this is because your number of semantic classes is wrong and the class 11 cannot be found in the list of mask delta values. You need to account for the background class and set 12 classes.
You can easily see this by looking at bbox/0ce5101a-36562e6a.txt
where a bbox has class 11: 11 573 214 762 311
.
You need to use --f_s_semantic_nclasses 12
and --f_s_class_weights 1 10 10 1 5 5 10 10 30 50 50 50
(here value 50 is given to class 12, you may want to modify it as needed).
from joligen.
Have you tried adding or removing --data_relative_paths
depending on your dataset ? and --data_sanitize_paths
if your dataset is missing images ?
from joligen.
I did not use --data_relative_paths since I am using absolute paths.
I will check with sanithize path.
The question is why the same configuration works well, with no warning or errors, with the previous code but not with the release 1.0.0. Thanks!
from joligen.
There are additional checks on the data and many changes over the dataloaders structure. You may want to give more details here, such as the exact inner structure of the dataset and exact command line.
from joligen.
Sure, the command is as follows:
python3 train.py --dataroot /home/ubuntu/clear2snowy/ --checkpoints_dir /home/ubuntu/checkpoints --name clear2snowy --output_display_freq 50 --output_print_freq 50 --train_G_lr 0.0002 --train_D_lr 0.0001 --data_crop_size 256 --data_load_size 512 --data_dataset_mode unaligned_labeled_mask_online --model_type cut --train_batch_size 14 --train_iter_size 2 --model_input_nc 3 --model_output_nc 3 --f_s_net segformer --f_s_config_segformer models/configs/segformer/segformer_config_b0.json --train_mask_f_s_B --f_s_semantic_nclasses 11 --G_netG segformer_attn_conv --G_config_segformer models/configs/segformer/segformer_config_b0.json --data_online_creation_crop_size_A 512 --data_online_creation_crop_delta_A 64 --data_online_creation_mask_delta_A 64 --data_online_creation_crop_size_B 512 --data_online_creation_crop_delta_B 64 --dataaug_D_noise 0.01 --data_online_creation_mask_delta_B 64 --alg_cut_nce_idt --train_sem_use_label_B --D_netDs projected_d basic vision_aided --D_proj_interp 512 --D_proj_network_type vitsmall --train_G_ema --G_padding_type reflect --train_optim adam --dataaug_no_rotate --train_sem_idt --model_multimodal --train_mm_nz 16 --G_netE resnet_256 --f_s_class_weights 1 10 10 1 5 5 10 10 30 50 50 --gpu_id 0,1,2,3 --train_semantic_mask --output_display_aim_server 127.0.0.1 --output_display_visdom_port 8501
The dataset structure is as follows:
├── clear
│ ├── bbox
│ └── imgs
├── snowy
│ ├── bbox
│ └── imgs
├── trainA
│ └── paths.txt
└── trainB
└── paths.txt
Whereas the files "paths.txt" include for each image, the name of their bbox file, example:
/home/ubuntu/clear2snowy/snowy/imgs/00091078-7cff8ea6.jpg /home/ubuntu/clear2snowy/snowy/bbox/00091078-7cff8ea6.txt
from joligen.
Related Issues (20)
- Exception in dataloader.py HOT 3
- Preserving the semantics during translation HOT 6
- Using `--sampling-steps` in 'gen_single_image_diffusion.py` breaks the inference HOT 1
- A question about training on weather conditions HOT 13
- Issues encounter while training model on 4 gpus HOT 34
- How to train diffusion model on paired i2i dataset like style transfer? HOT 2
- Output image size when applying a model (inference) HOT 4
- Using TPUs HOT 1
- Unet_mha_ref_attn run training example
- inference unetref generator HOT 7
- Training with semantic segmentation error "NameError: name 'N_img_path' is not defined" HOT 2
- unet ref training preview and inference script HOT 4
- Adding logo(s) in AI-generated shirt HOT 3
- The 'ref-in' parameter is indeed mandatory. HOT 3
- problem training on master HOT 3
- Advice about training result HOT 9
- Import images with paths.txt file in unaligned mode HOT 2
- BUG: AttributeError: 'float' object has no attribute 'clone' HOT 5
- DDPM inference anormal size HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joligen.