ShortLink Directly denoising Diffusion model, the Simplest deep learning. Version 1.1
ShortLink 'Directly denoising Diffusion model, the Simplest deep learning. Version 1.1
image
#!/usr/bin/env python # coding: utf-8 '''Directly denoising Diffusion model, the Simplest deep learning.''' '''Version 1.1''' '''python diff_c.py''' __credits__ = ["iBoxDB", "Bruce Yang CL-N", "2025-6"] # 3rd parts #https://pytorch.org CPU version only import torch import torch.nn as nn import torch.utils.data as tdata from torch.optim import Adam,AdamW,SGD from torchvision.datasets import MNIST, CIFAR10 from torchvision.utils import save_image, make_grid from PIL import ImageEnhance, Image import...
ShortLink Directly denoising Diffusion model, the Simplest deep learning.
Images
#!/usr/bin/env python # coding: utf-8 '''Directly denoising Diffusion model, the Simplest deep learning.''' '''Version 1.0''' '''python diff.py''' __credits__ = ["iBoxDB", "Bruce Yang CL-N", "2025-5"] # 3rd parts #https://pytorch.org CPU version only import torch import torch.nn as nn import torch.utils.data as tdata from torch.optim import Adam,AdamW from torchvision.datasets import MNIST, CIFAR10 from torchvision.utils import save_image, make_grid import torchvision.transforms as transforms import...
#!/usr/bin/env python # coding: utf-8 '''Mutant GAN generative adversarial network The simplest deep learning''' '''Version 1.0''' '''python mutant_gan.py''' __credits__ = ["iBoxDB", "Bruce Yang CL-N", "2025-4"] # 3rd parts #https://pytorch.org CPU version only import torch # pip install matplotlib import matplotlib.pyplot as plt # pip install pillow from PIL import Image, ImageDraw, ImageFont import torch.utils.data as data import matplotlib.pyplot as plt import matplotlib.animation as animation...
#!/usr/bin/env python # coding: utf-8 '''The simplest deep learning, Seq2Seq, Sequence to Sequence. Version 1.3''' '''python seq2seq.py''' __credits__ = ["iBoxDB", "Bruce Yang CL-N", "2025-4"] # 3rd parts #https://pytorch.org CPU version only import torch import torch.utils.data as data import os th = torch nn = torch.nn class BrucePredictor(nn.Module): def __init__(self,max_seq,input_categories,out_categories,d_dim=128): super().__init__() self.embed = nn.Embedding(input_categories,d_dim) lin_dim...
imgs
#!/usr/bin/env python # coding: utf-8 '''The simplest deep learning, CarRacing reinforcement, Run in desktop UI''' '''for CarRacing-v3 v1.1''' '''python gym_car.py''' __credits__ = ["iBoxDB", "Bruce Yang CL-N", "2025-3"] # 3rd parts #https://pytorch.org CPU version only import torch #pip install "gymnasium[box2d]" #pip install pygame import gymnasium #from gymnasium.envs.box2d.car_racing import CarRacing # included in torch import numpy from copy import deepcopy th = torch nn = th.nn np = numpy gym...
#!/usr/bin/env python # coding: utf-8 '''The simplest deep learning, CarRacing reinforcement, Run in desktop UI''' '''for CarRacing-v3 v1.0''' '''python gym_car.py''' __credits__ = ["iBoxDB", "Bruce Yang CL-N", "2025-3"] # 3rd parts #https://pytorch.org CPU version only import torch #pip install "gymnasium[box2d]" #pip install pygame import gymnasium #from gymnasium.envs.box2d.car_racing import CarRacing # included in torch import numpy from copy import deepcopy th = torch nn = th.nn np = numpy gym...
#!/usr/bin/env python # coding: utf-8 '''The simplest deep learning, Continuous reinforcement, Run in desktop UI''' '''for LunarLanderContinuous-v3 v1.4''' '''python gym.py''' __credits__ = ["iBoxDB", "Bruce Yang CL-N", "2025-2"] # 3rd parts #https://pytorch.org CPU version only import torch #pip install "gymnasium[box2d]" #pip install pygame import gymnasium #from gymnasium.envs.box2d.lunar_lander import LunarLander, LunarLanderContinuous # included in torch import numpy th = torch nn = th.nn np...
#!/usr/bin/env python # coding: utf-8 '''The simplest deep learning, Discrete reinforcement, Run in desktop UI''' '''for LunarLander-v3 v1.0''' '''python gym_discrete.py''' __credits__ = ["iBoxDB", "Bruce Yang CL-N", "2025-2"] # 3rd parts #https://pytorch.org CPU version only import torch #pip install "gymnasium[box2d]" #pip install pygame import gymnasium #from gymnasium.envs.box2d.lunar_lander import LunarLander, LunarLanderContinuous # included in torch import numpy from copy import deepcopy th...
#!/usr/bin/env python # coding: utf-8 '''The simplest deep learning, Discrete reinforcement, Run in desktop UI''' '''for LunarLander-v3 v1.0''' '''python gym_discrete.py''' __credits__ = ["iBoxDB", "Bruce Yang CL-N", "2025-2"] # 3rd parts #https://pytorch.org CPU version only import torch #pip install "gymnasium[box2d]" #pip install pygame import gymnasium #from gymnasium.envs.box2d.lunar_lander import LunarLander, LunarLanderContinuous # included in torch import numpy from copy import deepcopy th...
:::python #!/usr/bin/env python # coding: utf-8 '''The simplest deep learning, Discrete reinforcement, Run in desktop UI''' '''for LunarLander-v3 v1.0''' '''python gym_discrete.py''' __credits__ = ["iBoxDB", "Bruce Yang CL-N", "2025-2"] # 3rd parts #https://pytorch.org CPU version only import torch #pip install "gymnasium[box2d]" #pip install pygame import gymnasium #from gymnasium.envs.box2d.lunar_lander import LunarLander, LunarLanderContinuous # included in torch import numpy from copy import...
dark
delete
rm
update
aaa
aaa
va
readme
abc
update
abc
3.9.2
i391
i391
re
kat
discover
2.0.562.0.56
11
3.5
de
CA00
Sleep
AAA
Scan
doc
faststr
str
2.0
msg
FTS
OF
Scan
FTS
750
FTS EasyOR
CS1.9
Java1.9
helper
text order
net6
net6
43
cache 1400
update jsoup
1.8.54
cache
1.8.52
28
ip
127.0.0.1
browser
mis
1.8.50
aaa
os
KW
aaa
bbb
0
ccc