How to build custom model and train on my dataset? #1269
-
Hi,I'm glad to use mmediting,but I don't know how to define my model and train(test) on my dataset,could your please teach me how to modify your tool in mmediting? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Hi, thanks for trying mmedit! For a specific task, you may prepare your data similar to an exisiting one, and modify the data path in existing configs (here https://github.com/open-mmlab/mmediting/tree/master/configs) to your own data path. If the data format is good, there will be no code change required. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply! But I still have a question: When I want to use basicVSR model to test on REDS4 dataset, I still confused about where did the model find the image : 000/00000000.png. It said that "It reads REDS keys from the txt file. Each line contains: |
Beta Was this translation helpful? Give feedback.
-
You need to prepare reds dataset by script |
Beta Was this translation helpful? Give feedback.
-
** how to define my model ** Maybe you can define your model refer to existing models. |
Beta Was this translation helpful? Give feedback.
-
I have tested the model and realized where to define the folder :['000', '011', '015', '020'],but I still don't understand how did the model find the image path: 000/00000000.png, it must be defined in somewhere. And in the configs/restorers/basivsr_reds4.py, it's seems like we don't need to define the ann_file in pipeline. |
Beta Was this translation helpful? Give feedback.
-
Hi @ACALJJ32, it is defined here. If the argument |
Beta Was this translation helpful? Give feedback.
-
Moreover, for BasicVSR on REDS, you should look for SRREDSMultipleGTDataset. |
Beta Was this translation helpful? Give feedback.
-
Thank you! I think I have understand how to continue my work. |
Beta Was this translation helpful? Give feedback.
Hi @ACALJJ32, it is defined here. If the argument
num_input_frames
is not provided,GenerateSegmentIndices
automatically extracts the entire sequence (which is equivalent to starting from000000000.png
and extracting 100 frames for REDS.)