luost26 / 3D-Generative-SBDD

💊 A 3D Generative Model for Structure-Based Drug Design (NeurIPS 2021)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error in sample.py

futianfan opened this issue · comments

thanks for your great work!

i got the error when running sample.py:

ValueError: zero-size array to reduction operation maximum which has no identity

the reason is query_tmp = [], after sampling.

p_next = softmax(np.array([np.mean(data.logp_history) for data in queue_tmp]) * next_factor)

do you know how to fix it? thanks

it also report "Ignoring duplicate molecule" during sampling.