Skip to content

Training on custom dataset with custom mask for Inpainting #1270

Answered by wwhio
Akshay-Ijantkar asked this question in Datasets
Discussion options

You must be logged in to vote
  1. Implement your dataset which gives the information of your data. Register it, import it in mmedit/datasets/__init__.py, and add it to __all__.
  2. Implement your pipeline which gives the process according to information provided by dataset. Register it, import it in mmedit/datasets/pipelines/__init__.py, and add it to __all__.

During implementing your dataset, just give the information:

  1. Your dataset should inherit the ImgInpaintingDataset class, and implement your load_annotations function.
  2. You may change the __init__ function according to your need.
  3. In load_annotations: package all information you need for one paired data into a dict and append these dicts to a list and return this list.
  4. C…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by zengyh1900
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #228 on October 11, 2022 09:27.