hcaptcha-model-factory icon indicating copy to clipboard operation
hcaptcha-model-factory copied to clipboard

[DOCS] ROOKIE FAQ

Open QIN2DIM opened this issue 2 years ago • 0 comments

How to Install Requirements gracefully

👍 Before you start, create a python 3.10+ virtual environment.

  1. Install PyTorch

    You need to download the latest version of torch, torchvision and torchaudio from Start Locally | PyTorch

    pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117
    
  2. Download additional dependencies

    pip install -U numpy packaging protobuf onnxruntime opencv-python==4.5.5.62 pillow~=9.2.0 scikit-learn==1.0.1 fire~=0.4.0 loguru~=0.6.0 pyyaml~=6.0
    

FileNotFoundError: The structure of the dataset is incomplete

You need to get challenge Images from the hCaptcha challenge, and in principle, the more pictures the better. In the first training round, you should put in at least 150 images(yes + bad).

You need to manually program the yes and bad folders and then run the task with the trainval command.

  • ~\hcaptcha-model-factory\data\sunflower\yes
  • ~\hcaptcha-model-factory\data\sunflower\bad

python main.py trainval --task sunflower

QIN2DIM avatar Jan 11 '23 15:01 QIN2DIM