To anyone who would like to see a CLI for DeOldify...
See original GitHub issueIn 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:

Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:6 (1 by maintainers)

Top Related StackOverflow Question
Thanks @KeygenLLC !
running same command gives an error:
File “run_local.py”, line 8 <!DOCTYPE html> ^ SyntaxError: invalid syntax