Compare commits
No commits in common. "21fe61ab41b1e47e1f66e5ce3aad91cde23bbfd1" and "33670e06597d738fdfd6a7811d2c2baa872704d6" have entirely different histories.
21fe61ab41
...
33670e0659
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 Jessie Wilson
|
||||
Copyright (c) 2023 jlw_4049
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
from pathlib import Path
|
||||
from argparse import ArgumentParser
|
||||
from frame_forge import GenerateImages
|
||||
from frame_forge.exceptions import FrameForgeError
|
||||
from frame_forge.utils import exit_application
|
||||
from image_generator import GenerateImages
|
||||
from image_generator.exceptions import ImageGeneratorError
|
||||
from image_generator.utils import exit_application
|
||||
|
||||
|
||||
program_name = "FrameForge"
|
||||
__version__ = "1.0.0"
|
||||
program_name = "Comparison Image Generator"
|
||||
__version__ = "1.1.0"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
@ -106,5 +106,5 @@ if __name__ == "__main__":
|
||||
img_gen = img_generator.process_images()
|
||||
if img_gen:
|
||||
exit_application(f"Output: {img_gen}", 0)
|
||||
except FrameForgeError as error:
|
||||
except ImageGeneratorError as error:
|
||||
exit_application(error, 1)
|
@ -6,8 +6,8 @@ from numpy import linspace
|
||||
from unidecode import unidecode
|
||||
import awsmfunc
|
||||
import vapoursynth as vs
|
||||
from frame_forge.exceptions import FrameForgeError
|
||||
from frame_forge.utils import get_working_dir, hex_to_bgr
|
||||
from image_generator.exceptions import ImageGeneratorError
|
||||
from image_generator.utils import get_working_dir, hex_to_bgr
|
||||
|
||||
|
||||
class GenerateImages:
|
||||
@ -362,7 +362,7 @@ class GenerateImages:
|
||||
frame += 1
|
||||
b_frames[i] = frame
|
||||
except ValueError:
|
||||
raise FrameForgeError(
|
||||
raise ImageGeneratorError(
|
||||
"Error! Your encode file is likely an incomplete or corrupted encode"
|
||||
)
|
||||
|
||||
@ -579,7 +579,7 @@ class GenerateImages:
|
||||
def load_plugins(self):
|
||||
plugin_path = get_working_dir() / "img_plugins"
|
||||
if not plugin_path.is_dir() and not plugin_path.exists():
|
||||
raise FrameForgeError("Can not detect plugin directory")
|
||||
raise ImageGeneratorError("Can not detect plugin directory")
|
||||
else:
|
||||
for plugin in plugin_path.glob("*.dll"):
|
||||
self.core.std.LoadPlugin(Path(plugin).resolve())
|
@ -1,2 +1,2 @@
|
||||
class FrameForgeError(Exception):
|
||||
class ImageGeneratorError(Exception):
|
||||
"""Handle all exceptions thrown by image generation"""
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "frame-forge"
|
||||
version = "1.0.0"
|
||||
name = "image-generator"
|
||||
version = "1.1.0"
|
||||
description = "CLI to offload image generation to"
|
||||
authors = ["jlw4049 <jlw_4049@hotmail.com>"]
|
||||
license = "MIT"
|
||||
|
Loading…
Reference in New Issue
Block a user