forked from Prabhav2B/Deep-Greetings
/
main.py
48 lines (39 loc) · 1.07 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from tkinter import *
import pandas as pd
from added_st import main
from input import input
from superimpose import superimpose
from auto_fest import get_fest
import os
import sys
import tensorflow as tf
import numpy as np
import scipy.io
import scipy.misc
import pandas as pd
class Body():
def __init__(self):
super().__init__()
def get_cover_page():
im_path=input()[0]
vid_path=input()[1]
style_layer=["conv1_1","conv2_1","conv3_1","conv4_1","conv5_1"]
#intializing output directory
output_dir="./output"
fest=get_fest()
image_for_style="./"+fest+".jpg"
content_image=im_path
image_width=800
image_height=600
color_channels=3
beta=5#less content ratio
alpha=200#or else try 200
l=1e4
mean_values= np.array([123.68, 116.779, 103.939]).reshape((1,1,1,3))
vgg = scipy.io.loadmat("vgg.mat")
layers = vgg['layers'] # 0 l 0 0 2 0 0
"""
automate text_retreival
"""
main()
superimpose()