如何将AI 3D模型生成工具集成到你的开发工作流

news2026/5/18 12:36:50
如何将AI 3D模型生成工具集成到你的开发工作流【免费下载链接】Unique3D[NeurIPS 2024] Unique3D: High-Quality and Efficient 3D Mesh Generation from a Single Image项目地址: https://gitcode.com/gh_mirrors/un/Unique3D在当今快速发展的数字内容创作领域AI 3D模型生成技术正在彻底改变传统的3D建模流程。Unique3D作为一个开源的高质量3D网格生成工具能够在30秒内从单张图像生成带纹理的3D模型为游戏开发、虚拟现实、产品设计和数字艺术提供了强大的创作工具。本文将详细介绍如何将这一革命性的3D模型生成工具无缝集成到你的项目中提供从环境配置到实际应用的全方位指南。为什么选择AI驱动的3D模型生成传统的3D建模流程通常需要数小时甚至数天的时间而AI驱动的3D模型生成技术能够在几分钟内完成同样的工作。这种效率提升对于需要大量3D内容的项目具有革命性意义时间成本降低90%从数小时缩短到30秒技术门槛降低无需专业的3D建模技能迭代速度加快快速原型设计和多方案对比成本效益显著减少人工建模的昂贵投入环境配置与快速上手系统要求与安装步骤Unique3D支持Linux和Windows系统以下是完整的安装流程# 创建Python虚拟环境 conda create -n unique3d python3.11 conda activate unique3d # 安装依赖包 pip install ninja pip install diffusers0.27.2 pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.3.1/index.html pip install -r requirements.txt模型权重文件准备从官方仓库克隆项目并下载必要的权重文件# 克隆项目 git clone https://gitcode.com/gh_mirrors/un/Unique3D cd Unique3D # 创建权重文件目录结构 mkdir -p ckpt将下载的权重文件放置到以下目录结构中Unique3D/ ├── ckpt/ │ ├── controlnet-tile/ │ ├── image2normal/ │ ├── img2mvimg/ │ ├── realesrgan-x4.onnx │ └── v1-inference.yaml └── app/Unique3D生成的多样化3D模型展示涵盖角色、物品和艺术创作核心API集成方法基础生成函数封装Unique3D的核心生成功能位于app/gradio_3dgen.py中我们可以将其封装为易于调用的APIimport torch from PIL import Image from app.custom_models.mvimg_prediction import run_mvprediction from scripts.multiview_inference import geo_reconstruct from scripts.utils import save_glb_and_video class Unique3DGenerator: Unique3D 3D模型生成器 def __init__(self, devicecuda): 初始化生成器 self.device device self._setup_models() def _setup_models(self): 加载必要的模型 # 这里可以添加模型初始化代码 pass def generate_from_image(self, image_path, output_dir./output, remove_backgroundTrue, seed42): 从单张图像生成3D模型 参数: image_path: 输入图像路径 output_dir: 输出目录 remove_background: 是否移除背景 seed: 随机种子 返回: mesh_path: 生成的网格文件路径 video_path: 预览视频路径 # 加载并预处理图像 image Image.open(image_path) # 图像超分辨率处理 if image.size[0] 512: from scripts.refine_lr_to_sr import run_sr_fast image run_sr_fast([image])[0] # 多视图预测 rgb_pils, front_pil run_mvprediction( image, remove_bgremove_background, seedint(seed) ) # 3D几何重建 new_meshes geo_reconstruct( rgb_pils, None, front_pil, do_refineTrue, predict_normalTrue, expansion_weight0.1, init_typestd ) # 保存为GLB格式 mesh_path, video_path save_glb_and_video( output_dir, new_meshes, with_timestampTrue, dist3.5, fov_in_degrees2 / 1.35, cam_typeortho, export_videoTrue ) return mesh_path, video_path批量处理集成对于需要处理大量图像的生产环境我们可以实现批量处理功能import os from concurrent.futures import ThreadPoolExecutor from pathlib import Path class BatchProcessor: 批量3D模型生成处理器 def __init__(self, generator, max_workers4): self.generator generator self.max_workers max_workers def process_directory(self, input_dir, output_dir): 批量处理目录中的所有图像 参数: input_dir: 输入图像目录 output_dir: 输出目录 input_path Path(input_dir) output_path Path(output_dir) output_path.mkdir(exist_okTrue) # 收集所有图像文件 image_extensions {.png, .jpg, .jpeg, .bmp, .tiff} image_files [ f for f in input_path.iterdir() if f.suffix.lower() in image_extensions ] results [] def process_single(image_file): 处理单个图像 try: output_name image_file.stem output_subdir output_path / output_name output_subdir.mkdir(exist_okTrue) mesh_path, video_path self.generator.generate_from_image( str(image_file), output_dirstr(output_subdir) ) return { input: str(image_file), mesh: mesh_path, video: video_path, success: True } except Exception as e: return { input: str(image_file), error: str(e), success: False } # 使用线程池并行处理 with ThreadPoolExecutor(max_workersself.max_workers) as executor: results list(executor.map(process_single, image_files)) # 统计结果 successful sum(1 for r in results if r[success]) print(f批量处理完成: {successful}/{len(results)} 成功) return resultsUnique3D生成的高质量3D角色模型展示AI在超写实建模方面的能力游戏开发集成方案Unity引擎集成将Unique3D生成的3D模型集成到Unity游戏项目中import trimesh import numpy as np class UnityIntegration: Unity引擎集成工具 staticmethod def optimize_for_unity(mesh_path, target_tris10000): 为Unity优化3D模型 参数: mesh_path: 原始网格文件路径 target_tris: 目标三角形数量 返回: 优化后的网格对象 # 加载网格 mesh trimesh.load(mesh_path) # 检查网格质量 if not mesh.is_watertight: print(警告: 网格不是水密的可能影响Unity导入) # 简化网格 if len(mesh.faces) target_tris: simplified mesh.simplify_quadratic_decimation(target_tris) else: simplified mesh # 确保法线正确 if not simplified.is_winding_consistent: simplified.fix_normals() # 生成UV坐标如果不存在 if not simplified.visual.uv is None: # 使用球形投影生成UV simplified.visual.uv trimesh.visual.uv.project_spherical(simplified.vertices) return simplified staticmethod def export_for_unity(mesh, output_path): 导出为Unity兼容格式 参数: mesh: 网格对象 output_path: 输出文件路径 # 导出为FBX格式Unity首选 mesh.export(output_path, file_typefbx) # 创建材质文件 material_config { albedo: texture.png, normal: normal.png, metallic: 0.0, smoothness: 0.5 } return output_pathUnreal Engine集成对于Unreal Engine项目需要不同的优化策略class UnrealIntegration: Unreal Engine集成工具 staticmethod def prepare_for_unreal(mesh_path, lod_count3): 为Unreal Engine准备模型和LOD 参数: mesh_path: 原始网格路径 lod_count: LOD层级数量 返回: LOD网格列表 mesh trimesh.load(mesh_path) lods [] # 生成不同细节级别的LOD base_tris len(mesh.faces) for i in range(lod_count): if i 0: # LOD0: 最高质量 lod_mesh mesh else: # 逐渐简化 reduction_factor 0.5 ** i target_tris int(base_tris * reduction_factor) lod_mesh mesh.simplify_quadratic_decimation(target_tris) # 确保网格质量 lod_mesh.remove_duplicate_faces() lod_mesh.remove_degenerate_faces() lods.append(lod_mesh) return lods staticmethod def create_unreal_asset(mesh, asset_name, output_dir): 创建Unreal Engine资产包 参数: mesh: 网格对象 asset_name: 资产名称 output_dir: 输出目录 import json # 导出网格 mesh_path f{output_dir}/{asset_name}.obj mesh.export(mesh_path) # 创建Unreal导入配置 import_config { asset_name: asset_name, mesh_path: mesh_path, materials: [ { name: fM_{asset_name}, textures: { base_color: fT_{asset_name}_BaseColor, normal: fT_{assetName}_Normal, roughness: fT_{assetName}_Roughness } } ], collision: { generate: True, type: complex }, lod_settings: { generate: True, count: 3 } } # 保存配置 config_path f{output_dir}/{asset_name}_import.json with open(config_path, w) as f: json.dump(import_config, f, indent2) return config_pathWeb应用集成方案Three.js集成在Web应用中使用Three.js加载Unique3D生成的3D模型// threejs-loader.js import * as THREE from three; import { GLTFLoader } from three/examples/jsm/loaders/GLTFLoader.js; import { DRACOLoader } from three/examples/jsm/loaders/DRACOLoader.js; class Unique3DModelLoader { constructor(scene, camera, renderer) { this.scene scene; this.camera camera; this.renderer renderer; this.loader new GLTFLoader(); // 配置DRACO压缩加载器 const dracoLoader new DRACOLoader(); dracoLoader.setDecoderPath(https://www.gstatic.com/draco/versioned/decoders/1.5.6/); this.loader.setDRACOLoader(dracoLoader); } async loadModel(modelUrl, options {}) { return new Promise((resolve, reject) { this.loader.load( modelUrl, (gltf) { const model gltf.scene; // 应用配置选项 if (options.scale) { model.scale.set(options.scale, options.scale, options.scale); } if (options.position) { model.position.set( options.position.x || 0, options.position.y || 0, options.position.z || 0 ); } if (options.rotation) { model.rotation.set( options.rotation.x || 0, options.rotation.y || 0, options.rotation.z || 0 ); } // 添加到场景 this.scene.add(model); // 设置材质 model.traverse((child) { if (child.isMesh) { // 优化材质性能 child.material.side THREE.DoubleSide; child.castShadow true; child.receiveShadow true; } }); resolve({ model: model, animations: gltf.animations, scene: gltf.scene }); }, (xhr) { // 加载进度回调 console.log(${(xhr.loaded / xhr.total * 100)}% loaded); }, (error) { reject(error); } ); }); } createInteractiveControls(model) { // 创建交互控制 const controls { rotationSpeed: 0.01, autoRotate: true, update: function() { if (this.autoRotate) { model.rotation.y this.rotationSpeed; } }, toggleAutoRotate: function() { this.autoRotate !this.autoRotate; }, setRotationSpeed: function(speed) { this.rotationSpeed speed; } }; return controls; } }React组件封装创建可复用的React组件来展示3D模型// Unique3DViewer.jsx import React, { useRef, useEffect, useState } from react; import * as THREE from three; import { OrbitControls } from three/examples/jsm/controls/OrbitControls; import { Unique3DModelLoader } from ./threejs-loader; const Unique3DViewer ({ modelUrl, width 800, height 600, autoRotate true }) { const mountRef useRef(null); const [loading, setLoading] useState(true); const [error, setError] useState(null); useEffect(() { // 初始化Three.js场景 const scene new THREE.Scene(); scene.background new THREE.Color(0xf0f0f0); const camera new THREE.PerspectiveCamera(75, width / height, 0.1, 1000); camera.position.z 5; const renderer new THREE.WebGLRenderer({ antialias: true }); renderer.setSize(width, height); renderer.shadowMap.enabled true; renderer.shadowMap.type THREE.PCFSoftShadowMap; // 添加光源 const ambientLight new THREE.AmbientLight(0xffffff, 0.6); scene.add(ambientLight); const directionalLight new THREE.DirectionalLight(0xffffff, 0.8); directionalLight.position.set(5, 5, 5); directionalLight.castShadow true; scene.add(directionalLight); // 添加轨道控制 const controls new OrbitControls(camera, renderer.domElement); controls.enableDamping true; controls.dampingFactor 0.05; // 加载模型 const loader new Unique3DModelLoader(scene, camera, renderer); if (modelUrl) { setLoading(true); loader.loadModel(modelUrl, { scale: 1.0, position: { x: 0, y: -1, z: 0 } }) .then(() { setLoading(false); }) .catch(err { setError(err.message); setLoading(false); }); } // 动画循环 const animate () { requestAnimationFrame(animate); controls.update(); renderer.render(scene, camera); }; animate(); // 添加到DOM if (mountRef.current) { mountRef.current.appendChild(renderer.domElement); } // 清理函数 return () { if (mountRef.current mountRef.current.contains(renderer.domElement)) { mountRef.current.removeChild(renderer.domElement); } renderer.dispose(); }; }, [modelUrl, width, height]); return ( div style{{ position: relative, width, height }} div ref{mountRef} style{{ width: 100%, height: 100% }} / {loading ( div style{{ position: absolute, top: 50%, left: 50%, transform: translate(-50%, -50%), color: #333, fontSize: 16px }} 加载3D模型中... /div )} {error ( div style{{ position: absolute, top: 50%, left: 50%, transform: translate(-50%, -50%), color: red, fontSize: 16px }} 加载失败: {error} /div )} /div ); }; export default Unique3DViewer;Unique3D生成的卡通风格3D模型适合游戏和动画应用性能优化与最佳实践内存管理优化AI 3D模型生成对内存要求较高以下优化策略可以显著提升性能import gc import torch class OptimizedGenerator: 优化内存使用的3D模型生成器 def __init__(self): self.device torch.device(cuda if torch.cuda.is_available() else cpu) def generate_with_memory_optimization(self, image_path): 使用内存优化的生成流程 # 清理GPU内存 torch.cuda.empty_cache() gc.collect() try: # 使用较小的批次大小 with torch.no_grad(): # 分阶段处理及时释放中间结果 mesh_path, video_path self._generate_stage_by_stage(image_path) return mesh_path, video_path finally: # 确保清理内存 torch.cuda.empty_cache() gc.collect() def _generate_stage_by_stage(self, image_path): 分阶段生成减少内存峰值使用 from app.custom_models.mvimg_prediction import run_mvprediction from scripts.multiview_inference import geo_reconstruct from scripts.utils import save_glb_and_video # 阶段1: 图像预处理 image Image.open(image_path) if image.size[0] 512: from scripts.refine_lr_to_sr import run_sr_fast image run_sr_fast([image])[0] # 及时清理 del image torch.cuda.empty_cache() # 阶段2: 多视图预测 rgb_pils, front_pil run_mvprediction( image, remove_bgTrue, seed42 ) # 阶段3: 几何重建 new_meshes geo_reconstruct( rgb_pils, None, front_pil, do_refineTrue, predict_normalTrue, expansion_weight0.1, init_typestd ) # 阶段4: 保存结果 mesh_path, video_path save_glb_and_video( ./output, new_meshes, with_timestampTrue, export_videoTrue ) return mesh_path, video_path缓存机制实现对于重复使用的模型实现缓存系统可以大幅提升效率import hashlib import json import pickle from pathlib import Path from datetime import datetime, timedelta class ModelCache: 3D模型缓存系统 def __init__(self, cache_dir.model_cache, max_age_days7): self.cache_dir Path(cache_dir) self.cache_dir.mkdir(exist_okTrue) self.max_age timedelta(daysmax_age_days) # 创建子目录 (self.cache_dir / meshes).mkdir(exist_okTrue) (self.cache_dir / videos).mkdir(exist_okTrue) (self.cache_dir / metadata).mkdir(exist_okTrue) def _generate_cache_key(self, image_path, params): 生成唯一的缓存键 # 基于图像内容和参数生成哈希 with open(image_path, rb) as f: image_hash hashlib.md5(f.read()).hexdigest() params_str json.dumps(params, sort_keysTrue) params_hash hashlib.md5(params_str.encode()).hexdigest() return f{image_hash}_{params_hash} def get_cached_model(self, image_path, params): 获取缓存的模型 cache_key self._generate_cache_key(image_path, params) metadata_file self.cache_dir / metadata / f{cache_key}.json if not metadata_file.exists(): return None # 检查缓存是否过期 with open(metadata_file, r) as f: metadata json.load(f) cache_time datetime.fromisoformat(metadata[timestamp]) if datetime.now() - cache_time self.max_age: # 缓存过期删除 self._delete_cache(cache_key) return None return { mesh: self.cache_dir / meshes / f{cache_key}.glb, video: self.cache_dir / videos / f{cache_key}.mp4, metadata: metadata } def cache_model(self, image_path, params, mesh_path, video_path): 缓存生成的模型 cache_key self._generate_cache_key(image_path, params) # 复制文件到缓存目录 import shutil cached_mesh self.cache_dir / meshes / f{cache_key}.glb cached_video self.cache_dir / videos / f{cache_key}.mp4 shutil.copy(mesh_path, cached_mesh) if video_path: shutil.copy(video_path, cached_video) # 保存元数据 metadata { timestamp: datetime.now().isoformat(), image_path: str(image_path), params: params, mesh_size: cached_mesh.stat().st_size, video_size: cached_video.stat().st_size if video_path else 0 } metadata_file self.cache_dir / metadata / f{cache_key}.json with open(metadata_file, w) as f: json.dump(metadata, f, indent2) return { mesh: cached_mesh, video: cached_video, key: cache_key } def _delete_cache(self, cache_key): 删除缓存 files_to_delete [ self.cache_dir / meshes / f{cache_key}.glb, self.cache_dir / videos / f{cache_key}.mp4, self.cache_dir / metadata / f{cache_key}.json ] for file_path in files_to_delete: if file_path.exists(): file_path.unlink() def cleanup_old_cache(self): 清理过期缓存 metadata_dir self.cache_dir / metadata for metadata_file in metadata_dir.glob(*.json): try: with open(metadata_file, r) as f: metadata json.load(f) cache_time datetime.fromisoformat(metadata[timestamp]) if datetime.now() - cache_time self.max_age: cache_key metadata_file.stem self._delete_cache(cache_key) except: continue故障排除与性能调优常见问题解决方案问题可能原因解决方案模型质量不佳输入图像分辨率低使用高分辨率图像建议1024x1024以上生成速度慢GPU内存不足降低批次大小使用torch.cuda.empty_cache()内存不足错误图像尺寸过大调整图像大小到1024x1024以内生成结果不稳定随机种子未设置固定随机种子确保可重复性背景未正确移除图像背景复杂使用remove_backgroundTrue参数参数调优指南Unique3D提供了多个可调参数来优化生成结果# 优化参数配置示例 optimized_params { expansion_weight: 0.1, # 控制模型膨胀程度范围0.05-0.2 init_type: std, # 网格初始化类型std或thin do_refine: True, # 是否进行多视图细节优化 predict_normal: True, # 是否预测法线贴图 seed: 42, # 固定随机种子确保可重复性 remove_background: True # 是否移除背景 } # 根据应用场景调整参数 game_assets_params { expansion_weight: 0.08, # 游戏资产需要更紧凑的模型 init_type: std, do_refine: True } arch_viz_params { expansion_weight: 0.15, # 建筑可视化需要更多细节 init_type: thin, do_refine: True }性能监控与日志实现性能监控系统来跟踪生成过程import time import psutil import logging from functools import wraps def monitor_performance(func): 性能监控装饰器 wraps(func) def wrapper(*args, **kwargs): start_time time.time() start_memory psutil.Process().memory_info().rss / 1024 / 1024 # MB result func(*args, **kwargs) end_time time.time() end_memory psutil.Process().memory_info().rss / 1024 / 1024 gpu_memory torch.cuda.memory_allocated() / 1024 / 1024 if torch.cuda.is_available() else 0 logging.info( fFunction {func.__name__} executed in {end_time - start_time:.2f}s, fMemory usage: {end_memory - start_memory:.2f}MB, fGPU memory: {gpu_memory:.2f}MB ) return result return wrapper # 使用示例 monitor_performance def generate_3d_model_optimized(image_path, params): 带性能监控的3D模型生成 # 生成逻辑... pass实际应用案例电商产品3D展示系统class Ecommerce3DShowcase: 电商产品3D展示系统 def __init__(self, generator, cache_dir./cache): self.generator generator self.cache ModelCache(cache_dir) def create_product_showcase(self, product_images, output_dir./showcase): 为电商产品创建3D展示 参数: product_images: 产品图像路径列表 output_dir: 输出目录 import os from pathlib import Path output_path Path(output_dir) output_path.mkdir(exist_okTrue) showcases [] for idx, img_path in enumerate(product_images): print(f处理产品 {idx1}/{len(product_images)}: {img_path}) # 检查缓存 params {remove_background: True, seed: 42} cached self.cache.get_cached_model(img_path, params) if cached: print(f使用缓存模型: {cached[mesh]}) mesh_path cached[mesh] video_path cached[video] else: # 生成新模型 mesh_path, video_path self.generator.generate_from_image( img_path, output_dirstr(output_path / fproduct_{idx}), **params ) # 缓存结果 self.cache.cache_model(img_path, params, mesh_path, video_path) # 创建展示页面 showcase_html self._create_showcase_html( img_path, mesh_path, video_path, output_path / fproduct_{idx}_showcase.html ) showcases.append({ product_id: idx, original_image: img_path, 3d_model: mesh_path, preview_video: video_path, showcase_html: showcase_html }) return showcases def _create_showcase_html(self, image_path, model_path, video_path, output_html): 创建3D展示HTML页面 html_template !DOCTYPE html html head title3D Product Showcase/title script srchttps://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js/script script srchttps://cdn.jsdelivr.net/npm/three0.128.0/examples/js/loaders/GLTFLoader.js/script style body { margin: 0; overflow: hidden; } #container { width: 100vw; height: 100vh; } #controls { position: absolute; top: 20px; left: 20px; background: white; padding: 10px; border-radius: 5px; } /style /head body div idcontainer/div div idcontrols button onclicktoggleRotation()Toggle Auto-Rotate/button button onclickresetView()Reset View/button /div script // Three.js初始化代码... // 这里可以添加模型加载和交互逻辑 /script /body /html with open(output_html, w) as f: f.write(html_template) return output_html游戏资产批量生成流水线class GameAssetPipeline: 游戏资产批量生成流水线 def __init__(self, generator, unity_integration): self.generator generator self.unity_integration unity_integration def process_character_concepts(self, concepts, output_base_dir): 批量处理角色概念图 参数: concepts: 角色概念图列表每个包含名称和图像路径 output_base_dir: 输出基础目录 import os from pathlib import Path output_dir Path(output_base_dir) output_dir.mkdir(exist_okTrue) assets [] for concept in concepts: print(f处理角色: {concept[name]}) # 创建角色目录 char_dir output_dir / concept[name] char_dir.mkdir(exist_okTrue) # 生成基础3D模型 mesh_path, video_path self.generator.generate_from_image( concept[image_path], output_dirstr(char_dir / raw), remove_backgroundTrue, seedhash(concept[name]) % 1000 # 基于名称的确定性种子 ) # 为Unity优化 optimized_mesh self.unity_integration.optimize_for_unity( mesh_path, target_trisconcept.get(target_tris, 10000) ) # 导出Unity资产 unity_asset self.unity_integration.export_for_unity( optimized_mesh, str(char_dir / f{concept[name]}.fbx) ) # 收集资产信息 assets.append({ name: concept[name], raw_model: mesh_path, unity_asset: unity_asset, preview: video_path, metadata: { triangle_count: len(optimized_mesh.faces), vertex_count: len(optimized_mesh.vertices), generation_time: time.time() } }) print(f完成角色: {concept[name]}, 三角形数: {len(optimized_mesh.faces)}) # 生成资产清单 self._generate_asset_manifest(assets, output_dir / manifest.json) return assets def _generate_asset_manifest(self, assets, manifest_path): 生成资产清单文件 import json manifest { generated_at: time.strftime(%Y-%m-%d %H:%M:%S), total_assets: len(assets), assets: assets } with open(manifest_path, w) as f: json.dump(manifest, f, indent2, defaultstr) return manifest_path总结与下一步行动通过本文的详细介绍你已经了解了如何将Unique3D这一强大的AI 3D模型生成工具集成到各种项目中。从基础的环境配置到高级的API集成再到实际的应用案例Unique3D为3D内容创作提供了全新的可能性。关键收获高效集成Unique3D提供了清晰的Python API可以轻松集成到现有工作流中多格式支持生成的3D模型支持GLB、OBJ等标准格式便于在各种3D软件中使用性能优化通过缓存、内存管理和参数调优可以在生产环境中稳定运行广泛适用适用于游戏开发、电商展示、虚拟现实等多个领域推荐下一步行动开始实验从简单的单图像生成开始熟悉工具的基本功能集成测试将Unique3D集成到你的项目中测试实际效果性能调优根据你的硬件配置调整参数以获得最佳性能探索高级功能尝试使用mesh_reconstruction/中的高级网格处理功能资源获取项目代码git clone https://gitcode.com/gh_mirrors/un/Unique3D权重文件按照安装指南从官方渠道下载示例代码参考本文提供的集成示例通过合理利用Unique3D的强大功能你可以显著提升3D内容的生产效率为你的项目带来独特的竞争优势。立即开始集成Unique3D探索AI驱动的3D内容创作新可能【免费下载链接】Unique3D[NeurIPS 2024] Unique3D: High-Quality and Efficient 3D Mesh Generation from a Single Image项目地址: https://gitcode.com/gh_mirrors/un/Unique3D创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2621642.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

