CaptchaAgent / hcaptcha-model-factory

🏗 hCaptcha image label binary model factory (PyTorch Training, Cluster-based Auto Label Tools, Export ONNX model, ONNX model inference)
GNU General Public License v3.0
73 stars 18 forks source link

adding on to model #8

Closed dontbanmeplz closed 2 years ago

dontbanmeplz commented 2 years ago

I have a few questions i am decent at python but do not have much experience with ai.

  1. How can i train a new model? I see the instructions but it is very hard to understand

  2. How do i add on to the model in hcaptcha-challenger? I want to fix the model they have.

  3. How can i test it? So i know how to use it

beiyuouo commented 2 years ago

Hi @dontbanmeplz, you can see the usage in wiki. Sorry for my English, if anything you cannot understand, you are welcome to give your suggestion.

Answer:

  1. install requirements, label data, change task_name in config.py, run the command python main.py --split --mode trainval
  2. You only need to modify the object.yaml in hcaptcha-challenger. For contributing to hcaptcha-challenger, you can upload your onnx model to gofile and open a pull request to modify object.yaml with model accuracy and the number of pictures collected.
  3. See in wiki. python main.py --mode val
ninjadoc107 commented 2 years ago

Oi@dontbanmeplz, vocĂȘ pode ver o uso no wiki . Desculpe pelo meu inglĂȘs, se houver algo que vocĂȘ nĂŁo consiga entender, fique Ă  vontade para dar sua sugestĂŁo.

Responda:

  1. instalar requisitos, rotular dados, alterar task_name em config.py, executar o comandopython main.py --split --mode trainval
  2. VocĂȘ sĂł precisa modificar o object.yamlarquivo hcaptcha-challenger. Para contribuir com o hcaptcha-challenger, vocĂȘ pode fazer o upload do seu modelo onnx para gofile e abrir um pull request para modificar object.yamlcom a precisĂŁo do modelo e o nĂșmero de fotos coletadas.
  3. Veja em wiki .python main.py --mode val

but where do I put the new photos that he will train, I still don't understand very well

beiyuouo commented 2 years ago

See here.

image

ninjadoc107 commented 2 years ago

Veja aqui.

imagem

in [task] do I put the name of the correct challenge?

beiyuouo commented 2 years ago

No, you can use whatever you want.

ninjadoc107 commented 2 years ago

NĂŁo, vocĂȘ pode usar o que quiser.

and where will he get the images and train the model?

beiyuouo commented 2 years ago

No, this repo is just a model factory for training and evaluting the model. You can use hcaptcha-challenger to collect the images.

ninjadoc107 commented 2 years ago

NĂŁo, este recurso Ă© apenas avaliação de uma fĂĄbrica de modelos para treinamento e modelo. VocĂȘ pode usar para imagens.hcaptcha-challenger

hmmm, and the collected images I put where to start training the model? and another doubt, regardless of the image that I will automatically divide by name?

beiyuouo commented 2 years ago

I can't get it. I have explained above how to place the pictures, how to divide data into train set and val set, and how to start the training.

dontbanmeplz commented 2 years ago

I can't get it. I have explained above how to place the pictures, how to divide data into train set and val set, and how to start the training.

You should make a video on how to do it, I'm sure it would clear up any problems @beiyuouo

beiyuouo commented 2 years ago

I can't get it. I have explained above how to place the pictures, how to divide data into train set and val set, and how to start the training.

You should make a video on how to do it, I'm sure it would clear up any problems @beiyuouo

Okay, I’ll finished the project structure in wiki. I think we don’t need any video. All you have to do is put the images in the right place and run the command.

dontbanmeplz commented 2 years ago

I can't get it. I have explained above how to place the pictures, how to divide data into train set and val set, and how to start the training.

You should make a video on how to do it, I'm sure it would clear up any problems @beiyuouo

Okay, I’ll finished the project structure in wiki. I think we don’t need any video. All you have to do is put the images in the right place and run the command.

ok thank you for the updated tutorial, but how can i make a new model for a challenge like, "click all boxes with a horse" what would i do for the "bad" image folder @beiyuouo

beiyuouo commented 2 years ago

@dontbanmeplz, Please check here. https://github.com/beiyuouo/hcaptcha-model-factory/wiki#full-workflow-to-add-a-new-challenge

dontbanmeplz commented 2 years ago

@beiyuouo what would be in the bad folder in this situation?

beiyuouo commented 2 years ago

Images you don't click. Which not contain a horse.