Commit afbfd694 authored by mac's avatar mac

c

parent a75dfed9
Pipeline #371 canceled with stages
......@@ -100,8 +100,9 @@ def img2Comix(args,net,device,image):
#image = load_image(os.path.join(args.input_dir, image_name), args.x32)
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
print('>>input img size='.img.size)
image = img_2_x32(image,args.x32)
print('>>img_2_x32 size='.img.size)
with torch.no_grad():
#print('----------torch.no_grad() handle')
#变成tensor数据后,形状变为CxHxW
......@@ -164,7 +165,7 @@ def video2comix(args):
# MPEG can not play in web
fourcc = cv2.VideoWriter_fourcc(*"MPEG")
fourcc = cv2.VideoWriter_fourcc(*"H264")
wh = (frame_width, frame_height)
#宽高32位格式化,不知道是不是会提高效率?
if args.x32:
......
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