File size: 369 Bytes
c954f09
 
 
 
a8eef7d
c954f09
 
 
a8eef7d
 
 
c954f09
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from ModelLoader import ModelLoader
import os

def main():
    model = ModelLoader(gpu_ids='', max_img_wh=512)
    model.load()
    # Test
    sample = os.path.join(os.path.dirname(__file__), 'examples', 'rawimg.png')
    # sample = os.path.join(os.path.dirname(__file__), 'examples', 'test.jpg')
    img = model.inference(src=sample)
    img.show() # PIL Image

main()