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

Installation #1

Open
bondrewd opened this issue Jun 20, 2024 · 0 comments
Open

Installation #1

bondrewd opened this issue Jun 20, 2024 · 0 comments

Comments

@bondrewd
Copy link

Hello!

First of all, thank you very much for making this work available!

I'm trying to use the code but having some trouble making it work.

First, I tried to install it by following the instructions on my MacOS machine, but then I found out that the environment needed to be Linux.

Then, I tried to install it on a Linux machine, but then found out that it requires a specific CUDA:

Traceback (most recent call last):
  File "run_eval.py", line 262, in <module>
    gamma=gamma, train_lr=train_lr, adamw=adamw, rescale=rescale, round2=False, decode_termini=decode_termini)
  File "run_eval.py", line 194, in iterative_inference
    gen_xyzs = run_inference(trainer, data_name=test_iter_prefix, folder_name=test_save_dir, batch_size=5000)
  File "/home/diego/bkp.bmp/DiAMoNDBack/scripts/utils.py", line 442, in run_inference
    trainer.op_number, batch_size=n, samples = next(sample_dl).cuda()[:n, :]), batches))
  File "/home/diego/bkp.bmp/DiAMoNDBack/scripts/utils.py", line 442, in <lambda>
    trainer.op_number, batch_size=n, samples = next(sample_dl).cuda()[:n, :]), batches))
  File "/home/diego/.local/conda/envs/diffback/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 26, in decorate_context
    return func(*args, **kwargs)
  File "../denoising_diffusion_pytorch/denoising_diffusion_pytorch_backmap_combined.py", line 702, in sample
    return self.p_sample_loop((batch_size, 1, op_number), samples)
  File "/home/diego/.local/conda/envs/diffback/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 26, in decorate_context
    return func(*args, **kwargs)
  File "../denoising_diffusion_pytorch/denoising_diffusion_pytorch_backmap_combined.py", line 655, in p_sample_loop
    state = torch.randn(shape, device=device)
RuntimeError: CUDA error: no kernel image is available for execution on the device

I wonder if you could update the conda environment script, make available a CPU version, or at least write down a list of minimum requirements that are needed to try/test/reproduce the work.

Thank you!

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