SpringBoot-17-MyBatis动态SQL标签之常用标签

文章目录 1 代码1.1 实体User.java1.2 接口UserMapper.java1.3 映射UserMapper.xml1.3.1 标签if1.3.2 标签if和where1.3.3 标签choose和when和otherwise1.4 UserController.java2 常用动态SQL标签2.1 标签set2.1.1 UserMapper.java2.1.2 UserMapper.xml2.1.3 UserController.ja…

wordpress后台更新后 前端没变化的解决方法

使用siteground主机的wordpress网站,会出现更新了网站内容和修改了php模板文件、js文件、css文件、图片文件后,网站没有变化的情况。 不熟悉siteground主机的新手,遇到这个问题,就很抓狂,明明是哪都没操作错误&#x…

网络编程(Modbus进阶)

思维导图 Modbus RTU(先学一点理论) 概念 Modbus RTU 是工业自动化领域 最广泛应用的串行通信协议,由 Modicon 公司(现施耐德电气)于 1979 年推出。它以 高效率、强健性、易实现的特点成为工业控制系统的通信标准。 包…

UE5 学习系列(二)用户操作界面及介绍

这篇博客是 UE5 学习系列博客的第二篇,在第一篇的基础上展开这篇内容。博客参考的 B 站视频资料和第一篇的链接如下: 【Note】:如果你已经完成安装等操作,可以只执行第一篇博客中 2. 新建一个空白游戏项目 章节操作,重…

