-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1
- Loading branch information
Showing
4 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
tags: | ||
- 教学 | ||
--- | ||
# excel如何所有图片一键填充满单元格 | ||
## 手动排序 | ||
按照以下步骤操作: | ||
|
||
>1. 首先,确保图片是嵌入到 Excel 工作表中的。 | ||
>2. 选中所有需要调整的图片。您可以通过按住 `Ctrl` 键并依次点击图片来逐个选择,或者如果图片分布比较规律,您可以拖动鼠标进行框选。 | ||
>3. 在选中图片后,右键单击其中一张图片,在弹出的菜单中选择“大小和属性”。 | ||
>4. 在“大小和属性”对话框中,切换到“属性”选项卡。 | ||
>5. 勾选“随单元格改变位置和大小”选项。 | ||
>6. 然后切换到“大小”选项卡,在“缩放比例”中,将“高度”和“宽度”都设置为 100%。 | ||
这样设置后,当您调整单元格大小时,图片就会自动填充满单元格了。 | ||
例如,如果您的单元格是长方形的,图片原本是正方形的,经过上述设置,图片会自动拉伸以适应单元格的形状和大小。 | ||
请注意,过度拉伸图片可能会导致图片失真,因此在操作前请确保这样的调整不会影响图片的显示效果。 | ||
|
||
## 已经排好序 | ||
`类似WPS中‘嵌入 单元格’` | ||
|
||
使用VBA(Visual Basic for Applications)宏来实现。以下是一个简单的VBA宏代码,可以帮助你将工作表中的所有图片填充到各自的单元格中: | ||
|
||
1. 按下 `Alt + F11` 打开VBA编辑器。 | ||
2. 插入一个新模块:点击 `Insert` > `Module`。 | ||
3. 将以下代码粘贴到模块中: | ||
## vba | ||
`Sub ResizePictures() Dim ws As Worksheet Dim pic As Picture Dim cell As Range ' 指定工作表 Set ws = ThisWorkbook.Sheets("Sheet1") ' 将 "Sheet1" 替换为你的工作表名称 For Each pic In ws.Pictures ' 找到图片左上角所在的单元格 Set cell = ws.Cells(pic.TopLeftCell.Row, pic.TopLeftCell.Column) ' 调整图片大小以适应单元格 pic.Left = cell.Left pic.Top = cell.Top pic.Width = cell.Width pic.Height = cell.Height Next pic End Sub` | ||
|
||
4. 关闭VBA编辑器,返回Excel。 | ||
5. 按下 `Alt + F8` 打开“宏”对话框。 | ||
6. 选择 `ResizePictures` 宏并点击“运行”。 | ||
|
||
这样,所有图片将自动调整大小并填充到各自所在的单元格中。如果你的图片不在 `Sheet1` 中,请将代码中的 `Sheet1` 替换为相应的工作表名称。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
tags: | ||
- 教学 | ||
- 艺术/模型 | ||
--- | ||
# 3DsMax如何渲染白底图 | ||
|
||
## 来源 | ||
bilibili BV1Qs4y1m7kL | ||
## corona | ||
环境贴图白色,阴影捕捉材质:白色。 | ||
环境和效果:环境贴图 | ||
|
||
## vRay | ||
vRAy 阴影捕捉器直接制作平面,GI环境-HDRi环境贴图 | ||
环境和效果:白色 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
tags: | ||
- 教学 | ||
- 艺术/模型 | ||
- 学习 | ||
--- | ||
# 如何将 HDRi 转为 3D 环境 | ||
bilibili BV1kg4y1C79W | ||
|
||
|
||
|
||
EEVEE和Cycles都可用 | ||
## 教程 | ||
|
||
|
||
>获取HDRi环境贴图 | ||
>建立对应大致环境模型 | ||
>翻转法线 | ||
>映射贴图 | ||
>修改相关材质 | ||
>布光 | ||
## 结合手机拍摄制作HDRi图片 | ||
Nuke X | ||
|
||
|
||
> 合成效果不怎么样 | ||
> 需要多重曝光来获取HDR的明度信息 | ||
> 360度照片需要跟踪运算 | ||
> 操作流程多余 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
tags: | ||
- AI/绘画 | ||
--- | ||
|
||
## 教你成为炼丹师AI生图入门指南 | ||
### 仿 Novel Al prompt 形式 | ||
标签顺序:主体(1boy/1girl) ->角色名 (a girl named frieren from sousou no frierenseries) ->艺术家 (by xxx style)->race(elf)->镜头组合(cowboy shot)->风格(impasto style) ->画面主题 (fantasy theme) ->主环境描述 (in the forest, at day) ->背景描述 (gradient background)->动作 (sitting on ground)->表情 (isexpressionless)->主要角色特征(white hair)->身体特征(twintails,green eyes,parted lip) ->衣着特征 (wearing a white dress)->饰品 (frils)->其他附属物(a cat)>次要场景(grass,unshine)->美学 (beautifu color, detailed, aesthetic) -> 质量词(best quality) | ||
提示词token控制在255以内 | ||
|
||
### 中文自然语言形式 | ||
*常规短句格式即可* 形如:一个拥有樱花粉渐变长发、明亮星眸、穿着精致水手服的动漫女孩正在蹲着喂猫 | ||
|
||
#### 中文tag形式 | ||
常规提示词格式即可,形如:1个女孩,动漫风格,樱花粉发色,渐变发色,星光熠熠的 | ||
眼睛,水手服,精致装扮,蹲下,喂猫中. | ||
|
||
## 打标签工具 | ||
英文比较多比较完善,最近有微软发布新,中文的 | ||
|
||
## 环境部署 | ||
### 根据官方环境指引安装必要的文件和依赖: | ||
官方项目地址:https://github.com/Tencent/HunyuanDiT 从官方项目中克隆后依照其指引安装环境,建议使用linux | ||
系统,同时确保gcc和cuda等版本满足环境编译需求 | ||
|
||
`#1.Prepare conda environment` | ||
`conda env create f environment.yml` | ||
`#2.Activate the environment` | ||
`conda activate HunyuanDiT` | ||
`#3.Install pip dependencies` | ||
`python -m pip install -r requirements.txt` | ||
`#4.Install flash attention v2 for acceleration(reguires CUDA 11.6 or above)` | ||
`python -m pip install git+https://github.com/Dao-AILab/[email protected]` | ||
|
||
### 下载模型 | ||
从官方huggingface库下载训练所需要的模型权重,包括文本编码器和DiT权重,放到项目目录下指定CKPT文件夹中 |