Closed LZYmixiu closed 2 years ago
Hi, the default logging interval is 50 iterations (see this line). This means that it will print training information at 50,100,150.. iterations of each epoch. However, there are only 45 images in the custom training set and batch size is 2, so that there will be only 22 or 23 iterations per epoch.
You may add this line in your config:
log_config = dict(interval=1)
Hi, the default logging interval is 50 iterations (see this line). This means that it will print training information at 50,100,150.. iterations of each epoch. However, there are only 45 images in the custom training set and batch size is 2, so that there will be only 22 or 23 iterations per epoch.
You may add this line in your config:
log_config = dict(interval=1)
THX A LOT!
@LZYmixiu Sorry to bother you. I want to I want to training my custom dataset with Swin transfomer, I want to ask your dataset is label by which label tool ? ex. labelme ? If the tool is using labelme, after finishing the label, it need to transfer labelme json to coco json format right? Please share the training experience with me !!
Yes, my labeling tool is labelme and you should transfer the json files to coco format first.
---Original--- From: @.> Date: Thu, Feb 24, 2022 08:53 AM To: @.>; Cc: @.**@.>; Subject: Re: [SwinTransformer/Swin-Transformer-Object-Detection] Can't see train loss when train on custom dataset. (Issue #125)
@LZYmixiu Sorry to bother you. I want to I want to training my custom dataset with Swin transfomer, I want to ask your dataset is label by which label tool ? ex. labelme ? If the tool is using labelme, after finishing the label, it need to transfer labelme json to coco json format right? Please share the training experience with me !!
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>
@LZYmixiu Sorry, I get a error in training. Like the following image. I training my custom dataset with Swin-Transformer-Object-Detection's code.
I search this error, the solution is training with mmdetection not Swin-Transformer-Object-Detection. I want to ask, Do you training custom dataset use this Swin-Transformer-Object-Detection repositories code ? Or you download the mmdetection's code and copy the swin model python code and config file from Swin-Transformer-Object-Detection repositories to mmdetection to training ?
counter_weight_config.py is my custom config.Not the official code.
---Original--- From: @.> Date: Thu, Feb 24, 2022 14:27 PM To: @.>; Cc: @.**@.>; Subject: Re: [SwinTransformer/Swin-Transformer-Object-Detection] Can't seetrain loss when train on custom dataset. (Issue #125)
@LZYmixiu Sorry, I can't find config file like yours. (counter_weight_config.py) I only find cascade_mask_rcnn_swin_tiny_patch4_window7_mstrain_480-800_giou_4conv1f_adamw_3x_coco.py in swin folder. Where can I find this file (counter_weight_config.py) in Swin-Transformer-Object-Detection ?
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>
This is the error created by mmdet version. You have problem with steps of mmdet installation which is wrong in official README.
---Original--- From: @.> Date: Fri, Feb 25, 2022 08:37 AM To: @.>; Cc: @.**@.>; Subject: Re: [SwinTransformer/Swin-Transformer-Object-Detection] Can't seetrain loss when train on custom dataset. (Issue #125)
@LZYmixiu Sorry, I get a error in training. Like the following image. I training my custom dataset with Swin-Transformer-Object-Detection's code.
I search this error, the solution is training with mmdetection not Swin-Transformer-Object-Detection. I want to ask, Do you training custom dataset use this Swin-Transformer-Object-Detection repositories code ? Or you download the mmdetection's code and copy the swin model python code and config file from Swin-Transformer-Object-Detection repositories to mmdetection to training ?
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>
@LZYmixiu I already solve my problem by myself. Thanks a lot!!
I have trained on custom dataset which included 45 pics in training set. I can't see train loss when train on this dataset, only the metric result showed in terminal. Here is my config file:
And I run this config file using:
CUDA_VISIBLE_DEVICES=2 python ./tools/train.py configs/swin/counter_weight_config.py --work-dir ./weights/counterweight_20211207/