ProTrek icon indicating copy to clipboard operation
ProTrek copied to clipboard

generate_embedding error

Open GanQiao1990 opened this issue 3 months ago • 4 comments

INFO: 127.0.0.1:38536 - "GET /search?input=&topk=5&input_type=text&query_type=sequence&subsection_type=Function&db=Swiss-Prot HTTP/1.1" 200 OK

GanQiao1990 avatar Sep 30 '25 08:09 GanQiao1990

nfo The database "Swiss-Prot" is being used by other users. You could try again later (several minutes) or choose other databases.

GanQiao1990 avatar Sep 30 '25 08:09 GanQiao1990

Hi,

It looks like the node you used was busy at that time. Maybe it was executing an earlier search?

LTEnjoy avatar Sep 30 '25 08:09 LTEnjoy

ProTrek/demo/backend/servers/embedding_generation/server.py", line 108, in "protein_config": glob.glob(f"{model_dir}/esm2_*")[0], IndexError: list index out of range

GanQiao1990 avatar Oct 09 '25 08:10 GanQiao1990

This is because the system cannot find the config file of protein encoder. Did you download the model weights correctly following https://github.com/westlake-repl/ProTrek?tab=readme-ov-file#Download-model-weights ?

LTEnjoy avatar Oct 09 '25 09:10 LTEnjoy