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 слични објави

Пребарај: #breakthrough

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

@ai_and_law · Post #95 · 27.08.2023 г., 08:48

🌟AI Sunday Wonders: Breakthrough in AI-Assisted Communication for Paralysis Patients Hello everybody! This Sunday we explore new studies published in Nature showcase groundbreaking advances in brain implants, offering hope to individuals with paralysis or speech impairments. Led by Dr. Jaimie Henderson and his team at Stanford Medicine, the studies highlight neuroprostheses that can decode neural activity into words on a computer screen, audio speech, or animated avatars. The implants were tested on patients like Pat Bennett, diagnosed with amyotrophic lateral sclerosis (ALS) affecting her speech. By recording neural activity during speech attempts and decoding it into words, researchers achieved promising results. A 50-word vocabulary saw a 9.1% error rate during vocalization days, and a 125,000-word vocabulary had a 23.8% error rate. These findings indicate the potential to restore fluent conversation for paralysis patients. Dr. Henderson emphasized the transformative impact on communication, with a promising future where those unable to speak can stay connected with the world. Although the studies are proof of concept and require further testing, they pave the way for future breakthroughs, offering a glimpse of technology's potential to bridge communication gaps. #AI#MedicalTech#Neuroprosthetics#Paralysis#Communication#Breakthrough#AIInnovation