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

Running the evodiff/generate.py script #30

Open
Amelie-Schreiber opened this issue Dec 30, 2023 · 1 comment
Open

Running the evodiff/generate.py script #30

Amelie-Schreiber opened this issue Dec 30, 2023 · 1 comment

Comments

@Amelie-Schreiber
Copy link

I've been having trouble with getting the conda environment to work properly, so this may be exacerbating the issue below.

(evodiff3) ubuntu@209-20-159-77:~/evodiff_repo$ python evodiff/generate.py --model-type oa_dm_38M --num-seqs 100
Traceback (most recent call last):
  File "evodiff/generate.py", line 323, in <module>
    main()
  File "evodiff/generate.py", line 40, in main
    data = UniRefDataset('data/uniref50/', 'train', structure=False, max_len=2048)
  File "/home/ubuntu/miniconda3/envs/evodiff3/lib/python3.8/site-packages/sequence_models/datasets.py", line 330, in __init__
    with open(data_dir + 'splits.json', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/uniref50/splits.json'
(evodiff3) ubuntu@209-20-159-77:~/evodiff_repo$ 
@chAwater
Copy link

@Amelie-Schreiber I ran to the same error and I found that you have to download the uniref50 (from #10 (comment)) to run the code.

I believe it's not necessary, you can hack the code to bypass it.

+ # the sequence length you want to sample from, for example (30, 200)
+ seq_len = np.random.choice(np.arange(30, 200))
  • run the bash command
export AMLT_OUTPUT_DIR=YOUR_OUTPUT_DIR; python evodiff/generate.py --model-type oa_dm_38M --num-seqs 10 --amlt`

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

2 participants