图生3d 图生全景 学习笔记

目录

instantsplat

Aluciddreamer

ZoeDepth

会自动下载模型:

图生全景图SD-T2I-360PanoImage:



instantsplat

Sparse-view SfM-free Gaussian Splatting in Seconds

稀疏视图无SfM高斯喷洒

GitHub - NVlabs/InstantSplat: InstantSplat: Sparse-view SfM-free Gaussian Splatting in Seconds

Aluciddreamer

GitHub - luciddreamer-cvlab/LucidDreamer: Official code for the paper "LucidDreamer: Domain-free Generation of 3D Gaussian Splatting Scenes".

解析器添加参数('--campath_gen','-cg'),类型为字符串,默认值为'rotate360',可选值为 'lookdown','lookaround','rotate360',帮助信息为 "用于场景生成的相机外参轨迹"。

解析器添加参数('--campath_render','-cr'),类型为字符串,默认值为'back_and_forth',可选值为 'back_and_forth','llff','headbanging',帮助信息为 "用于视频渲染的相机外参轨迹"。

ZoeDepth

引用地址:

GitHub - isl-org/ZoeDepth: Metric depth estimation from a single image

演示地址:

https://huggingface.co/spaces/shariqfarooq/ZoeDepth

模型下载地址:

Releases · isl-org/ZoeDepth · GitHub

会自动下载模型:

python 复制代码
self.d_model = torch.hub.load('./ZoeDepth', 'ZoeD_N', source='local', pretrained=True).to('cuda')

下载路径:

/mnt/pfs/models/torch/hub/intel-isl_MiDaS_master Using cache found in

/mnt/pfs/models/torch/hub/checkpoints

图生全景图SD-T2I-360PanoImage:

pip install numpy==1.23.2

python 复制代码
import sys
import os
os.chdir(os.path.dirname(os.path.abspath(__file__)))
 
import torch
 
current_dir = os.path.dirname(os.path.abspath(__file__))
 
paths = [os.path.abspath(__file__).split('scripts')[0]]
print('current_dir',current_dir)
paths.append(os.path.abspath(os.path.join(current_dir, 'src')))
 
for path in paths:
    sys.path.insert(0, path)
    os.environ['PYTHONPATH'] = (os.environ.get('PYTHONPATH', '') + ':' + path).strip(':')
    
import torch
from diffusers.utils import load_image
from img2panoimg import Image2360PanoramaImagePipeline

image = load_image("./data/i2p-image.jpg").resize((512, 512))
mask = load_image("./data/i2p-mask.jpg")

prompt = 'The office room'

# for <16GB gpu
input = {'prompt': prompt, 'image': image, 'mask': mask, 'upscale': False}

# for >16GB gpu (24GB at least)
# the similarity with the input image is poor because of the super-resolution steps. It should be improved.
# input = {'prompt': prompt, 'image': image, 'mask': mask, 'upscale': True}

model_id = 'models'
img2panoimg = Image2360PanoramaImagePipeline(model_id, torch_dtype=torch.float16)
output = img2panoimg(input)
output.save('result.png')
相关推荐
LaughingZhu14 小时前
Product Hunt 每日热榜 | 2026-07-27
人工智能·深度学习·神经网络·搜索引擎·产品运营
万里鹏程转瞬至15 小时前
论文简读:Boogu-Image 图像生成与编辑模型
论文阅读·深度学习·aigc
不懒不懒16 小时前
路面类型识别 — CNN-LSTM 完整流程:基于车辆振动数据的端到端深度学习
深度学习·cnn·lstm
SimpleLearingAI17 小时前
DiT:Diffusion Transformer原理简介
人工智能·深度学习·transformer
phltxy17 小时前
LangChain_Agent中间件实战
人工智能·python·深度学习·语言模型·中间件·langchain
workflower18 小时前
从幻觉,到现实
人工智能·深度学习·机器学习·设计模式·机器人
伍树明19 小时前
NER 序列标注横向评测:BERT (Linear/CRF) VS 大模型 LoRA 微调 + API 方案实测对比
人工智能·深度学习·bert
盼小辉丶19 小时前
PyTorch强化学习实战(20)——优势演员-评论家(Advantage Actor-Critic, A2C)
pytorch·深度学习·强化学习·优势演员-评论家算法
-拟墨画扇-20 小时前
神经网络 | ⑬ 超参数验证:找到最佳学习超参数
深度学习·神经网络·学习
未知违规用户1 天前
大模型项目:RAG项目实战与FlagEmbedding模型
人工智能·windows·python·深度学习