上一页 1 ··· 381 382 383 384 385 386 387 388 389 ··· 732 下一页
摘要: Lucidrains 系列项目源码解析(九) Dataloaders In order to make loading data simple and efficient, we include some general dataloaders that can be used to train p 阅读全文
posted @ 2024-06-28 14:02 绝不原创的飞龙 阅读(102) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十一) .\lucidrains\imagen-pytorch\setup.py # 导入设置工具和查找包工具 from setuptools import setup, find_packages # 执行版本文件中的代码,将版本信息导入当前环境 exec 阅读全文
posted @ 2024-06-28 14:02 绝不原创的飞龙 阅读(97) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十五) .\lucidrains\med-seg-diff-pytorch\setup.py # 导入设置工具和查找包工具 from setuptools import setup, find_packages # 设置包的信息 setup( # 包名 na 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(72) 评论(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 绝不原创的飞龙 阅读(97) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十三) .\lucidrains\lion-pytorch\setup.py # 导入设置和查找包的函数 from setuptools import setup, find_packages # 设置包的元数据 setup( name = 'lion-py 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(134) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十七) .\lucidrains\metaformer-gpt\setup.py # 导入设置工具和查找包的函数 from setuptools import setup, find_packages # 设置包的信息 setup( # 包的名称 name 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(67) 评论(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 绝不原创的飞龙 阅读(192) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十九) .\lucidrains\naturalspeech2-pytorch\naturalspeech2_pytorch\attend.py # 导入必要的库 from collections import namedtuple from functoo 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(135) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十二) .\lucidrains\lightweight-gan\lightweight_gan\diff_augment.py # 导入random模块 import random # 导入torch模块及其子模块 import torch import 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(84) 评论(0) 推荐(0)
摘要: Lucidrains 系列项目源码解析(二十八) .\lucidrains\multistream-transformers\multistream_transformers\__init__.py # 从 multistream_transformers 包中导入 MultistreamTrans 阅读全文
posted @ 2024-06-28 14:01 绝不原创的飞龙 阅读(104) 评论(0) 推荐(0)
上一页 1 ··· 381 382 383 384 385 386 387 388 389 ··· 732 下一页