IDEA运行Tomcat出现乱码问题解决汇总

最近正值期末周,有很多同学在写期末Java web作业时,运行tomcat出现乱码问题,经过多次解决与研究,我做了如下整理: 原因: IDEA本身编码与tomcat的编码与Windows编码不同导致,Windows 系统控制台…

利用最小二乘法找圆心和半径

#include <iostream> #include <vector> #include <cmath> #include <Eigen/Dense> // 需安装Eigen库用于矩阵运算 // 定义点结构 struct Point { double x, y; Point(double x_, double y_) : x(x_), y(y_) {} }; // 最小二乘法求圆心和半径 …

使用docker在3台服务器上搭建基于redis 6.x的一主两从三台均是哨兵模式

一、环境及版本说明 如果服务器已经安装了docker,则忽略此步骤,如果没有安装,则可以按照一下方式安装: 1. 在线安装(有互联网环境): 请看我这篇文章 传送阵>> 点我查看 2. 离线安装(内网环境):请看我这篇文章 传送阵>> 点我查看 说明&#xff1a;假设每台服务器已…

XML Group端口详解

在XML数据映射过程中&#xff0c;经常需要对数据进行分组聚合操作。例如&#xff0c;当处理包含多个物料明细的XML文件时&#xff0c;可能需要将相同物料号的明细归为一组&#xff0c;或对相同物料号的数量进行求和计算。传统实现方式通常需要编写脚本代码&#xff0c;增加了开…

