TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны. Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2. Например, в PyQt4 и PySide есть метод QHeaderView.setResizeMode Для PyQt5 и PySide2 они были благополучно переименованы в QHeaderView.setSectionResizeMode Чтобы применить этот метод следует использовать такой код from Qt import QtCompath header = self.horizontalHeader() QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed) Унификация загрузки UI файлов: # PySide2 from PySide2.QtUiTools import QUiLoader loader = QUiLoader() widget = loader.load(ui_file) # PyQt5 from PyQt5 import uic widget = uic.loadUi(ui_file) # Qt.py from Qt import QtCompat widget = QtCompat.loadUi(ui_file) Хорошо что таких моментов не много и их легко запомнить. Полный список можно посмотреть в таблице. #qt#tricks

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #toyotarobots

当前筛选 #toyotarobots清除筛选
AI & Law

@ai_and_law · Post #120 · 24.09.2023 г., 09:18

🌟AI Sunday Wonders: Toyota's Breakfast Bots Show How Robots Learn Welcome to AI Sunday Wonders! This week, we're diving into the fascinating world of AI-powered robots, and Toyota has a delightful story to share. Toyota Research Institute (TRI) has introduced the concept of a "kindergarten for robots." But here's the twist: these robots are learning to make breakfast! Traditionally, teaching robots complex tasks required extensive coding and debugging. However, TRI is taking a different approach. By giving robots a sense of touch, they allow the robots to "feel" their actions, making learning easier. Here's how it works: A "teacher" initially demonstrates a set of skills, and then, over a few hours, the AI model learns in the background. Imagine teaching a robot in the afternoon and coming back the next morning to find it mastering a new skill. Toyota aims to create "Large Behavior Models" (LBMs) for robots, allowing them to generalize new skills based on observed patterns, similar to how AI models learn from human writing patterns. They've already trained robots in over 60 challenging skills and plan to reach 1,000 by 2024. Toyota isn't alone in this endeavor; Google and Tesla are also making strides in AI training for robots. Imagine the possibilities: AI-trained robots that can perform tasks with minimal instruction, just like humans. #AISundayWonders#ToyotaRobots#AIInnovation