Skip to content
Open
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e65c506
Easy fixe for import module
Hierosme Sep 16, 2024
9447c1b
Add en entry point script
Hierosme Sep 16, 2024
4ab460b
Migrate to pyproject.toml
Hierosme Sep 16, 2024
2dab89b
Everything is in place
Hierosme Sep 16, 2024
caa657c
More close
Hierosme Sep 16, 2024
17c0e49
Better file management
Hierosme Sep 18, 2024
d638031
Apply security recommendations about torch load external source
Hierosme Sep 18, 2024
23d1c5d
First time have something it work file by file
Hierosme Sep 18, 2024
22b3b43
Paths work really
Hierosme Sep 18, 2024
9824904
Better help
Hierosme Sep 18, 2024
6533964
Fixe interactive
Hierosme Sep 18, 2024
04dda37
--yes and --interactive are enabled
Hierosme Sep 18, 2024
2d3e965
enable --quantize disable --base64 , better doc
Hierosme Sep 18, 2024
71124ab
Increase minor version
Hierosme Sep 19, 2024
8e87412
Prepare changelogs for v1.1.1 publication
Hierosme Sep 19, 2024
595cc3a
Add image-go-nord CLI section into README.md
Hierosme Sep 19, 2024
3b4468a
Apply pyproject.toml pytest migration, it inclide pytest, pytest-cov …
Hierosme Sep 19, 2024
d74ae25
CLI 100% cover
Hierosme Sep 20, 2024
4300678
Fixe pylint warning
Hierosme Sep 23, 2024
66124bf
Add a / (os.sep) at the end or Target directory summary
Hierosme Sep 23, 2024
81f41c1
Add test for be sure to have the / (os.sep) on Target directory summary
Hierosme Sep 23, 2024
02daabf
Update README.md
TheJoin95 Oct 4, 2024
d4729df
Update pyproject.toml
Hierosme Aug 26, 2026
67db66b
Update setup.py
Hierosme Aug 26, 2026
7d55696
Update ImageGoNord/__init__.py
Hierosme Aug 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,6 @@ images/*processed*
images/*quantize*

# pycharm
.idea/
.idea/
/.project
/.pydevproject
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
# Changelog
All notable changes to this project will be documented in this file.

## 1.1.1 - 19 sept 2024
* Migrate to pyproject.toml module format
* Keep setuptools version inside setup.py, and permit to be overwritten by APPLICATION_VERSION environment variable
* Define submodule one by one `models`, `palettes` and `utility`
*
* ``image-go-nord`` CLI entry point
* Define a consistent ``argpare`` parser
* Define a class `ImageGoNordCLI` dedicated to the entry point
* Exit code management
* Define property getter/setter for `target`, `source` and `size`, where the logic is apply
* Force argparse to use they properties
* Add support for use files or directories as `target` and `source`
* Add support for `--add` it support colors, palette file, color name
* Add support for AVG `--add`
* Add support for AI `--ai` it use coloration over AI
* Add support for quantize `--quantize`
* Add support for `--resize` it permit to force size during the pre-processing
* Update README.md for introduce image-go-nord CLI
* Migrate pytest to pyproject.toml module format
* Add ``image-go-nord`` CLI test file
8 changes: 6 additions & 2 deletions ImageGoNord/GoNord.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,12 @@ def convert_image_by_model(self, image, use_model_cpu=False):
os.path.exists(os.path.dirname(palette_net.__file__) + '/FE.state_dict.pt')
and os.path.exists(os.path.dirname(palette_net.__file__) + '/RD.state_dict.pt')
):
FE.load_state_dict(torch.load(pkg_resources.open_binary(palette_net, "FE.state_dict.pt")))
RD.load_state_dict(torch.load(pkg_resources.open_binary(palette_net, "RD.state_dict.pt")))
FE.load_state_dict(torch.load(
pkg_resources.open_binary(palette_net, "FE.state_dict.pt"), weights_only=True)
)
RD.load_state_dict(torch.load(
pkg_resources.open_binary(palette_net, "RD.state_dict.pt"), weights_only=True)
)
else:
self.load_and_save_models()

Expand Down
9 changes: 8 additions & 1 deletion ImageGoNord/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# gonord version
__version__ = "1.2.0"
Comment thread
Hierosme marked this conversation as resolved.
Outdated

from ImageGoNord.GoNord import *
from .GoNord import GoNord, NordPaletteFile

__all__ = [
"NordPaletteFile",
"GoNord",
]
# gonord version use for build process
__version__ = "1.1.1"
Loading