Skip to content

[DOCS] ROOKIE FAQ #49

@QIN2DIM

Description

@QIN2DIM

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions