Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about train dataset #24

Open
luoww1992 opened this issue Nov 14, 2023 · 4 comments
Open

about train dataset #24

luoww1992 opened this issue Nov 14, 2023 · 4 comments

Comments

@luoww1992
Copy link

in datasetLodaer.py:
train_dataset = DataGenerator(
data = ImageFileTrain(
alpha_dir='path/to/alpha',
fg_dir='path/to/fg',
bg_dir='path/to/bg',
root='path/to/Adobe_Image_Matting'
),
phase = 'train'
)

i know the alpha_dir is mask path,
Q1: but the fg_dir is RGB image only fg object ? Or is RGBA image the all image with fg and bg ?
Q2:the bg_dir is RGB image only bg without fg object mask? Or likes bg in AIM with fg mask?

------ can you share me a demo dataset fold with some pictures ? thank you !

@JingfengYao
Copy link
Member

Images in fg_dir and bg_dir are both RGB images. As for demos, maybe you can see here.

@luoww1992
Copy link
Author

@JingfengYao
Q1, so train datase likes this:
see
the fg_image's background must be bg_image ?
Q2, And what i mean about demo dataset is :
can you share me three images in fg_dir,bg_dir andalpha_dir in your dataset ?

@yuqilol
Copy link

yuqilol commented Jun 7, 2024

Hello, has this problem been solved? Is it your above format

@JingfengYao
Copy link
Member

@luoww1992 @yuqilol
A1: No, In our setting, there is no requirement for the foreground and background to be associated.
A2: I can't share the demos. Because the dataset is semi-public (owned by DIM). I have no right to share them personally. You should get the dataset following their instructions.
BTW, for a simple way to get familiar with matting datasets, you may check GFM. (they are similar in format to DIM data, but we didn't use them in ViTMatte training)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants