question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

To anyone who would like to see a CLI for DeOldify...

See original GitHub issue

In reference to #389 posted by @eadmaster

I’m considering releasing some CLI scripts in the future as I’ve already (mostly) developed them for use in production at my company. It does not require jupyter lab to be running at all. You just call the script in the Terminal and it runs and gives you feedback while processing the files, it batches files, and batches render_factor.

Currently, I’m launching it from a socket server, but I can easily modify the code to have it also run in standalone with flags in the command line. Doing this requires modifying some of the core files though and not just the single script that fires up DeOldify, so it would require you to edit functions, add chunks of code, or overwrite the files that are in sub-directories. Sorry, but I don’t have the time or desire to maintain a fork.

If anyone else thinks this would be useful to them, up-vote this post or comment below—you can also mention what models you would like to see work like this—so I can decide if it’s worth the time to code and package everything up in the future once my project has been released and has had some time to gain traction.

It will also take time to properly test and debug it and a clean install of DeOldify as I think I broke the training in the process, but didn’t give a shit since I didn’t need it 🤭😬

Bear in mind that I only work on macOS currently, have no way to test on other platforms, and will not be providing support for the tools—though I would provide brief installation instructions and a breakdown of how to use them. I also use other dependencies you will need to install for it to function and an .env file, unless I strip that out of it. It should work on Linux just fine, but no idea about Windows or CUDA.

I’ve already discussed this with @jantic and he’s cool with it, so pester me about it instead of him from now on if you really desire a command line tool. 😉 It won’t be at least for several months, but during that time, I can gauge whether or not it’s worth mine to do this.

Feel free to close this post as anyone who wants this will probably search for it anyway.

Sneak Peak:

DeOldify_NewIfied

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
janticcommented, Nov 29, 2021

Thanks @KeygenLLC !

0reactions
Mityugincommented, Jun 15, 2022

I made a single python file to run deoldify through CLI. Just copy run_local.py to the root directory and run:

python run_local.py --input ./test_images/1.jpg --output ./test_images/ --model artistic

N.B. only tested on linux

running same command gives an error:

File “run_local.py”, line 8 <!DOCTYPE html> ^ SyntaxError: invalid syntax

Read more comments on GitHub >

github_iconTop Results From Across the Web

DeOldify/README.md at master - GitHub
A Deep Learning based project for colorizing and restoring old images (and video!) - DeOldify/README.md at master · jantic/DeOldify.
Read more >
DeOldify – How to Use AI and Setup Image Colorization Process
DeOldify is one such application which includes pre-trained weights, allowing you to colorize black and white images or video with minimal effort.
Read more >
How To Colorize Your Old Image & Videos using DeOldify? -
This model achieves vibrant color and detailed images, but you have to adjust the parameters a lot to get the best results.
Read more >
Bringing OLD IMAGES back to life with DEOLDIFY ... - YouTube
Get the code: https://github.com/jantic/DeOldifyGet the model here: https://data.deepai.org/ deoldify /ColorizeArtistic_gen.
Read more >
DeepLearning series Ep 7 : DeOldify AI based Image Coloriser
DeOldify Developer : Jason Antic https://github.com/janticProject page : https://github.com/jantic/DeOldifyWebsite : https:// deoldify.ai/Try ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found