LBE-LEX系列工业语音播放器|预警播报器|喇叭蜂鸣器的上位机配置操作说明

LBE-LEX系列工业语音播放器|预警播报器|喇叭蜂鸣器专为工业环境精心打造&#xff0c;完美适配AGV和无人叉车。同时&#xff0c;集成以太网与语音合成技术&#xff0c;为各类高级系统&#xff08;如MES、调度系统、库位管理、立库等&#xff09;提供高效便捷的语音交互体验。 L…

(LeetCode 每日一题) 3442. 奇偶频次间的最大差值 I (哈希、字符串)

题目&#xff1a;3442. 奇偶频次间的最大差值 I 思路 &#xff1a;哈希&#xff0c;时间复杂度0(n)。 用哈希表来记录每个字符串中字符的分布情况&#xff0c;哈希表这里用数组即可实现。 C版本&#xff1a; class Solution { public:int maxDifference(string s) {int a[26]…

【大模型RAG】拍照搜题技术架构速览:三层管道、两级检索、兜底大模型

摘要 拍照搜题系统采用“三层管道&#xff08;多模态 OCR → 语义检索 → 答案渲染&#xff09;、两级检索&#xff08;倒排 BM25 向量 HNSW&#xff09;并以大语言模型兜底”的整体框架&#xff1a; 多模态 OCR 层 将题目图片经过超分、去噪、倾斜校正后&#xff0c;分别用…

