We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2.6版本使用jupyter notebook运行程序后,显存被占用,再次运行程序显示:
MemoryError Traceback (most recent call last) Cell In[3], line 131 127 train(args) 130 if name == 'main': --> 131 launch() 132 pass
Cell In[3], line 127 124 self.lr = 1.5e-4 126 args = ARGS() --> 127 train(args)
Cell In[3], line 89 87 t = diffusion.sample_timesteps(images[0].shape[0]) 88 x_t, noise = diffusion.noise_images(images[0], t) ---> 89 predicted_noise = model(x_t, t) 90 loss = mse(noise, predicted_noise) # 损失函数 92 opt.clear_grad()
File ~/anaconda3/envs/paddle_2.6/lib/python3.8/site-packages/paddle/nn/layer/layers.py:1429, in Layer.call(self, *inputs, **kwargs) 1420 if ( 1421 (not in_to_static_mode()) 1422 and (not self._forward_pre_hooks) (...) ... Please check whether there is any other process using GPU 0.
The text was updated successfully, but these errors were encountered:
restart一下kernel再跑跑看呢
Sorry, something went wrong.
westfish
No branches or pull requests
bug描述 Describe the Bug
2.6版本使用jupyter notebook运行程序后,显存被占用,再次运行程序显示:
其他补充信息 Additional Supplementary Information
MemoryError Traceback (most recent call last)
Cell In[3], line 131
127 train(args)
130 if name == 'main':
--> 131 launch()
132 pass
Cell In[3], line 127
124 self.lr = 1.5e-4
126 args = ARGS()
--> 127 train(args)
Cell In[3], line 89
87 t = diffusion.sample_timesteps(images[0].shape[0])
88 x_t, noise = diffusion.noise_images(images[0], t)
---> 89 predicted_noise = model(x_t, t)
90 loss = mse(noise, predicted_noise) # 损失函数
92 opt.clear_grad()
File ~/anaconda3/envs/paddle_2.6/lib/python3.8/site-packages/paddle/nn/layer/layers.py:1429, in Layer.call(self, *inputs, **kwargs)
1420 if (
1421 (not in_to_static_mode())
1422 and (not self._forward_pre_hooks)
(...)
...
Please check whether there is any other process using GPU 0.
(at ../paddle/fluid/memory/allocation/cuda_allocator.cc:86)
The text was updated successfully, but these errors were encountered: