先做个广告:如需购买Luma帐号或代充值Luma会员,请添加站长客服微信:gptchongzhi
Luma AI,目前最强大的AI文生视频工具,横空出世,再次掀起了互联网的热潮。它如同一匹黑马般傲然而立于AI视频领域,给人们留下了深深的印象。其出色的性能和功能让人惊叹不已,堪称行业中的翘楚。无论是在影像处理还是创作领域,Luma AI都展现出了非凡的能力和潜力,让人们对其充满了无限的期待和赞叹。它的问世,不仅是技术的巅峰之作,更是对整个互联网的一次震撼和革新。
特点:
Luma AI具备出色的电影感,运镜和透视技巧娴熟,光影变化自然流畅。镜头感强,让人仿佛置身于电影般的视觉体验中。镜头调度能力突出,景深变化显著,支持多角度和运动姿态的拍摄。稳定性强,对真实世界的还原度高,呈现效果逼真。审美水平高,整体视觉效果具有较高的美学价值。
代码:
import asyncio
import json
import sys
import requests
from PyQt6.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QLineEdit, QPushButton, QTextEdit, QLabel
from PyQt6.QtCore import QThread, pyqtSignal, Qt
from PyQt6.QtGui import QFont
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("Luma AI 文生视频工具 - 微信公众号:蓝胖子之家")
self.setGeometry(100, 100, 600, 400)
self.setStyleSheet("""
QMainWindow {
background-color: #1e1e1e;
}
QLabel {
font-size: 14px;
color: #00ff00;
}
QLabel#green_label {
color: #00ff00;
font-weight: bold;
}
QLineEdit {
padding: 5px;
border: 1px solid #00ff00;
border-radius: 3px;
background-color: #333333;
color: #00ff00;
}
QPushButton {
background-color: #00ff00;
color: #1e1e1e;
padding: 8px 16px;
border: none;
border-radius: 4px;
font-size: 14px;
}
QPushButton:hover {
background-color: #00cc00;
}
QPushButton:disabled {
background-color: #555555;
color: #888888;
}
QTextEdit {
border: 1px solid #00ff00;
border-radius: 3px;
background-color: #333333;
color: #00ff00;
}
""")
central_widget = QWidget()
self.setCentralWidget(central_widget)
layout = QVBoxLayout()
layout.setSpacing(10)
layout.setContentsMargins(20, 20, 20, 20)
token_layout = QHBoxLayout()
token_label = QLabel("Access Token:")
token_label.setObjectName("green_label")
self.token_input = QLineEdit()
token_layout.addWidget(token_label)
token_layout.addWidget(self.token_input)
layout.addLayout(token_layout)
prompt_layout = QHBoxLayout()
prompt_label = QLabel("提示词:")
prompt_label.setObjectName("green_label")
self.prompt_input = QLineEdit()
prompt_layout.addWidget(prompt_label)
prompt_layout.addWidget(self.prompt_input)
layout.addLayout(prompt_layout)
button_layout = QHBoxLayout()
self.save_button = QPushButton("保存令牌")
self.save_button.clicked.connect(self.save_token)
self.start_button = QPushButton("开始生成")
self.start_button.clicked.connect(self.start_process)
button_layout.addWidget(self.save_button)
button_layout.addWidget(self.start_button)
button_layout.setAlignment(Qt.AlignmentFlag.AlignCenter)
layout.addLayout(button_layout)
self.output_text = QTextEdit()
self.output_text.setReadOnly(True)
layout.addWidget(self.output_text)
central_widget.setLayout(layout)
self.load_token()
def save_token(self):
access_token = self.token_input.text()
if access_token:
with open('config.json', 'w') as config_file:
json.dump({"access_token": access_token}, config_file)
self.output_text.append("令牌保存成功。")
else:
self.output_text.append("请输入要保存的访问令牌。")
def load_token(self):
try:
with open('config.json', 'r') as config_file:
config = json.load(config_file)
self.token_input.setText(config.get("access_token", ""))
self.output_text.append("令牌加载成功。")
except (FileNotFoundError, json.JSONDecodeError):
self.output_text.append("未找到保存的令牌或文件格式无效。")
def start_process(self):
access_token = self.token_input.text()
prompt = self.prompt_input.text()
if not access_token or not prompt:
self.output_text.append("请输入访问令牌和提示词。")
return
self.worker = WorkerThread(access_token, prompt)
self.worker.update_signal.connect(self.update_output)
self.worker.finished_signal.connect(self.process_finished)
self.worker.start()
self.start_button.setEnabled(False)
def update_output(self, message):
self.output_text.append(message)
def process_finished(self, message):
self.output_text.append(message)
self.start_button.setEnabled(True)
if __name__ == "__main__":
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec())
使用谷歌账户登陆,Luma官网地址是:https://lumalabs.ai/dream-machine
工具使用方法:
登陆官网后打开检查工具找到Token值复制到工具中保存令牌即可,然后输入提示词即可生成视频
文生视频运行效果:
生成的视频效果和视频链接:
https://storage.cdn-luma.com/lit_lite_inference_text2vid_v1.0/37b22336-384f-4dec-9af7-3b6840925e5b/watermarked_video0c1c9f883245f4a0eba879f537dec22f5.mp4
图生视频效果:
本文链接:https://lumalabs.cc/?id=16
luma入口lumaai公司lumaai手机lumaai国内lumaai手机中文lumaai怎么下载lumaai照片apilumaai看房lumaai拍静物lumaai手机app
网友评论