上一页 1 ··· 588 589 590 591 592 593 594 595 596 ··· 939 下一页
摘要: Lucidrains 系列项目源码解析(二十一) .\lucidrains\imagen-pytorch\setup.py # 导入设置工具和查找包工具 from setuptools import setup, find_packages # 执行版本文件中的代码,将版本信息导入当前环境 exec 阅读全文
posted @ 2024-06-28 14:02 绝不原创的飞龙 阅读(140) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十五) .\lucidrains\med-seg-diff-pytorch\setup.py # 导入设置工具和查找包工具 from setuptools import setup, find_packages # 设置包的信息 setup( # 包名 na 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(114) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十四) .\lucidrains\magvit2-pytorch\magvit2_pytorch\optimizer.py # 从 torch.optim 模块中导入 AdamW 和 Adam 优化器 from torch.optim import Adam 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(142) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十三) .\lucidrains\lion-pytorch\setup.py # 导入设置和查找包的函数 from setuptools import setup, find_packages # 设置包的元数据 setup( name = 'lion-py 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(191) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十七) .\lucidrains\metaformer-gpt\setup.py # 导入设置工具和查找包的函数 from setuptools import setup, find_packages # 设置包的信息 setup( # 包的名称 name 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(111) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十六) .\lucidrains\memory-efficient-attention-pytorch\memory_efficient_attention_pytorch\memory_efficient_cosine_sim_attention.py i 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(236) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十九) .\lucidrains\naturalspeech2-pytorch\naturalspeech2_pytorch\attend.py # 导入必要的库 from collections import namedtuple from functoo 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(175) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十二) .\lucidrains\lightweight-gan\lightweight_gan\diff_augment.py # 导入random模块 import random # 导入torch模块及其子模块 import torch import 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(116) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十八) .\lucidrains\multistream-transformers\multistream_transformers\__init__.py # 从 multistream_transformers 包中导入 MultistreamTrans 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(131) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十) .\lucidrains\imagen-pytorch\imagen_pytorch\imagen_pytorch.py # 导入数学库 import math # 从随机模块中导入随机函数 from random import random # 从 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(103) 评论(0) 推荐(0)
上一页 1 ··· 588 589 590 591 592 593 594 595 596 ··· 939 下一页