【Axure高保真原型】引导弹窗

今天和大家中分享引导弹窗的原型模板&#xff0c;载入页面后&#xff0c;会显示引导弹窗&#xff0c;适用于引导用户使用页面&#xff0c;点击完成后&#xff0c;会显示下一个引导弹窗&#xff0c;直至最后一个引导弹窗完成后进入首页。具体效果可以点击下方视频观看或打开下方…

接口测试中缓存处理策略

在接口测试中&#xff0c;缓存处理策略是一个关键环节&#xff0c;直接影响测试结果的准确性和可靠性。合理的缓存处理策略能够确保测试环境的一致性&#xff0c;避免因缓存数据导致的测试偏差。以下是接口测试中常见的缓存处理策略及其详细说明&#xff1a; 一、缓存处理的核…

龙虎榜——20250610

上证指数放量收阴线&#xff0c;个股多数下跌&#xff0c;盘中受消息影响大幅波动。 深证指数放量收阴线形成顶分型&#xff0c;指数短线有调整的需求&#xff0c;大概需要一两天。 2025年6月10日龙虎榜行业方向分析 1. 金融科技 代表标的&#xff1a;御银股份、雄帝科技 驱动…

观成科技:隐蔽隧道工具Ligolo-ng加密流量分析

1.工具介绍 Ligolo-ng是一款由go编写的高效隧道工具&#xff0c;该工具基于TUN接口实现其功能&#xff0c;利用反向TCP/TLS连接建立一条隐蔽的通信信道&#xff0c;支持使用Let’s Encrypt自动生成证书。Ligolo-ng的通信隐蔽性体现在其支持多种连接方式&#xff0c;适应复杂网…

