QIN2DIM / hcaptcha-challenger

🥂 Gracefully face hCaptcha challenge with MoE(ONNX) embedded solution.
https://docs.captchax.top/
GNU General Public License v3.0
1.48k stars 253 forks source link

error #828

Closed M4Nyak closed 10 months ago

M4Nyak commented 10 months ago

2023-10-10 10:20:56 | ERROR - An error has been caught in function '_CallAndUpdateTrace', process 'MainProcess' (6928), thread 'MainThread' (3484):
Traceback (most recent call last):
File "C:\Users\mrx\Desktop\hcaptcha-model-factory-main\src\main.py", line 6, in
Fire(Scaffold)
File "C:\Users\mrx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fire\core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "C:\Users\mrx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fire\core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(

File "C:\Users\mrx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\fire\core.py", line 691, in CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "C:\Users\mrx\Desktop\hcaptcha-model-factory-main\src\apis\scaffold.py", line 70, in new
ClusterLabeler(data_dir=data_dir).run()
File "C:\Users\mrx\Desktop\hcaptcha-model-factory-main\src\components\auto_label\cluster.py", line 57, in run
emb = self.img2emb.get_emb(img)
File "C:\Users\mrx\Desktop\hcaptcha-model-factory-main\src\components\auto_label\img2emb.py", line 98, in get_emb
image = self.normalize(self.to_tensor(self.scaler(img))).unsqueeze(0).to(self.device)
File "C:\Users\mrx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\torch\nn\modules\module.py", line 1501, in call_impl
return forward_call(*args, **kwargs)
File "C:\Users\mrx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\torchvision\transforms\transforms.py", line 277, in forward
return F.normalize(tensor, self.mean, self.std, self.inplace)
File "C:\Users\mrx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\torchvision\transforms\functional.py", line 363, in normalize
return F_t.normalize(tensor, mean=mean, std=std, inplace=inplace)
File "C:\Users\mrx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\torchvision\transforms_functional_tensor.py", line 928, in normalize
return tensor.sub(mean).div(std)
RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 0