Closed gmerrall closed 5 years ago
That's quite odd...You haven't altered that visualize.py file locally at all besides the re-cast you mentioned..?
Not AFAIK unless I monkeyed with it when trying to solve the previous issue with images downloaded via git cmdline. I'll revert the file and see if that fixes it.
Had another minor issue when running from command line
Looked like the output path wasn't being handled correctly?
In fasterai/visualize.py plot_transformed_image() accepts path as a string and converts it to a Path object but by the time we get to calling self._save_result_image() it's reverted back to a string. Maybe the casting on line 31 is by reference and not by value - I don't know enough about internals to know if that's the case.
Anyway, I just re-cast in the call to _save_result_image() and we're all hunky dory again
self._save_result_image(Path(path), result)
EDIT: Ubuntu Xenial 16.,06 Python 3.6.6 :: Anaconda, Inc.