Code Monkey home page Code Monkey logo

timeslide's People

Contributors

bpops avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

zententacles

timeslide's Issues

Rewrite GUI from scratch in PyQt6

I'm aware that Tkinter shows just a black window on macOS Monterey (possibly Bug Sur). I'm tired of this issue and will be converting over to PyQT instead.

Symlink deoldify

Current bootstrap copies the deoldify module from the cloned repo, but better to simply symlink it.

Ubuntu 22.04: _pickle.UnpicklingError: invalid load key, '<'.

Hello all,

I am unfortunately not a programmer and was happy to find this program to colorize my old photos.

The installation worked without a problem under Ubuntu 22.04 and the program also starts.

But during the execution it crashes. The following is the message from the console:

 timeslide$ python timeslide.py
NumExpr defaulting to 8 threads.
/home/joern/Github/timeslide/venv/lib/python3.9/site-packages/fastai/data_block.py:442: UserWarning: Your training set is empty. If this is by design, pass `ignore_empty=True` to remove this warning.
  warn("Your training set is empty. If this is by design, pass `ignore_empty=True` to remove this warning.")
/home/joern/Github/timeslide/venv/lib/python3.9/site-packages/fastai/data_block.py:444: UserWarning: Your validation set is empty. If this is by design, use `split_none()`
                 or pass `ignore_empty=True` when labelling to remove this warning.
  warn("""Your validation set is empty. If this is by design, use `split_none()`
Traceback (most recent call last):
  File "/home/joern/Github/timeslide/timeslide.py", line 317, in slideTime
    colorizer = get_image_colorizer(artistic=artistic)
  File "/home/joern/Github/timeslide/deoldify/visualize.py", line 444, in get_image_colorizer
    return get_stable_image_colorizer(root_folder=root_folder, render_factor=render_factor)
  File "/home/joern/Github/timeslide/deoldify/visualize.py", line 453, in get_stable_image_colorizer
    learn = gen_inference_wide(root_folder=root_folder, weights_name=weights_name)
  File "/home/joern/Github/timeslide/deoldify/generators.py", line 19, in gen_inference_wide
    learn.load(weights_name)
  File "/home/joern/Github/timeslide/venv/lib/python3.9/site-packages/fastai/basic_train.py", line 265, in load
    state = torch.load(source, map_location=device)
  File "/home/joern/Github/timeslide/venv/lib/python3.9/site-packages/torch/serialization.py", line 713, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/home/joern/Github/timeslide/venv/lib/python3.9/site-packages/torch/serialization.py", line 920, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '<'.

Any tips on what I can try?

tooltips

require tooltips for things that necessitate explanation, e.g., render factor

Crash on replace existing file

If try to save to a file that exists, and select "Replace," python will crash. E.g.,

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'ROSP: sandbox extension failure: nil result or wrong class type ((null)) for finalURL (file:///Users/<username>/Desktop/Untitled, /Users/<username>/Desktop/Untitled)!'

Batch mode

batch mode to do all files with specified parameters from a folder, or multi-file selection.

Image Comparison Slider

Instead of new image simply replacing old image.

Image comparison slider so that user can slide between old and new images. I can't find any examples of this being done in python. Could prove difficult. Might have to use tkinter lines drawn to the canvas, and in realtime crop top image.

include stable model

currently only have artistic model; should also include stable that might help with zombie limbs

widen window

current window is too small; even before we get window scaling implemented, the window should at least be wider to allow for easier analysis of the result.

optional colorize

Colorize is not the only intended method for this project. Allow for optional enabling/disabling colorizing.

Reorganize GUI layout

propose:
step 1: load old photo

  • URL or local file
    step 2: parameters
  • colorize?
  • render factor
  • super resolution?
  • resolution factor
    step 3: Time slide!
    step 4; save as

URL loading

URLs always correctly load as the old photo in the canvas, but often the url is rejected when colorized. Do not know reason, but issue is probably somewhere in deoldify's visualize.py?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.