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

Has anyone been able to create their own model? #100

Open
tjkusnadi opened this issue Jun 27, 2022 · 14 comments
Open

Has anyone been able to create their own model? #100

tjkusnadi opened this issue Jun 27, 2022 · 14 comments

Comments

@tjkusnadi
Copy link

How many datasets are used?
How many images?

@amilkcar
Copy link

I will try, but i didn't understand how to resize the images to create the dataset.. it works for you or did you understand how to work with images or what kind of problems did you had ?

@AlienX456
Copy link

did you were able to train the model?

@tjkusnadi
Copy link
Author

nope.

@tjkusnadi
Copy link
Author

how many images for each classes?

@tjkusnadi
Copy link
Author

how do you get the datasets?

@RayanAbdulnaser
Copy link

300k live, 700k spoof

could please publish this project

@Madina-S
Copy link

Madina-S commented May 3, 2023

How to prepare the data for retraining? I did not understand pre-processing stage

@Nurmukhammeds
Copy link

Try to search data gathering portals (Toloku)

@Madina-S
Copy link

Madina-S commented May 3, 2023

@Nurmukhammeds thank you for your response, but gathering is not problem. I have my data, but the accuracy of the model is not enough for me, so I want to add my data too, while keeping already computed weights (retrain). However, I could not even find good documentation for preparing data for training. The orginal image sizes must be the same? Or they can be different? How to split fake and real ones in the folder? And other questions. So, can you please provide some roadmap for retraining the existing models with my own dataset.

@Nurmukhammeds
Copy link

So, if you want to retrain existing models keeping weights, use patch size in the models name and resize your data to corresponding size with patch scale. Data directory can be structured as shown in Readme .

@Madina-S
Copy link

Madina-S commented May 3, 2023

So, if you want to retrain existing models keeping weights, use patch size in the models name and resize your data to corresponding size with patch scale. Data directory can be structured as shown in Readme .

I understood, but how to split the traing data (real, fake faces)? In the code, there are 3 classes, why? What kind of classes?

Then, please, can you share the .py file for creating patches? generate_patches.py includes only CropImage class without usage example code.

@pedromoraesh
Copy link

Did someone understand why are there 3 classes and the kind of those classes? And finally, which size of the images and how to separate them?

@russmuh
Copy link

russmuh commented May 13, 2023

folder 0 - 2D fake
folder 1 - real
folder 3 - 3D fake

If you have only two cases (real and fake photos), then you don't need to have folder 3 which holds 3D fake photos.

@freedom9393
Copy link

folder 0 - 2D fake folder 1 - real folder 3 - 3D fake

If you have only two cases (real and fake photos), then you don't need to have folder 3 which holds 3D fake photos.

Are you sure? Cuz, they said directories 0, 1, 2 folders are for different scales of images (not for different classes). Please, correct me if I'm wrong

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

9 participants