pablovela5620 commited on
Commit
f503434
1 Parent(s): 169b74e

Add support for large file storage in examples folder

Browse files
.gitattributes CHANGED
@@ -35,4 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  # GitHub syntax highlighting
37
  pixi.lock linguist-language=YAML
38
-
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  # GitHub syntax highlighting
37
  pixi.lock linguist-language=YAML
38
+ examples/** filter=lfs diff=lfs merge=lfs -text
.gitignore CHANGED
@@ -160,6 +160,5 @@ cython_debug/
160
  #.idea/
161
  # pixi environments
162
  .pixi
163
- samples/*
164
  checkpoints/*
165
 
 
160
  #.idea/
161
  # pixi environments
162
  .pixi
 
163
  checkpoints/*
164
 
examples/146391_DT.png ADDED

Git LFS Details

  • SHA256: 6ca578ce029400c1a3c4402024f808dd0c661cacbf682659c77330db73c11234
  • Pointer size: 131 Bytes
  • Size of remote file: 367 kB
examples/169332_DT.png ADDED

Git LFS Details

  • SHA256: 5e783ca18e9105ddf994af1bf722923dee75dcc01ad2957c570eeb2f3a98541b
  • Pointer size: 131 Bytes
  • Size of remote file: 311 kB
examples/197990_DT.png ADDED

Git LFS Details

  • SHA256: 63c5d6248e954f9ecef3ac0edd0e0da8caeab94ac36b229d45d5d1cd93cef2c0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.41 MB
examples/224596_DT.png ADDED

Git LFS Details

  • SHA256: 9a264315baf06d801bee3b09f632a874ecbe9bbabb5a79c65297d1b833a37faa
  • Pointer size: 131 Bytes
  • Size of remote file: 241 kB
examples/228364_ALI.png ADDED

Git LFS Details

  • SHA256: 7cb2f860cdb9f9b294336572685708b46a3c4e4900a8b90101f5a8e88ee7b2f0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.69 MB
examples/228466_ALI.png ADDED

Git LFS Details

  • SHA256: faffc2954a2b52dd797fe0c4f298ec2e6120f493126085ca599dafd54dede264
  • Pointer size: 132 Bytes
  • Size of remote file: 1.95 MB
examples/232334_ALI.png ADDED

Git LFS Details

  • SHA256: 77375d151d295c4c9d28ced44cbdabb15c49e5189e1dab152cbc47279f7d4f64
  • Pointer size: 131 Bytes
  • Size of remote file: 990 kB
examples/office_01.png ADDED

Git LFS Details

  • SHA256: 5807e2616e6fbd989362ef6ddbc5f5b1dd7edd9077fdfe718946f21d053a8799
  • Pointer size: 131 Bytes
  • Size of remote file: 399 kB
examples/office_01.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5b2b9b72e04c2cd30d82a7ce2ce20979100c1f83a6eadfdcf513f2eb81d9d8f
3
+ size 28
examples/office_02.png ADDED

Git LFS Details

  • SHA256: 7aee158adddb0d3783bb95ba0e28262603f7d5cb01205cab155e1fd246677c15
  • Pointer size: 131 Bytes
  • Size of remote file: 377 kB
examples/office_02.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5b2b9b72e04c2cd30d82a7ce2ce20979100c1f83a6eadfdcf513f2eb81d9d8f
3
+ size 28
examples/office_03.png ADDED

Git LFS Details

  • SHA256: 9b6d27dfefc91677b6caa0f9238193fcdcbcbef759dc37ae73ad448932cf6108
  • Pointer size: 131 Bytes
  • Size of remote file: 409 kB
examples/office_03.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5b2b9b72e04c2cd30d82a7ce2ce20979100c1f83a6eadfdcf513f2eb81d9d8f
3
+ size 28
examples/office_04.png ADDED

Git LFS Details

  • SHA256: 330f720c732edff5bee6aa9126280afd2f6cb697f6bd1557ef6d2ac7089fd5a6
  • Pointer size: 131 Bytes
  • Size of remote file: 417 kB
examples/office_04.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5b2b9b72e04c2cd30d82a7ce2ce20979100c1f83a6eadfdcf513f2eb81d9d8f
3
+ size 28
examples/office_05.png ADDED

Git LFS Details

  • SHA256: 07ffc51e4937851cc9f43e198945d839283804e566130e4bda29a64053d0d4a3
  • Pointer size: 131 Bytes
  • Size of remote file: 427 kB
examples/office_05.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5b2b9b72e04c2cd30d82a7ce2ce20979100c1f83a6eadfdcf513f2eb81d9d8f
3
+ size 28
examples/office_06.png ADDED

Git LFS Details

  • SHA256: 4fe77b96e68894159a4cab0ae61777f05788add7b2ab5d75ad09a541c30defc1
  • Pointer size: 131 Bytes
  • Size of remote file: 366 kB
examples/office_06.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5b2b9b72e04c2cd30d82a7ce2ce20979100c1f83a6eadfdcf513f2eb81d9d8f
3
+ size 28
examples/office_07.png ADDED

Git LFS Details

  • SHA256: a92db04184e1fb4333ea811309dc872e4987ad8608297bd6b44c9b76ac1855e9
  • Pointer size: 131 Bytes
  • Size of remote file: 489 kB
examples/office_07.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5b2b9b72e04c2cd30d82a7ce2ce20979100c1f83a6eadfdcf513f2eb81d9d8f
3
+ size 28
examples/office_08.png ADDED

Git LFS Details

  • SHA256: 3872c8ab7e64c59591c0835fd77482dfdf41bbe8443fd43730acb850009604e2
  • Pointer size: 131 Bytes
  • Size of remote file: 492 kB
examples/office_08.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5b2b9b72e04c2cd30d82a7ce2ce20979100c1f83a6eadfdcf513f2eb81d9d8f
3
+ size 28
main.py CHANGED
@@ -7,10 +7,10 @@ import numpy as np
7
  import torch
8
  import torch.nn.functional as F
9
  from torchvision import transforms
10
- from PIL import Image
11
  import utils.utils as utils
12
 
13
  from models.dsine import DSINE
 
14
 
15
  device = torch.device("cpu")
16
 
@@ -69,11 +69,20 @@ with gr.Blocks() as demo:
69
  with gr.Row():
70
  input_img = gr.Image(label="Input image", image_mode="RGB")
71
  output_img = ImageSlider(label="Surface Normal", type="numpy")
72
- # output_img = gr.Image(label="Normal")
73
 
74
  btn = gr.Button("Predict")
75
  btn.click(fn=predict_normal, inputs=[input_img], outputs=[output_img])
76
 
 
 
 
 
 
 
 
 
 
 
77
  with Modal(visible=True, allow_user_close=False) as modal:
78
  gr.Markdown(
79
  """
 
7
  import torch
8
  import torch.nn.functional as F
9
  from torchvision import transforms
 
10
  import utils.utils as utils
11
 
12
  from models.dsine import DSINE
13
+ from pathlib import Path
14
 
15
  device = torch.device("cpu")
16
 
 
69
  with gr.Row():
70
  input_img = gr.Image(label="Input image", image_mode="RGB")
71
  output_img = ImageSlider(label="Surface Normal", type="numpy")
 
72
 
73
  btn = gr.Button("Predict")
74
  btn.click(fn=predict_normal, inputs=[input_img], outputs=[output_img])
75
 
76
+ example_files = list(Path("examples").glob("*.png"))
77
+ example_files.sort()
78
+ examples = gr.Examples(
79
+ examples=example_files,
80
+ inputs=[input_img],
81
+ outputs=[output_img],
82
+ fn=predict_normal,
83
+ cache_examples=False,
84
+ )
85
+
86
  with Modal(visible=True, allow_user_close=False) as modal:
87
  gr.Markdown(
88
  """