Alican Akca commited on
Commit
87bffa7
1 Parent(s): 631eb43

GIF and Video Processing

Browse files
app.py CHANGED
@@ -34,7 +34,7 @@ def initilize(media,pixel_size,checkbox1):
34
  input_size=320,
35
  output_dir='output',
36
  visualization=True)
37
- result = combine.combiner(images = pixL().toThePixL([result[0]['front'][:,:,::-1], result[0]['mask']],
38
  pixel_size),
39
  background_image = media)
40
  else:
@@ -44,14 +44,15 @@ def initilize(media,pixel_size,checkbox1):
44
  return [None, result, 'cache.png']
45
 
46
  inputs = [gr.File(label="Media"),
47
- gr.Slider(4, 100, value=12, step = 2, label="Pixel Size"),
48
- gr.Checkbox(label="Object-Oriented Inference", value=False)]
 
49
  outputs = [gr.Video(label="Pixed Media"),
50
  gr.Image(label="Pixed Media"),
51
  gr.File(label="Download")]
52
 
53
  title = "Pixera: Create your own Pixel Art"
54
- description = """Mobile applications will have released soon ^^ """
55
 
56
  gr.Interface(fn = initilize,
57
  inputs = inputs,
 
34
  input_size=320,
35
  output_dir='output',
36
  visualization=True)
37
+ result = combine().combiner(images = pixL().toThePixL([result[0]['front'][:,:,::-1], result[0]['mask']],
38
  pixel_size),
39
  background_image = media)
40
  else:
 
44
  return [None, result, 'cache.png']
45
 
46
  inputs = [gr.File(label="Media"),
47
+ gr.Slider(4, 100, value=12, step = 2, label="Pixel Size"),
48
+ gr.Checkbox(label="Object-Oriented Inference", value=False)]
49
+
50
  outputs = [gr.Video(label="Pixed Media"),
51
  gr.Image(label="Pixed Media"),
52
  gr.File(label="Download")]
53
 
54
  title = "Pixera: Create your own Pixel Art"
55
+ description = """- Mobile applications will have released soon ^^. \n- Object-Oriented Inference is currently only available for images."""
56
 
57
  gr.Interface(fn = initilize,
58
  inputs = inputs,
examples/pixelArt/__pycache__/combine.cpython-38.pyc ADDED
Binary file (1.27 kB). View file
 
methods/__pycache__/img2pixl.cpython-38.pyc ADDED
Binary file (2.38 kB). View file
 
methods/__pycache__/media.cpython-38.pyc ADDED
Binary file (1.33 kB). View file
 
methods/media.py CHANGED
@@ -29,4 +29,4 @@ class Media:
29
  for i in range(len(frames)):
30
  out.write(frames[i])
31
  out.release()
32
- return [output_file, None, 'cache.gif']
 
29
  for i in range(len(frames)):
30
  out.write(frames[i])
31
  out.release()
32
+ return [output_file, None, 'cache.gif']
output/result_0.png ADDED
output/result_mask_0.png ADDED