上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 58 下一页
摘要: ViT 实现了将 Transformer 应用到 CV 领域。 模型定义 import torch as th import torch.nn as nn class SimpleViT(nn.Module): def __init__( self, image_size=28, image_dim 阅读全文
posted @ 2025-06-17 22:44 Undefined443 阅读(18) 评论(0) 推荐(0)
摘要: Setup pip install torch torchvision -i https://download.pytorch.org/whl/cu126 定义模型和数据: from torchvision.models import resnet18 import torch as th x = 阅读全文
posted @ 2025-06-17 19:06 Undefined443 阅读(22) 评论(0) 推荐(0)
摘要: tcc(Tiny C Compiler)是一个轻量级的 C 编译器。可以将 C 语言以脚本的形式运行。 安装 tcc: sudo apt install tcc 编写代码: vim main.c #!/usr/bin/tcc -run #include <stdio.h> int main() { 阅读全文
posted @ 2025-06-17 02:39 Undefined443 阅读(22) 评论(0) 推荐(0)
摘要: 安装 gradio 库: pip install gradio 编写代码: vim app.py import gradio as gr # 定义要展示的函数 def greet(name, intensity): return "Hello, " + name + "!" * int(intens 阅读全文
posted @ 2025-06-16 23:56 Undefined443 阅读(16) 评论(0) 推荐(0)
摘要: 初始配置 安装依赖: pip install sphinx 创建文档项目: sphinx-quickstart docs Separate source and build directories: y 编辑首页: docs/source/index.rst: Welcome to Lumache' 阅读全文
posted @ 2025-06-12 19:16 Undefined443 阅读(14) 评论(0) 推荐(0)
摘要: 数据类型 原始数据类型:string, number, boolean, bigint, symbol, null, undefined sonst num: number = 1 const str = 'Hello World' // 这样也不会报错,因为 TS 会推导类型 数组:number[ 阅读全文
posted @ 2025-06-12 13:09 Undefined443 阅读(11) 评论(0) 推荐(0)
摘要: CLIP(Contrastive Language-Image Pretraining)是由 OpenAI 开发的多模态模型,用于同时处理图像和文本。其核心思想是通过对比学习,将图像和对应的文本描述映射到同一特征空间中。这样,模型能够理解图像与文本之间的关系,并在多种任务中表现出色,如图像分类、图像 阅读全文
posted @ 2025-06-11 23:37 Undefined443 阅读(41) 评论(0) 推荐(0)
摘要: 🤖:此文章由 gpt-4.1 生成,并由人类进行少量修改 XDG 基础目录规范(XDG Base Directory Specification)是一组用于定义类 Unix 操作系统上应用程序使用的文件系统目录标准。此规范由 freedesktop.org 提出,旨在统一各个应用程序存储配置文件、 阅读全文
posted @ 2025-06-11 01:31 Undefined443 阅读(140) 评论(0) 推荐(0)
摘要: 无分类器指导(Classifier-Free Guidance,CFG)是一种用于生成模型(如扩散模型、生成对抗网络等)中的采样技巧,常用于提升生成样本的质量和对条件(如文本、标签)的一致性。其核心思想是在不依赖外部分类器的情况下,通过调整条件和无条件生成之间的融合,来引导生成模型输出更符合目标条件 阅读全文
posted @ 2025-06-10 16:32 Undefined443 阅读(247) 评论(0) 推荐(0)
摘要: :此文章由 gpt-4.1 生成,并由人类进行少量修改 PPO 论文:Proximal Policy Optimization Algorithms | arXiv PPO(Proximal Policy Optimization,近端策略优化)是一种常用的强化学习策略梯度算法,由 OpenAI 于 阅读全文
posted @ 2025-06-09 19:11 Undefined443 阅读(50) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 58 下一页