microsoft / evodiff

Generation of protein sequences and evolutionary alignments via discrete diffusion models
MIT License
483 stars 67 forks source link

Scaffolding benchmark produces different sequences every time it is run #39

Closed abhi-senthilkumar closed 1 month ago

abhi-senthilkumar commented 3 months ago

I'm not sure if this is expected behavior, but the scaffolding benchmark code produces different sequences every time it is run. It appears to be because in conditional_generation.py, while the numpy and pytorch seeds are set to 0, the random seed is not set and random.randint is used to generate the scaffold length. When I manually set random.seed(0), I got the same sequences on every run.

sarahalamdari commented 1 month ago

this is the expected behavior. We do not want the same sequences for each generation, and we sample sequence length in the paper.