|
| 1 | +from datetime import datetime |
| 2 | + |
| 3 | +from app_settings import AppSettings |
| 4 | +from backend.models.lcmdiffusion_setting import DiffusionTask |
| 5 | +from constants import ( |
| 6 | + APP_NAME, |
| 7 | + APP_VERSION, |
| 8 | + DEVICE, |
| 9 | + LCM_DEFAULT_MODEL, |
| 10 | + LCM_DEFAULT_MODEL_OPENVINO, |
| 11 | +) |
| 12 | +from context import Context |
| 13 | +from frontend.gui.image_generator_worker import ImageGeneratorWorker |
| 14 | +from frontend.gui.image_variations_widget import ImageVariationsWidget |
| 15 | +from frontend.gui.img2img_widget import Img2ImgWidget |
| 16 | +from frontend.utils import ( |
| 17 | + enable_openvino_controls, |
| 18 | + get_valid_model_id, |
| 19 | + is_reshape_required, |
| 20 | +) |
| 21 | +from paths import FastStableDiffusionPaths |
| 22 | +from PIL.ImageQt import ImageQt |
| 23 | +from PyQt5 import QtCore, QtWidgets |
| 24 | +from PyQt5.QtCore import QSize, Qt, QThreadPool, QUrl |
| 25 | +from PyQt5.QtGui import QDesktopServices, QPixmap |
1 | 26 | from PyQt5.QtWidgets import (
|
2 |
| - QWidget, |
3 |
| - QPushButton, |
| 27 | + QCheckBox, |
| 28 | + QComboBox, |
| 29 | + QFileDialog, |
4 | 30 | QHBoxLayout,
|
5 |
| - QVBoxLayout, |
6 | 31 | QLabel,
|
7 | 32 | QLineEdit,
|
8 | 33 | QMainWindow,
|
| 34 | + QPushButton, |
| 35 | + QSizePolicy, |
9 | 36 | QSlider,
|
10 |
| - QTabWidget, |
11 | 37 | QSpacerItem,
|
12 |
| - QSizePolicy, |
13 |
| - QComboBox, |
14 |
| - QCheckBox, |
| 38 | + QTabWidget, |
15 | 39 | QTextEdit,
|
16 | 40 | QToolButton,
|
17 |
| - QFileDialog, |
| 41 | + QVBoxLayout, |
| 42 | + QWidget, |
18 | 43 | )
|
19 |
| -from PyQt5 import QtWidgets, QtCore |
20 |
| -from PyQt5.QtGui import QPixmap, QDesktopServices |
21 |
| -from PyQt5.QtCore import QSize, QThreadPool, Qt, QUrl |
22 | 44 |
|
23 |
| -from PIL.ImageQt import ImageQt |
24 |
| -from constants import ( |
25 |
| - LCM_DEFAULT_MODEL, |
26 |
| - LCM_DEFAULT_MODEL_OPENVINO, |
27 |
| - APP_NAME, |
28 |
| - APP_VERSION, |
29 |
| -) |
30 |
| -from frontend.gui.image_generator_worker import ImageGeneratorWorker |
31 |
| -from frontend.gui.img2img_widget import Img2ImgWidget |
32 |
| -from frontend.gui.image_variations_widget import ImageVariationsWidget |
33 |
| -from app_settings import AppSettings |
34 |
| -from paths import FastStableDiffusionPaths |
35 |
| -from frontend.utils import is_reshape_required |
36 |
| -from context import Context |
37 | 45 | from models.interface_types import InterfaceType
|
38 |
| -from constants import DEVICE |
39 |
| -from frontend.utils import enable_openvino_controls, get_valid_model_id |
40 |
| -from backend.models.lcmdiffusion_setting import DiffusionTask |
41 | 46 |
|
42 | 47 | # DPI scale fix
|
43 | 48 | QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
|
@@ -390,9 +395,10 @@ def create_settings_tab(self):
|
390 | 395 | def create_about_tab(self):
|
391 | 396 | self.label = QLabel()
|
392 | 397 | self.label.setAlignment(Qt.AlignCenter)
|
| 398 | + current_year = datetime.now().year |
393 | 399 | self.label.setText(
|
394 | 400 | f"""<h1>FastSD CPU {APP_VERSION}</h1>
|
395 |
| - <h3>(c)2023 - 2024 Rupesh Sreeraman</h3> |
| 401 | + <h3>(c)2023 - {current_year} Rupesh Sreeraman</h3> |
396 | 402 | <h3>Faster stable diffusion on CPU</h3>
|
397 | 403 | <h3>Based on Latent Consistency Models</h3>
|
398 | 404 | <h3>GitHub : https://github.com/rupeshs/fastsdcpu/</h3>"""
|
|
0 commit comments