Hi,
I tried to run Decimer2 from my script using:
from DECIMER import predict_SMILES
image_path = r"C:\Users........."
SMILES = predict_SMILES(image_path)
print(SMILES)
And I received to following error:
What can I do?
Downloading trained model to C:\Users\SAWACH.data\DECIMER-V2
C:\Users\SAWACH.data\DECIMER-V2\models.zip
done downloading trained model!
Traceback (most recent call last):
File "C:\Users\SAWACH\Desktop\RoseBoom2.2 Supersloth\untitled0.py", line 2, in
from DECIMER import predict_SMILES
File "C:\Users\SAWACH\anaconda3\lib\site-packages\DECIMER_init_.py", line 33, in
from .decimer import predict_SMILES
File "C:\Users\SAWACH\anaconda3\lib\site-packages\DECIMER\decimer.py", line 34, in
config.download_trained_weights(model_url, default_path)
File "C:\Users\SAWACH\anaconda3\lib\site-packages\DECIMER\config.py", line 296, in download_trained_weights
subprocess.run(
File "C:\Users\SAWACH\anaconda3\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\SAWACH\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 108, in init
super(SubprocessPopen, self).init(*args, **kwargs)
File "C:\Users\SAWACH\anaconda3\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\SAWACH\anaconda3\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
Decimer1 worked by just installing it with pip.