<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>星球一号学习网</title><link>https://www.xq001.info/</link><description>学习资料一站式分享</description><item><title>在当前ai发展的大趋势下，个体经济有哪些机会</title><link>https://www.xq001.info/?id=19</link><description>&lt;div data-v-010c3103=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;markdown-container&quot;&gt;&lt;div data-v-53cd9be5=&quot;&quot; data-v-010c3103=&quot;&quot; class=&quot;markdown&quot;&gt;&lt;div class=&quot;paragraph&quot;&gt;在当前AI快速发展的大趋势下，个体经济迎来了诸多新的发展机遇，以下是一些具体的机会领域：&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;1. &lt;strong class=&quot;&quot;&gt;内容创作与数字营销&lt;/strong&gt;&lt;/h3&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;AI辅助内容创作&lt;/strong&gt;：AI工具可以帮助个体创作者快速生成高质量的文字、图像和视频内容。例如，AI可以自动生成文案、设计海报、剪辑视频，大大降低了创作门槛和成本&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;0,1&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;个性化营销&lt;/strong&gt;：借助AI的大数据分析，个体经济者能够更精准地把握市场需求和消费者喜好，实现个性化的产品推荐和精准营销&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;2&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 class=&quot;&quot;&gt;2. &lt;strong class=&quot;&quot;&gt;电商与新零售&lt;/strong&gt;&lt;/h3&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;智能选品与运营&lt;/strong&gt;：AI可以帮助个体电商从业者分析市场趋势，选择更有潜力的商品进行销售，同时降低运营成本&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;3&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;虚拟试衣与智能客服&lt;/strong&gt;：AI技术提供的虚拟试衣间、智能客服等功能，能够提升消费者购物体验，为个体电商创造差异化竞争优势&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;4&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 class=&quot;&quot;&gt;3. &lt;strong class=&quot;&quot;&gt;专业服务与知识付费&lt;/strong&gt;&lt;/h3&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;超级个体崛起&lt;/strong&gt;：AI技术降低了专业服务的门槛，使得个体从业者能够以更低的成本提供高附加值的服务。例如，设计师、程序员、咨询师等可以通过AI工具提升工作效率，更好地满足客户个性化需求&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;5,6&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;知识付费与在线教育&lt;/strong&gt;：AI可以为个体教育从业者提供个性化的教学方案，帮助其打造更具吸引力的在线课程&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;7&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 class=&quot;&quot;&gt;4. &lt;strong class=&quot;&quot;&gt;智能家居与生活服务&lt;/strong&gt;&lt;/h3&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;智能家居产品&lt;/strong&gt;：随着AI技术的发展，智能家居产品如智能门锁、自动清洁设备等市场需求不断增长。个体从业者可以专注于这些产品的销售与安装服务&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;8&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;生活服务优化&lt;/strong&gt;：AI可以帮助个体从业者优化服务流程，提升服务质量和效率，例如通过AI预约系统、智能客服等提升用户体验&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;9&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 class=&quot;&quot;&gt;5. &lt;strong class=&quot;&quot;&gt;创意设计与艺术&lt;/strong&gt;&lt;/h3&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;AI辅助设计&lt;/strong&gt;：AI工具可以帮助个体设计师快速生成创意设计，从平面设计到3D建模，大大提高了设计效率&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;10&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;数字艺术创作&lt;/strong&gt;：AI生成艺术作品成为新的趋势，个体艺术家可以利用AI技术创作独特的数字艺术作品，并通过在线平台进行销售&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;11&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 class=&quot;&quot;&gt;6. &lt;strong class=&quot;&quot;&gt;跨境电商与出海&lt;/strong&gt;&lt;/h3&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;AI助力出海&lt;/strong&gt;：AI可以帮助个体经济者优化跨境电商的运营，包括产品推荐、市场分析、语言翻译等。通过AI技术，个体从业者可以更好地适应不同国家和地区的市场需求&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;12&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;内容出海&lt;/strong&gt;：个体创作者可以利用AI生成的内容，结合社交媒体平台，将创意内容推向国际市场&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;13&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 class=&quot;&quot;&gt;7. &lt;strong class=&quot;&quot;&gt;健康与养生&lt;/strong&gt;&lt;/h3&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;AI健康管理&lt;/strong&gt;：个体从业者可以利用AI技术开发健康管理应用，提供个性化的健康建议和养生方案&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;14&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;心理健康服务&lt;/strong&gt;：AI辅助的心理咨询工具可以帮助个体从业者提供更高效的心理健康服务&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;15&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 class=&quot;&quot;&gt;8. &lt;strong class=&quot;&quot;&gt;新兴技术应用&lt;/strong&gt;&lt;/h3&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;AI工具开发与分发&lt;/strong&gt;：对于有一定技术能力的个体从业者，可以专注于开发AI工具或应用，并通过在线平台进行分发&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;16&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;AI代理与服务&lt;/strong&gt;：个体从业者可以成为AI技术的代理商或服务商，为企业或个人提供AI解决方案的咨询和实施服务&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;17&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 class=&quot;&quot;&gt;9. &lt;strong class=&quot;&quot;&gt;轻创业与个人品牌&lt;/strong&gt;&lt;/h3&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;轻资产创业&lt;/strong&gt;：AI技术使得个体从业者可以以更低的成本开展创业项目，例如通过AI工具实现自动化运营&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;18&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;个人品牌建设&lt;/strong&gt;：借助AI生成的内容和社交媒体平台，个体从业者可以更高效地打造个人品牌，吸引客户和粉丝&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;19&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;paragraph&quot;&gt;总体来看，AI技术为个体经济带来了前所未有的机遇，降低了创业门槛，提升了生产效率，并创造了更多个性化和创新性的服务模式。个体从业者需要积极拥抱AI技术，不断提升自身能力，以在新的经济环境中脱颖而出&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;20,21&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 30 Jan 2025 19:15:27 +0800</pubDate></item><item><title>Dify 的 Agent 能力有哪些应用案例？</title><link>https://www.xq001.info/?id=18</link><description>&lt;div data-v-010c3103=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;markdown-container&quot;&gt;&lt;div data-v-53cd9be5=&quot;&quot; data-v-010c3103=&quot;&quot; class=&quot;markdown&quot;&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 的 Agent 能力在多个应用场景中展现了强大的功能和灵活性，以下是一些具体的应用案例和功能特点：&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;&lt;strong&gt;1. 智能客服系统&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 的 Agent 可以作为智能客服机器人，理解用户的问题并调用相关工具来提供答案。例如，在客服场景中，Agent 可以通过 RAG 技术从公司内部数据库中检索相关政策或解决方案，从而提供准确且个性化的回答&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;0&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;&lt;strong class=&quot;&quot;&gt;2. 旅行规划助手&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 的 Agent 可以作为旅行规划助手，使用 &lt;code data-v-d3e67ab0=&quot;&quot; data-v-010c3103=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;wikipedia_search&lt;/code&gt; 工具收集用户旅行目的地的相关信息，并根据用户需求提供酒店推荐、景点介绍等服务&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;1&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。例如，用户可以询问“巴黎的最佳旅游景点是什么？”Agent 会调用相关工具，收集信息并生成详细的回答&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;2&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;&lt;strong class=&quot;&quot;&gt;3. 搜索引擎集成&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 的 Agent 可以集成搜索引擎工具（如 DuckDuckGo API），在用户提出问题时自动调用搜索工具获取最新信息。例如，用户询问“最近的科技新闻有哪些？”Agent 会调用搜索引擎，获取相关网页内容，并整合后提供给用户&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag highlight&quot; data-index=&quot;3&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;&lt;strong class=&quot;&quot;&gt;4. 多 Agent 协作&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 支持多 Agent 协作，多个 Agent 可以在“群聊”中协作解决问题。例如，在查询股票信息并给出投资建议时，一个 Agent 负责获取股价信息，另一个 Agent 负责分析和提供建议，用户可以与多个 Agent 交互&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;4&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;&lt;strong class=&quot;&quot;&gt;5. 文本生成与创意写作&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 的 Agent 可以用于各种文本生成任务，如撰写故事、新闻报道、文案、诗歌等。用户可以指定主题和风格，Agent 会根据提示生成高质量的文本&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;5&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;&lt;strong class=&quot;&quot;&gt;6. 知识库问答&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 的 Agent 可以结合 RAG 技术，从企业内部知识库中检索信息，回答员工的查询。例如，员工可以询问“公司的远程办公政策是什么？”Agent 会从知识库中检索相关信息并提供准确回答&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;6&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;&lt;strong&gt;7. 代码辅助&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 的 Agent 可以集成代码生成工具，帮助开发者快速实现特定功能。例如，用户可以询问“使用 Python 实现一个快速排序算法”，Agent 会生成相应的代码&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;7&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;&lt;strong class=&quot;&quot;&gt;8. 自定义工具集成&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 支持开发者自定义工具的集成，通过 OpenAPI 或 OpenAI Plugin 规范文件导入外部工具。例如，开发者可以将企业内部的工具或 API 集成到 Dify 中，扩展 Agent 的功能&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;8&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;&lt;strong class=&quot;&quot;&gt;9. 设计与创意生成&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 的 Agent 可以调用外部工具（如 DALL·E 和 Vectorizer.AI）来完成设计任务。例如，用户可以要求 Agent 设计一个 Logo，Agent 会通过多轮问答了解用户需求，调用 DALL·E 生成设计，并通过 Vectorizer.AI 转换为矢量图&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;9&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;h3 class=&quot;&quot;&gt;&lt;strong class=&quot;&quot;&gt;10. 企业级应用&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;paragraph&quot;&gt;Dify 的 Agent 可以用于企业级应用，如智能助手、自动化工作流等。开发者可以根据企业需求配置 Agent 的参数和工具，实现高效的业务自动化&lt;span data-v-a5beafc8=&quot;&quot; data-v-b341a789=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;10&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;。&lt;/div&gt;&lt;div class=&quot;paragraph&quot;&gt;通过这些应用案例，可以看出 Dify 的 Agent 能力不仅支持多种复杂任务，还可以通过自定义工具和 RAG 技术实现高度的灵活性和个性化。&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 22 Jan 2025 21:02:47 +0800</pubDate></item><item><title>Stable Diffusion的安装和使用</title><link>https://www.xq001.info/?id=17</link><description>&lt;div data-v-191eb8d1=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;markdown-container&quot;&gt;&lt;div data-v-53cd9be5=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;markdown&quot;&gt;&lt;h3 class=&quot;&quot;&gt;Stable Diffusion 的安装和使用&lt;/h3&gt;&lt;h4 class=&quot;&quot;&gt;1. 安装 Stable Diffusion&lt;/h4&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;Stable Diffusion&lt;/strong&gt; 的安装可以分为手动安装和使用一键安装包两种方式。以下是详细的步骤：&lt;/div&gt;&lt;h5 class=&quot;&quot;&gt;1.1 手动安装&lt;/h5&gt;&lt;ol start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;安装 Python 和 Git&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;Python&lt;/strong&gt;：安装 Python 3.10.6 版本。确保在安装过程中勾选“Add Python 3.10 to PATH”选项。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;0&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code&quot;&gt;&lt;header data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-header&quot;&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-lang&quot;&gt;bash&lt;/span&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-copy&quot;&gt;复制&lt;/span&gt;&lt;/header&gt;&lt;div data-v-ff2fa631=&quot;&quot; data-v-f1fd9079=&quot;&quot; class=&quot;syntax-highlighter light segment-code-content&quot;&gt;&lt;pre data-v-ff2fa631=&quot;&quot; class=&quot;language-bash&quot;&gt;https://www.python.org/downloads/&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;Git&lt;/strong&gt;：安装 Git。下载并安装 64-bit Git for Windows。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;1&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;div data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code&quot;&gt;&lt;header data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-header&quot;&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-lang&quot;&gt;bash&lt;/span&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-copy&quot;&gt;复制&lt;/span&gt;&lt;/header&gt;&lt;div data-v-ff2fa631=&quot;&quot; data-v-f1fd9079=&quot;&quot; class=&quot;syntax-highlighter light segment-code-content&quot;&gt;&lt;pre data-v-ff2fa631=&quot;&quot; class=&quot;language-bash&quot;&gt;https://git-scm.com/download&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;克隆 Stable Diffusion WebUI 仓库&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;打开命令行工具（CMD 或 PowerShell），输入以下命令克隆仓库：&lt;/div&gt;&lt;div data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code&quot;&gt;&lt;header data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-header&quot;&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-lang&quot;&gt;bash&lt;/span&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-copy&quot;&gt;复制&lt;/span&gt;&lt;/header&gt;&lt;div data-v-ff2fa631=&quot;&quot; data-v-f1fd9079=&quot;&quot; class=&quot;syntax-highlighter light segment-code-content&quot;&gt;&lt;pre data-v-ff2fa631=&quot;&quot; class=&quot;language-bash&quot;&gt;git&amp;nbsp;clone&amp;nbsp;https://github.com/AUTOMATIC1111/stable-diffusion-webui.gitcd&amp;nbsp;stable-diffusion-webui&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;安装依赖项&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;运行以下命令安装必要的依赖项：&lt;/div&gt;&lt;div data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code&quot;&gt;&lt;header data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-header&quot;&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-lang&quot;&gt;bash&lt;/span&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-copy&quot;&gt;复制&lt;/span&gt;&lt;/header&gt;&lt;div data-v-ff2fa631=&quot;&quot; data-v-f1fd9079=&quot;&quot; class=&quot;syntax-highlighter light segment-code-content&quot;&gt;&lt;pre data-v-ff2fa631=&quot;&quot; class=&quot;language-bash&quot;&gt;pip&amp;nbsp;install&amp;nbsp;-r&amp;nbsp;requirements_versions.txt&amp;nbsp;-i&amp;nbsp;https://pypi.tuna.tsinghua.edu.cn/simple
pip&amp;nbsp;install&amp;nbsp;-r&amp;nbsp;requirements.txt&amp;nbsp;-i&amp;nbsp;https://pypi.tuna.tsinghua.edu.cn/simple&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;下载预训练模型&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;从 Hugging Face 下载预训练模型 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;v1-5-pruned-emaonly.safetensors&lt;/code&gt;，并将其放置到 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;models/Stable-diffusion&lt;/code&gt; 文件夹中。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;2&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;启动 Stable Diffusion WebUI&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;运行以下命令启动 WebUI：&lt;/div&gt;&lt;div data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code&quot;&gt;&lt;header data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-header&quot;&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-lang&quot;&gt;bash&lt;/span&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-copy&quot;&gt;复制&lt;/span&gt;&lt;/header&gt;&lt;div data-v-ff2fa631=&quot;&quot; data-v-f1fd9079=&quot;&quot; class=&quot;syntax-highlighter light segment-code-content&quot;&gt;&lt;pre data-v-ff2fa631=&quot;&quot; class=&quot;language-bash&quot;&gt;python&amp;nbsp;webui.py&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;打开浏览器，访问 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;http://127.0.0.1:7860&lt;/code&gt;，即可进入 Stable Diffusion WebUI 界面。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;3&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;h5 class=&quot;&quot;&gt;1.2 使用一键安装包&lt;/h5&gt;&lt;ol start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;下载整合包&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;下载秋葉 aaaki 的整合包。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;4&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;下载链接：&lt;a data-v-191eb8d1=&quot;&quot; target=&quot;_blank&quot; href=&quot;https://pan.quark.cn/s/bb737f349f4c&quot; rel=&quot;noreferrer nofollow noopener&quot; class=&quot;&quot;&gt;秋葉 aaaki 整合包&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;安装依赖&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;解压下载的整合包，放置在硬盘空间充足的磁盘内，路径最好不要带中文路径的文件夹。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;运行 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;启动器运行依赖-dotnet-6.0.11.exe&lt;/code&gt; 进行安装。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;启动 Stable Diffusion WebUI&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;进入 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;sd-webui-aki-v4.2&lt;/code&gt; 文件夹，点击 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;A启动器&lt;/code&gt;，然后点击一键启动，等待程序自动加载必要的启动项，即可进入 Stable Diffusion WebUI 界面。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;5&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;h4 class=&quot;&quot;&gt;2. 使用 Stable Diffusion&lt;/h4&gt;&lt;ol start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;选择模型&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;在 WebUI 界面左上角，可以选择你所安装的模型。推荐使用 C 站（Civitai）下载模型：&lt;a data-v-191eb8d1=&quot;&quot; target=&quot;_blank&quot; href=&quot;https://civitai.com/&quot; rel=&quot;noreferrer nofollow noopener&quot; class=&quot;&quot;&gt;Civitai 官网&lt;/a&gt;。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;6&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;输入提示词&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;在输入框中输入你的文字描述，例如：&lt;/div&gt;&lt;p&gt;&lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;portrait of beautiful girl, brown hair, freckles, tshirt, professional lighting, indoor, artistic photography&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;调整参数&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;调整图像的细节参数，如分辨率和风格。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;生成图像&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;点击 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;Generate&lt;/code&gt; 按钮，等待几秒钟，系统就会根据你的描述生成对应的图像。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;7&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;汉化界面&lt;/strong&gt;（可选）：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;从 Stable-diffusion-webui 的汉化扩展下载汉化语言包，把 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;localizations&lt;/code&gt; 文件夹内的 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;Chinese-All.json&lt;/code&gt; 和 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;Chinese-English.json&lt;/code&gt; 复制到 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;stable-diffusion-webui/localizations&lt;/code&gt; 目录中。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;点击 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;Settings&lt;/code&gt;，左侧点击 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;User interface&lt;/code&gt; 界面，在界面里最下方的 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;Localization (requires restart)&lt;/code&gt;，选择 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;Chinese-All&lt;/code&gt; 或者 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;Chinese-English&lt;/code&gt;。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;点击界面最上方的黄色按钮 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;Apply settings&lt;/code&gt;，再点击右侧的 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;Reload UI&lt;/code&gt; 即可完成汉化。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;8&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;h4 class=&quot;&quot;&gt;3. 常见问题及解决方法&lt;/h4&gt;&lt;ol start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;显卡驱动问题&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;更新显卡驱动可以解决一部分错误问题。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;9&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;路径问题&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;Python 和 Git 等前置部件，都按默认路径安装在 C 盘，不要改变它们的位置，这样会很大程度减少出错几率。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;10&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;安装路径&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;Stable Diffusion WebUI 可以不安装在 C 盘，但安装路径尽量简单，不要套太多层文件夹，每一层文件夹不要有任何中文，有充足的硬盘空余空间。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;11&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;模型下载&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;如果下载模型时遇到问题，可以使用异型岛社区版下载器，提高下载速度，解决大模型下载时间长、经常断线、需要反复重试等问题。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;12&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;div class=&quot;paragraph&quot;&gt;通过以上步骤，你可以成功安装并使用 Stable Diffusion 进行图像生成。希望这些信息能帮助你顺利进行安装和使用。&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 15 Jan 2025 22:58:36 +0800</pubDate></item><item><title>以一个例子来讲解LatentSync 模型的使用？</title><link>https://www.xq001.info/?id=16</link><description>&lt;div data-v-191eb8d1=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;markdown-container&quot;&gt;&lt;div data-v-53cd9be5=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;markdown&quot;&gt;&lt;h3 class=&quot;&quot;&gt;使用 LatentSync 模型的示例&lt;/h3&gt;&lt;h4 class=&quot;&quot;&gt;1. 环境配置&lt;/h4&gt;&lt;ol start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;系统要求&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;GPU 显存需求：至少 6.5GB&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;支持 CUDA 的 NVIDIA 显卡&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;Python 环境&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;安装步骤&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;latentsync_unet.pt&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;latentsync_syncnet.pt&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;tiny.pt&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;可以从 &lt;a data-v-191eb8d1=&quot;&quot; target=&quot;_blank&quot; href=&quot;https://huggingface.co/chunyu-li/LatentSync&quot; rel=&quot;noreferrer nofollow noopener&quot; class=&quot;&quot;&gt;Hugging Face&lt;/a&gt; 下载这些文件，并放置在 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;./checkpoints/&lt;/code&gt; 目录下。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;0&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;克隆 LatentSync 仓库：&lt;/div&gt;&lt;div data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code&quot;&gt;&lt;header data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-header&quot;&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-lang&quot;&gt;bash&lt;/span&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-copy&quot;&gt;复制&lt;/span&gt;&lt;/header&gt;&lt;div data-v-ff2fa631=&quot;&quot; data-v-f1fd9079=&quot;&quot; class=&quot;syntax-highlighter light segment-code-content&quot;&gt;&lt;pre data-v-ff2fa631=&quot;&quot; class=&quot;language-bash&quot;&gt;git&amp;nbsp;clone&amp;nbsp;https://github.com/bytedance/LatentSync.gitcd&amp;nbsp;LatentSync&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;安装依赖：&lt;/div&gt;&lt;div data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code&quot;&gt;&lt;header data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-header&quot;&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-lang&quot;&gt;bash&lt;/span&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-copy&quot;&gt;复制&lt;/span&gt;&lt;/header&gt;&lt;div data-v-ff2fa631=&quot;&quot; data-v-f1fd9079=&quot;&quot; class=&quot;syntax-highlighter light segment-code-content&quot;&gt;&lt;pre data-v-ff2fa631=&quot;&quot; class=&quot;language-bash&quot;&gt;pip&amp;nbsp;install&amp;nbsp;-r&amp;nbsp;requirements.txt&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;下载模型文件：&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;h4 class=&quot;&quot;&gt;2. 数据准备&lt;/h4&gt;&lt;ol start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;视频预处理&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;自动修正视频帧率至 25fps，音频重采样至 16000Hz。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;自动场景检测和分割，将视频分割为 5-10 秒的片段。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;人脸处理&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;检测并筛选人脸大小（要求大于 256×256）。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;去除多人脸场景。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;基于面部特征点进行仿射变换，统一调整尺寸至 256×256。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;质量控制&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;同步置信度评分筛选（阈值为 3）。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;自动调整音视频偏移。&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;使用 hyperIQA 进行图像质量评估。&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;h4 class=&quot;&quot;&gt;3. 运行推理&lt;/h4&gt;&lt;ol start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;基本推理&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;运行 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;inference.sh&lt;/code&gt; 脚本进行基本推理：&lt;/div&gt;&lt;div data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code&quot;&gt;&lt;header data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-header&quot;&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-lang&quot;&gt;bash&lt;/span&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-copy&quot;&gt;复制&lt;/span&gt;&lt;/header&gt;&lt;div data-v-ff2fa631=&quot;&quot; data-v-f1fd9079=&quot;&quot; class=&quot;syntax-highlighter light segment-code-content&quot;&gt;&lt;pre data-v-ff2fa631=&quot;&quot; class=&quot;language-bash&quot;&gt;./inference.sh&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;可以通过调整 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;guidance_scale&lt;/code&gt; 参数到 1.5 来提高唇形同步精度。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;1&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;高级功能&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;如果需要在中文数据上训练，可以下载中文数据集并进行训练，以提升在中文上的效果。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;2&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;使用 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;train_unet.sh&lt;/code&gt; 和 &lt;code data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code-inline&quot;&gt;train_syncnet.sh&lt;/code&gt; 进行 U-Net 和 SyncNet 的训练：&lt;/div&gt;&lt;div data-v-f1fd9079=&quot;&quot; data-v-191eb8d1=&quot;&quot; class=&quot;segment-code&quot;&gt;&lt;header data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-header&quot;&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-lang&quot;&gt;bash&lt;/span&gt;&lt;span data-v-f1fd9079=&quot;&quot; class=&quot;segment-code-copy&quot;&gt;复制&lt;/span&gt;&lt;/header&gt;&lt;div data-v-ff2fa631=&quot;&quot; data-v-f1fd9079=&quot;&quot; class=&quot;syntax-highlighter light segment-code-content&quot;&gt;&lt;pre data-v-ff2fa631=&quot;&quot; class=&quot;language-bash&quot;&gt;./train_unet.sh
./train_syncnet.sh&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;模型训练&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;自定义模型&lt;/strong&gt;：&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ol&gt;&lt;h4 class=&quot;&quot;&gt;4. 应用场景&lt;/h4&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;影视后期制作&lt;/strong&gt;：在电影配音时根据配音音频自动生成匹配的唇部动画，提高制作效率并保持角色形象连贯性。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;3&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;教育领域&lt;/strong&gt;：在线英语课中，教师将语音转换为唇同步视频，帮助学生更准确地学习发音。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;4&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;广告视频制作&lt;/strong&gt;：汽车广告里为虚拟代言人生成唇同步视频，让广告词表达更自然，增强广告吸引力。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;5&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;远程会议&lt;/strong&gt;：跨国远程会议中实时生成唇同步视频，解决网络延迟导致的音画不同步问题，提升沟通效果。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;6&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;游戏开发&lt;/strong&gt;：RPG 游戏中让 NPC 在对话时唇部动作与语音同步，增强游戏沉浸感和角色互动体验。&lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;7&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 class=&quot;&quot;&gt;5. 项目地址&lt;/h4&gt;&lt;ul start=&quot;1&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong&gt;GitHub 仓库&lt;/strong&gt;：&lt;a data-v-191eb8d1=&quot;&quot; target=&quot;_blank&quot; href=&quot;https://github.com/bytedance/LatentSync&quot; rel=&quot;noreferrer nofollow noopener&quot; class=&quot;&quot;&gt;https://github.com/bytedance/LatentSync&lt;/a&gt; &lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;8&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div class=&quot;paragraph&quot;&gt;&lt;strong class=&quot;&quot;&gt;arXiv 技术论文&lt;/strong&gt;：&lt;a data-v-191eb8d1=&quot;&quot; target=&quot;_blank&quot; href=&quot;https://arxiv.org/pdf/2412.09262&quot; rel=&quot;noreferrer nofollow noopener&quot; class=&quot;&quot;&gt;https://arxiv.org/pdf/2412.09262&lt;/a&gt; &lt;span data-v-a5beafc8=&quot;&quot; data-v-5d235d8f=&quot;&quot; class=&quot;rag-tag&quot; data-index=&quot;9&quot;&gt;&lt;svg data-v-a5beafc8=&quot;&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; class=&quot;icon rag-icon&quot; viewbox=&quot;0 0 1228 1024&quot;&gt;&lt;path fill=&quot;currentColor&quot; d=&quot;M662.393 716.21c107.054-53.527 176.408-156.549 176.408-243.805-11.855 7.882-33.669 15.826-55.483 15.826-73.325 0-122.941-55.544-122.941-126.914 0-63.426 45.583-128.93 134.856-128.93 85.24 0 156.61 79.375 156.61 188.385 0 176.468-120.986 311.325-247.838 370.78zm-380.678 0c106.993-53.527 176.407-156.549 176.407-243.805-11.854 7.882-31.713 15.826-53.527 15.826-75.341-.062-124.897-55.544-124.897-126.914 0-63.426 45.584-128.93 134.796-128.93 85.301 0 156.67 79.375 156.67 188.385 0 176.468-120.985 311.325-247.837 370.78l-41.673-75.342z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;paragraph&quot;&gt;通过以上步骤，你可以使用 LatentSync 模型生成高质量的唇形同步视频，适用于多种实际应用场景。&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 15 Jan 2025 22:36:41 +0800</pubDate></item><item><title>python虚拟环境的创建和启动</title><link>https://www.xq001.info/?id=15</link><description>&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在 Python 中创建和启动虚拟环境是一个常见的开发实践，它可以帮助你隔离项目依赖，避免不同项目之间的包冲突。以下是使用 `venv` 模块（Python 3.3+ 自带）创建和激活虚拟环境的详细步骤：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;### 创建虚拟环境&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1. **打开命令提示符（Windows）或终端（macOS/Linux）**：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;- 在 Windows 上，可以通过在开始菜单中搜索“cmd”或“命令提示符”来找到。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;- 在 macOS 或 Linux 上，可以通过在应用程序/实用工具中找到“终端”或使用快捷键 `Command + 空格` 搜索“终端”来打开。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2. **导航到项目目录**：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;- 使用 `cd` 命令导航到你的项目目录。例如：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;cd path\to\my_project&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;3. **创建虚拟环境**：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;- 使用 `python -m venv` 命令创建虚拟环境。假设虚拟环境名为 `venv`，命令如下：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;python -m venv venv&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;- 这将在项目目录下创建一个名为 `venv` 的文件夹，里面包含了虚拟环境的文件和目录。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;### 激活虚拟环境&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 在 Windows 上&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1. **激活虚拟环境**：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;- 在命令提示符中，运行以下命令来激活虚拟环境：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;.\venv\Scripts\activate&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;- 激活后，命令提示符的前缀会显示虚拟环境的名称（如 `(venv)`），表示你已经处于虚拟环境中。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 在 macOS 和 Linux 上&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1. **激活虚拟环境**：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;- 在终端中，运行以下命令来激活虚拟环境：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;source venv/bin/activate&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;- 激活后，终端的提示符前缀会显示虚拟环境的名称（如 `(venv)`），表示你已经处于虚拟环境中。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;### 退出虚拟环境&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;当你完成开发工作，想要退出虚拟环境时，只需在命令提示符或终端中运行以下命令：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;deactivate&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;这将使你退出虚拟环境，回到系统的全局 Python 环境中。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;### 示例&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;假设你的项目目录为 `D:\my_project`，以下是在 Windows 上创建和激活虚拟环境的完整步骤：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1. 打开命令提示符。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2. 导航到项目目录：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;cd D:\my_project&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;3. 创建虚拟环境：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;python -m venv venv&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;4. 激活虚拟环境：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;.\venv\Scripts\activate&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在 macOS 或 Linux 上，假设你的项目目录为 `/Users/username/my_project`，以下是在 macOS 或 Linux 上创建和激活虚拟环境的完整步骤：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;1. 打开终端。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;2. 导航到项目目录：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;cd /Users/username/my_project&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;3. 创建虚拟环境：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;python3 -m venv venv&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;4. 激活虚拟环境：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;source venv/bin/activate&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;### 总结&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;通过以上步骤，你可以轻松地为你的 Python 项目创建并激活虚拟环境，从而更好地管理项目依赖。希望这些信息对你有帮助！如果有其他问题，欢迎继续提问。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 15 Jan 2025 07:43:10 +0800</pubDate></item><item><title>ollama参数相关设置</title><link>https://www.xq001.info/?id=14</link><description>&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;### Ollama 服务器相关参数的设置&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;Ollama 提供了多种环境变量来配置服务器的行为，这些变量可以帮助您优化模型的加载、内存管理、并发请求处理等。以下是一些常用的环境变量及其设置方法：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 1. **OLLAMA_HOST**&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **作用**：定义 Ollama 服务器的监听地址。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **默认值**：`127.0.0.1:11434`&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **设置方法**：设置为 `0.0.0.0` 可以让 Ollama 监听所有可用的网络接口，从而允许外部网络访问。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; export OLLAMA_HOST=0.0.0.0:11434&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 或者在 `ollama.service` 文件中添加：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; Environment=&amp;quot;OLLAMA_HOST=0.0.0.0:11434&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 2. **OLLAMA_PORT**&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **作用**：定义 Ollama 服务器的监听端口。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **默认值**：`11434`&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **设置方法**：如果默认端口被占用，可以设置一个新的端口，例如 `8080`。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; export OLLAMA_PORT=8080&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 或者在 `ollama.service` 文件中添加：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; Environment=&amp;quot;OLLAMA_PORT=8080&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 3. **OLLAMA_KEEP_ALIVE**&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **作用**：控制模型在内存中的存活时间。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **默认值**：`5m`（5分钟）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **设置方法**：设置为 `24h` 可以让模型在内存中保持24小时。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; export OLLAMA_KEEP_ALIVE=24h&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 或者在 `ollama.service` 文件中添加：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; Environment=&amp;quot;OLLAMA_KEEP_ALIVE=24h&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 4. **OLLAMA_MODELS**&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **作用**：指定模型镜像的存储路径。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **默认值**：`~/.ollama/models`（Linux 和 macOS），`C:\Users\&amp;lt;username&amp;gt;\.ollama\models`（Windows）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **设置方法**：设置为 `/data/model/ollama_models` 可以将模型存储在 `/data` 目录下。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; export OLLAMA_MODELS=/data/model/ollama_models&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 或者在 `ollama.service` 文件中添加：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; Environment=&amp;quot;OLLAMA_MODELS=/data/model/ollama_models&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 5. **OLLAMA_NUM_PARALLEL**&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **作用**：每个模型同时处理的最大并行请求数。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **默认值**：`1`&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **设置方法**：设置为 `2` 可以让 Ollama 同时处理两个并发请求。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; export OLLAMA_NUM_PARALLEL=2&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 或者在 `ollama.service` 文件中添加：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; Environment=&amp;quot;OLLAMA_NUM_PARALLEL=2&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 6. **OLLAMA_MAX_LOADED_MODELS**&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **作用**：可以同时加载的最大模型数量。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **默认值**：`1`（对于 CPU 推理），`GPU 数量的 3 倍`（对于 GPU 推理）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **设置方法**：设置为 `2` 可以同时加载两个模型。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; export OLLAMA_MAX_LOADED_MODELS=2&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 或者在 `ollama.service` 文件中添加：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; Environment=&amp;quot;OLLAMA_MAX_LOADED_MODELS=2&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 7. **OLLAMA_MAX_QUEUE**&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **作用**：Ollama 在拒绝额外请求之前可以排队的最大请求数。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **默认值**：`512`&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **设置方法**：设置为 `100` 可以调整队列的最大长度。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; export OLLAMA_MAX_QUEUE=100&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 或者在 `ollama.service` 文件中添加：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; Environment=&amp;quot;OLLAMA_MAX_QUEUE=100&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 8. **OLLAMA_ORIGINS**&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **作用**：允许的来源列表，用于跨域访问。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **默认值**：空&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **设置方法**：设置为 `*` 可以允许所有来源。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; export OLLAMA_ORIGINS=*&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 或者在 `ollama.service` 文件中添加：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; Environment=&amp;quot;OLLAMA_ORIGINS=*&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 9. **OLLAMA_DEBUG**&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **作用**：是否开启调试模式。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **默认值**：`false`&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **设置方法**：设置为 `1` 可以开启调试模式。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; export OLLAMA_DEBUG=1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 或者在 `ollama.service` 文件中添加：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; Environment=&amp;quot;OLLAMA_DEBUG=1&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;#### 10. **OLLAMA_FLASH_ATTENTION**&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **作用**：是否启用 Flash Attention。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **默认值**：`true`&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **设置方法**：设置为 `0` 可以禁用 Flash Attention。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; export OLLAMA_FLASH_ATTENTION=0&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; 或者在 `ollama.service` 文件中添加：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; Environment=&amp;quot;OLLAMA_FLASH_ATTENTION=0&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp; ```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;### 应用配置&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在修改 `ollama.service` 文件后，需要重新加载和重启服务：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;sudo systemctl daemon-reload&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;sudo systemctl restart ollama&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;### 验证配置&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;可以使用以下命令查看 Ollama 服务的状态：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;```bash&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;sudo systemctl status ollama&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;```&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;通过以上步骤，您可以根据需要配置 Ollama 服务器，优化模型的加载和处理性能。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 13 Jan 2025 09:08:28 +0800</pubDate></item><item><title>ubuntu的文件管理器怎么启动</title><link>https://www.xq001.info/?id=13</link><description>&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;在Ubuntu中，文件管理器通常称为Nautilus（也称为Files）。启动文件管理器的方法有以下几种：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;### 使用图形界面&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **点击桌面图标**：在Ubuntu的默认桌面环境中，通常在桌面的左下角或者顶部的Dock栏上会有一个类似文件夹的图标，点击它就可以打开文件管理器。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- **使用搜索功能**：点击屏幕左上角的“Show Applications”按钮（或者按下`Super`键，也就是Windows键），然后输入“Files”或“文件”进行搜索，找到文件管理器图标后点击即可启动。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;### 使用命令行&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- 打开终端（可以通过在桌面或Dock栏上找到“Terminal”图标点击打开，或者使用快捷键`Ctrl + Alt + T`）。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;- 在终端中输入命令`nautilus`并按回车键，这样就可以启动文件管理器。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap-mode: nowrap;&quot;&gt;以上就是启动Ubuntu文件管理器的几种方法。&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 09 Jan 2025 09:46:12 +0800</pubDate></item><item><title>2.点亮esp32的led灯</title><link>https://www.xq001.info/?id=12</link><description>&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;# 点亮led灯&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;import machine #导入machine模块&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;import time #导入time模块&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;pin2 = machine.Pin(2, machine.Pin.OUT) #定义pin2引脚&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;# 通过循环，实现引脚2的led灯闪烁&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;while True:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; pin2.value(1) #点亮引脚2&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; time.sleep(1) #等待一秒&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; pin2.value(0) #关闭引脚&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: nowrap;&quot;&gt;&amp;nbsp; &amp;nbsp; time.sleep(1) #等待一秒&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 12 Oct 2024 18:06:46 +0800</pubDate></item><item><title>1.esp32环境搭建</title><link>https://www.xq001.info/?id=11</link><description>&lt;p&gt;1.micropython.org的使用&lt;br/&gt;&lt;/p&gt;&lt;p&gt;（1）针对特定esp32的下载地址：https://micropython.org/download/ESP32_GENERIC/&lt;/p&gt;&lt;p&gt;2.esp32驱动程序地址：&lt;a href=&quot;https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads&quot; _src=&quot;https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads&quot;&gt;https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads&lt;/a&gt;&amp;nbsp;选择最新windows版本，通过设备管理器更新驱动程序&lt;/p&gt;&lt;p&gt;3.thonny的使用&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap: wrap;&quot;&gt;（1）thonny下载地址：&lt;a href=&quot;https://thonny.org/&quot; _src=&quot;https://thonny.org/&quot;&gt;https://thonny.org/&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap: wrap;&quot;&gt;（2）运行thonny，“视图”菜单，选择“文件”菜单项，打开文件视图&lt;/p&gt;&lt;p style=&quot;text-wrap: wrap;&quot;&gt;（3）“运行”菜单，“配置解释器”菜单项，解释器选择“MicroPython（esp32）”，端口选择刚才安装驱动的端口。界面最下方选择“安装或更新&lt;span style=&quot;text-wrap: wrap;&quot;&gt;MicroPython（esptool）&lt;/span&gt;”，选择使用的端口，选择下载的esp32驱动后进行安装&lt;/p&gt;&lt;p style=&quot;text-wrap: wrap;&quot;&gt;4.程序运行&lt;/p&gt;&lt;p style=&quot;text-wrap: wrap;&quot;&gt;在编辑器界面编写代码，保存到esp32设备，即可运行&lt;/p&gt;&lt;p style=&quot;text-wrap: wrap;&quot;&gt;5.课件地址及官网&lt;/p&gt;&lt;p style=&quot;text-wrap: wrap;&quot;&gt;&lt;span style=&quot;color: #61666D; font-family: &amp;quot;PingFang SC&amp;quot;, HarmonyOS_Regular, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, sans-serif; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;&lt;a href=&quot;http://www.itprojects.cn&quot; _src=&quot;http://www.itprojects.cn&quot;&gt;www.itprojects.cn&lt;/a&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-wrap: wrap;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 12 Oct 2024 10:20:42 +0800</pubDate></item><item><title>node.js的基本技巧记录</title><link>https://www.xq001.info/?id=3</link><description>&lt;div style=&quot;background-color: rgb(255, 255, 255); color: rgb(8, 8, 8); text-align: left;&quot;&gt;&lt;pre&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;记录node.js的基本写法&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;br style=&quot;text-align: left;&quot;/&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;一、commonJS规范&lt;br style=&quot;text-align: left;&quot;/&gt;1.单个模块导出&lt;br style=&quot;text-align: left;&quot;/&gt;在模块a.js中先定义函数 function&lt;br style=&quot;text-align: left;&quot;/&gt;在模块中通过module.exports = function将函数抛出&lt;br style=&quot;text-align: left;&quot;/&gt;在调用文件中通过var moduleA = require(&amp;#39;./a&amp;#39;)引入模块，此时moduleA则为a.js中的function函数&lt;br style=&quot;text-align: left;&quot;/&gt;2.多个模块导出&lt;br style=&quot;text-align: left;&quot;/&gt;使用对象的方式导出&lt;br style=&quot;text-align: left;&quot;/&gt;module.exports = {&lt;br style=&quot;text-align: left;&quot;/&gt; &amp;nbsp; &amp;nbsp;func1:func1,&lt;br style=&quot;text-align: left;&quot;/&gt; &amp;nbsp; &amp;nbsp;func2:func2&lt;br style=&quot;text-align: left;&quot;/&gt;}或者直接写方法名&lt;br style=&quot;text-align: left;&quot;/&gt;module.exports = {&lt;br style=&quot;text-align: left;&quot;/&gt; &amp;nbsp; &amp;nbsp;func1,&lt;br style=&quot;text-align: left;&quot;/&gt; &amp;nbsp; &amp;nbsp;func2&lt;br style=&quot;text-align: left;&quot;/&gt;}或者使用第三种写法导出&lt;br style=&quot;text-align: left;&quot;/&gt;exports.func1 = func1&lt;br style=&quot;text-align: left;&quot;/&gt;exports.func2 = func2&lt;br style=&quot;text-align: left;&quot;/&gt;在调用文件中通过var moduleA = require(&amp;#39;./a&amp;#39;)引入模块，并通过对象名进行访问&lt;br style=&quot;text-align: left;&quot;/&gt;moduleA.func1()&lt;br style=&quot;text-align: left;&quot;/&gt;console.log(moduleA.func2(&amp;quot;xuguangbin&amp;quot;))&lt;br style=&quot;text-align: left;&quot;/&gt;&lt;br style=&quot;text-align: left;&quot;/&gt;二、npm/yarn的安装和使用&lt;br style=&quot;text-align: left;&quot;/&gt;01 npm使用&lt;br style=&quot;text-align: left;&quot;/&gt;npm init 在一个新目录中使用，生成package.json文件，以后安装的包可使用此文件&lt;br style=&quot;text-align: left;&quot;/&gt;npm install packName -g (uninstall, update) -g为全局安装，本目录安装不用-g&lt;br style=&quot;text-align: left;&quot;/&gt;npm instass packName --save-dev (uninstall, update)标记为开发用的版本&lt;br style=&quot;text-align: left;&quot;/&gt;npm list -g (不加-g， 列举当前目录下的安装包）&lt;br style=&quot;text-align: left;&quot;/&gt;npm info packName （详细信息）&lt;br style=&quot;text-align: left;&quot;/&gt;npm info packName version (获取最新版本)&lt;br style=&quot;text-align: left;&quot;/&gt;npm install xxx@1 (安装指定版本)&lt;br style=&quot;text-align: left;&quot;/&gt;npm outdated (检查包是否已经过时)&lt;br style=&quot;text-align: left;&quot;/&gt;npm install (在一个新项目中，如果存在package文件，可直接下载所依赖的包)&lt;br style=&quot;text-align: left;&quot;/&gt;&lt;br style=&quot;text-align: left;&quot;/&gt;02 全局安装nrm及使用&lt;br style=&quot;text-align: left;&quot;/&gt;安装：npm i -g nrm&lt;br style=&quot;text-align: left;&quot;/&gt;展示所有npm源： nrm ls&lt;br style=&quot;text-align: left;&quot;/&gt;测试npm源速度：nrm test&lt;br style=&quot;text-align: left;&quot;/&gt;切换源： nrm use taobao&lt;br style=&quot;text-align: left;&quot;/&gt;&lt;br style=&quot;text-align: left;&quot;/&gt;三、es模块化写法&lt;br style=&quot;text-align: left;&quot;/&gt;01 开启es模块化写法&lt;br style=&quot;text-align: left;&quot;/&gt;在文件夹下执行 npm init，创建package.json文件&lt;br style=&quot;text-align: left;&quot;/&gt;在package.json文件中添加&amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;,字段,默认为commentJs&lt;br style=&quot;text-align: left;&quot;/&gt;同时，引入模块时，要写带后缀的完整文件名：import moduleA from &amp;quot;./module/moduleA.js&amp;quot;;&lt;br style=&quot;text-align: left;&quot;/&gt;02 两种导出方式&lt;br style=&quot;text-align: left;&quot;/&gt;1.使用export default moduleA导出，&lt;br style=&quot;text-align: left;&quot;/&gt;使用import moduleA from &amp;quot;./module/moduleA.js&amp;quot;;导入&lt;br style=&quot;text-align: left;&quot;/&gt;2.使用&lt;br style=&quot;text-align: left;&quot;/&gt;export {&lt;br style=&quot;text-align: left;&quot;/&gt; &amp;nbsp; &amp;nbsp;moduleB&lt;br style=&quot;text-align: left;&quot;/&gt;}导出&lt;br style=&quot;text-align: left;&quot;/&gt;使用import {moduleB} from &amp;quot;./module/moduleB.js&amp;quot;;导入&lt;br style=&quot;text-align: left;&quot;/&gt;&lt;br style=&quot;text-align: left;&quot;/&gt;四、nodemon、node-dev的使用,可以保存代码后自动重启服务器&lt;br style=&quot;text-align: left;&quot;/&gt;全局安装&lt;br style=&quot;text-align: left;&quot;/&gt;npm install -g nodemon&lt;br style=&quot;text-align: left;&quot;/&gt;npm install -g node-dev&lt;br style=&quot;text-align: left;&quot;/&gt;使用&lt;br style=&quot;text-align: left;&quot;/&gt;nodemon xxx.js&lt;br style=&quot;text-align: left;&quot;/&gt;node-dev xxx.js&lt;br style=&quot;text-align: left;&quot;/&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;br style=&quot;text-align: left;&quot;/&gt;&lt;/p&gt;</description><pubDate>Fri, 21 Jun 2024 15:13:57 +0800</pubDate></item></channel></rss>