Closed xianrui-luo closed 2 years ago
Hi, are you trying to resume training? or to start the training with pretrained weights with a new learning rate scheduling?
start the training with pretrained weights with a new learning rate scheduling
I see. The current code does not provide the functionality at the moment. I will spend some of my time adding the functionality. Do your pretrained weights include weights for the reblurring network also?
I think so. And i have encountered a warning while training. It said "Warning! No positional inputs found for a module, assuming batch size is 1." But I have set the batchsize as your training details. I wonder what happened?
Hi, I've just pushed some commits. Pull the repo and try the following command:
mode
name different from the mode
name of the pretrained model to prevent the process from overriding the folder of the pretrained model.-ra
or --resume_absolute
option.--config
option.
CUDA_VISIBLE_DEVICES=0,1,2,3 python -B -m torch.distributed.launch --nproc_per_node=4 --master_port=9000 run.py \
--is_train \
--mode IFAN_finetune \
--config config_IFAN \
--trainer trainer \
--network IFAN \
-b 2 \
-th 8 \
-ra /path/to/the/pretriained/weights \
-ss \
-dist
Thank you for your help! I will try it now.
I am a beginner and when replicating your code this error occurred.The dataset was placed as required。Can you help me
Hi, I would like to ask about how to load the pretrained weights and start training without interfering other process?