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
72 stars 18 forks source link

[Question] #43

Closed ltofour closed 1 year ago

ltofour commented 1 year ago

Describe the bug 6 legs idk

To Reproduce Steps to reproduce the behavior:

  1. Use the script like u normally would
  2. What the fuck

Expected behavior i expected it to magically work

da problem

2022-11-17 13:24:38 | INFO - Found 20 images in E:\papka\hcaptcha-model-factory\data\strawberry_cake\unlabel
2022-11-17 13:24:38 | DEBUG - Extracting embeddings...
2022-11-17 13:24:43 | INFO - Embeddings extracted
2022-11-17 13:24:43 | INFO - PCA..., shape of embs: (20, 512)
2022-11-17 13:24:43 | INFO - PCA done, shape of embs: (20, 20)
2022-11-17 13:24:43 | DEBUG - Clustering...
2022-11-17 13:24:44 | DEBUG - Clustering done
2022-11-17 13:24:44 | INFO - Saving labels...
2022-11-17 13:24:44 | DEBUG - Labels saved
2022-11-17 13:24:44 | SUCCESS - Auto labeling completed
Start automatic training? {'y', 'n'} --> y
2022-11-17 13:24:49 | DEBUG - Diagnose task | task_name=strawberry_cake
2022-11-17 13:24:49 | ERROR - An error has been caught in function 'new', process 'MainProcess' (4468), thread 'MainThre
Traceback (most recent call last):
  File "main.py", line 6, in <module>
    Fire(Scaffold)
  File "C:\Users\a\AppData\Local\Programs\Python\Python38\lib\site-packages\fire\core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "C:\Users\a\AppData\Local\Programs\Python\Python38\lib\site-packages\fire\core.py", line 466, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "C:\Users\a\AppData\Local\Programs\Python\Python38\lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTr
    component = fn(*varargs, **kwargs)
> File "E:\papka\hcaptcha-model-factory\src\apis\scaffold.py", line 78, in new
    Scaffold.train(task=task)
  File "E:\papka\hcaptcha-model-factory\src\apis\scaffold.py", line 98, in train
    model = Scaffold._model or ResNet(
  File "E:\papka\hcaptcha-model-factory\src\factories\kernel.py", line 93, in __init__
    self._build_env()
  File "E:\papka\hcaptcha-model-factory\src\factories\resnet.py", line 64, in _build_env
    raise FileNotFoundError(
FileNotFoundError: The structure of the dataset is incomplete | dir=E:\papka\hcaptcha-model-factory\data\strawberry_cake