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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #45 · 2 мар.

В фреймворке PyQt (и PySide тоже) часто встречается настройка чего-либо с помощью так называемых флагов. widget.setWindowFlags(Qt.Window) Взаимодействие нескольких флагов делается с помощью бинарных (или побитовых) операторов. Несколько флагов можно указать с помощью оператора "|" list_item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled) исключить флаг из уже имеющегося набора можно так list_item.setFlags(list_item.flags() ^ Qt.ItemIsEnabled) Добавить новый флаг к имеющимся можно так list_item.setFlags(list_item.flags() | Qt.ItemIsEnabled) А проверка наличия делается так is_enabled = item.flags() & Qt.ItemIsEnabled > 0 Почему именно так? Всё дело в том как именно работают побитовые операторы. Но об этом в следующем посте. #qt

Hashtags

Резултати

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

Пребарај: #aiinart

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

@ai_and_law · Post #221 · 22.01.2024 г., 08:04

Artists Consider Class Action Against AI Firms for Copyright Infringement The art world is rallying against Midjourney and other AI firms accused of using the works of thousands of artists, including Damien Hirst, Tracey Emin, and David Hockney, to train their image-generating AI. A list of 16,000 artists has sparked discussions about a class-action lawsuit against Midjourney, Stability AI, Runway AI, and DeviantArt. The lawsuit alleges that AI image products primarily function as "copyright-laundering devices." Artists contend that AI-generated images closely resembling their original works constitute a form of copying, potentially robbing them of their livelihood. The debate intensifies around whether AI is an opportunity or a threat to the art community. #AIGovernance#AIinArt#MidjourneyAI