mirror of
https://github.com/wassname/denoising-diffusion-pytorch.git
synced 2026-09-11 12:11:43 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
698227ae13 |
@@ -414,7 +414,7 @@ class Trainer(object):
|
|||||||
data = next(self.dl).cuda()
|
data = next(self.dl).cuda()
|
||||||
loss = self.model(data)
|
loss = self.model(data)
|
||||||
print(f'{ind}: {loss.item()}')
|
print(f'{ind}: {loss.item()}')
|
||||||
loss.backward()
|
(loss / self.gradient_accumulate_every).backward()
|
||||||
|
|
||||||
self.opt.step()
|
self.opt.step()
|
||||||
self.opt.zero_grad()
|
self.opt.zero_grad()
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
|||||||
setup(
|
setup(
|
||||||
name = 'denoising-diffusion-pytorch',
|
name = 'denoising-diffusion-pytorch',
|
||||||
packages = find_packages(),
|
packages = find_packages(),
|
||||||
version = '0.1.3',
|
version = '0.1.4',
|
||||||
license='MIT',
|
license='MIT',
|
||||||
description = 'Denoising Diffusion Probabilistic Models - Pytorch',
|
description = 'Denoising Diffusion Probabilistic Models - Pytorch',
|
||||||
author = 'Phil Wang',
|
author = 'Phil Wang',
|
||||||
|
|||||||
Reference in New Issue
Block a user