铭豹扩展坞 USB转网口 突然无法识别解决方法

当 USB 转网口扩展坞在一台笔记本上无法识别,但在其他电脑上正常工作时,问题通常出在笔记本自身或其与扩展坞的兼容性上。以下是系统化的定位思路和排查步骤,帮助你快速找到故障原因: 背景: 一个M-pard(铭豹)扩展坞的网卡突然无法识别了,扩展出来的三个USB接口正常。…

未来机器人的大脑:如何用神经网络模拟器实现更智能的决策?

编辑&#xff1a;陈萍萍的公主一点人工一点智能 未来机器人的大脑&#xff1a;如何用神经网络模拟器实现更智能的决策&#xff1f;RWM通过双自回归机制有效解决了复合误差、部分可观测性和随机动力学等关键挑战&#xff0c;在不依赖领域特定归纳偏见的条件下实现了卓越的预测准…

Linux应用开发之网络套接字编程(实例篇)

服务端与客户端单连接 服务端代码 #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <arpa/inet.h> #include <pthread.h> …

华为云AI开发平台ModelArts

华为云ModelArts&#xff1a;重塑AI开发流程的“智能引擎”与“创新加速器”&#xff01; 在人工智能浪潮席卷全球的2025年&#xff0c;企业拥抱AI的意愿空前高涨&#xff0c;但技术门槛高、流程复杂、资源投入巨大的现实&#xff0c;却让许多创新构想止步于实验室。数据科学家…

深度学习在微纳光子学中的应用

深度学习在微纳光子学中的主要应用方向 深度学习与微纳光子学的结合主要集中在以下几个方向&#xff1a; 逆向设计 通过神经网络快速预测微纳结构的光学响应&#xff0c;替代传统耗时的数值模拟方法。例如设计超表面、光子晶体等结构。 特征提取与优化 从复杂的光学数据中自…