Commit f41f38f6 authored by Himali saini's avatar Himali saini

added some files

parent c85f68bf
import imageio
import os
fnames = []
newNameFolder = ''
path = 'styled_images/'+newNameFolder
for img in os.listdir(path):
fnames.append(os.path.join(path+"/", img))
fnames.sort()
with imageio.get_writer('gifs/'+newNameFolder+".gif", mode='I',duration = 0.9) as writer:
for fname in fnames:
image = imageio.imread(fname)
writer.append_data(image)
import logging
import os
from xml.dom.minidom import Identified
#Author: @meetdoshi
class Logger:
'''
......@@ -10,11 +11,12 @@ class Logger:
_formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
def __new__(cls,*args,**kwargs):
if not cls._instance:
os.system("rm -rf Logs/")
os.mkdir("Logs/")
logHandler = logging.FileHandler("Logs/style_transfer.log")
identifier = 'content-reconstruction-mixed'
if not os.path.isdir("Logs/"):
os.mkdir("Logs/")
logHandler = logging.FileHandler("Logs/style_transfer_"+identifier+".log")
logHandler.setFormatter(cls._formatter)
cls._logHandler = logging.getLogger("Logs/style_transfer.log")
cls._logHandler = logging.getLogger("Logs/style_transfer_"+identifier+".log")
cls._logHandler.setLevel(logging.INFO)
cls._logHandler.addHandler(logHandler)
cls._instance = super(Logger, cls).__new__(cls,*args,**kwargs)
......@@ -33,4 +35,4 @@ if __name__ == "__main__":
ERROR = b.logger()
INFO.info("TEST")
ERROR.info("ERROR")
'''
'''
\ No newline at end of file
1508.06576/test/content.jpg

100 KB | W: | H:

1508.06576/test/content.jpg

38.7 KB | W: | H:

1508.06576/test/content.jpg
1508.06576/test/content.jpg
1508.06576/test/content.jpg
1508.06576/test/content.jpg
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment