Closed sewageseaweed closed 3 years ago
Reducing the chunk size and batch size and installing pytorch with the following command:
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c nvidia
seems to have fixed it. It now seems to sample, but now I run into this error:
Traceback (most recent call last):
File "jukebox/sample.py", line 279, in <module>
fire.Fire(run)
File "/home/clyde/anaconda3/envs/jukebox/lib/python3.7/site-packages/fire/core.py", line 127, in Fire
component_trace = _Fire(component, args, context, name)
File "/home/clyde/anaconda3/envs/jukebox/lib/python3.7/site-packages/fire/core.py", line 366, in _Fire
component, remaining_args)
File "/home/clyde/anaconda3/envs/jukebox/lib/python3.7/site-packages/fire/core.py", line 542, in _CallCallable
result = fn(*varargs, **kwargs)
File "jukebox/sample.py", line 276, in run
save_samples(model, device, hps, sample_hps)
File "jukebox/sample.py", line 244, in save_samples
ancestral_sample(labels, sampling_kwargs, priors, hps)
File "jukebox/sample.py", line 127, in ancestral_sample
zs = _sample(zs, labels, sampling_kwargs, priors, sample_levels, hps)
File "jukebox/sample.py", line 120, in _sample
save_html(logdir, x, zs, labels[-1], alignments, hps)
File "/home/clyde/Projects/jukebox/jukebox/save_html.py", line 24, in save_html
_save_item_html(item_dir, item, item, data)
File "/home/clyde/Projects/jukebox/jukebox/save_html.py", line 50, in _save_item_html
max_attn_at_token = np.max(alignment, axis=0)
File "<__array_function__ internals>", line 6, in amax
File "/home/clyde/anaconda3/envs/jukebox/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 2734, in amax
keepdims=keepdims, initial=initial, where=where)
File "/home/clyde/anaconda3/envs/jukebox/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 87, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation maximum which has no identity
Looks like no longer running into zero-size array error when level=3. Currently sampling. Hopefully finishes without any hitches
you saved our lives 😭 thank you!!
Hey guys,
Completely new here. I went through the installation process and ran the sampling command and got the following error. I also changed the command to
and still got the same error:
My systems on CUDA 11.4. Wasn't sure if it was either running OOM or due to a conflicting CUDA version.
Thank you!