Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional Sequence Generation example command throwing an error #56

Open
JDaksh opened this issue Nov 15, 2024 · 0 comments
Open

Conditional Sequence Generation example command throwing an error #56

JDaksh opened this issue Nov 15, 2024 · 0 comments

Comments

@JDaksh
Copy link

JDaksh commented Nov 15, 2024

I have the local environment for evodiff set up, got the uniref split from zenodo and I'm able to run all the unconditional generation example commands.

When I try running the following (example) conditional generation command,
python evodiff/generate_msa.py --model-type msa_oa_dm_maxsub --batch-size 1 --n-sequences 64 --n-sequences 256 --subsampling MaxHamming --start-msa

I get the error

Traceback (most recent call last):
File "/workspace/evodiff/evodiff/generate_msa.py", line 413, in
main()
File "/workspace/evodiff/evodiff/generate_msa.py", line 138, in main
sample, _string = generate_msa(model, tokenizer, args.batch_size, args.n_sequences, args.seq_length,
File "/workspace/evodiff/evodiff/generate_msa.py", line 186, in generate_msa
valid_msas, query_sequences, tokenizer = get_valid_data(data_top_dir, batch_size, 'autoreg',
File "/workspace/evodiff/evodiff/generate_msa.py", line 351, in get_valid_data
dataset = A3MMSADataset(selection_type, n_sequences, max_seq_len, data_dir=os.path.join(data_top_dir,data_dir), min_depth=64)
File "/opt/conda/lib/python3.10/site-packages/evodiff/data.py", line 353, in init
all_files = np.array(all_files)[keep_idx]
IndexError: index 0 is out of bounds for axis 0 with size 0

I tried the same command out in the docker cford38/evodiff and got the exact same error again.

How should I fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant