hcaptcha-model-factory
hcaptcha-model-factory copied to clipboard
[DOCS] ROOKIE FAQ
How to Install Requirements gracefully
👍 Before you start, create a python 3.10+ virtual environment.
-
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 -
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).
- download samples: sunflower.zip
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