mirror of
https://git.mirrors.martin98.com/https://github.com/xuebinqin/U-2-Net
synced 2025-08-15 10:05:52 +08:00
fix path problem on windows
This commit is contained in:
parent
7d141803a7
commit
0c7b881f92
@ -172,7 +172,7 @@ def main():
|
|||||||
im_portrait = inference(net,im_face)
|
im_portrait = inference(net,im_face)
|
||||||
|
|
||||||
# save the output
|
# save the output
|
||||||
cv2.imwrite(out_dir+"/"+im_list[i].split('/')[-1][0:-4]+'.png',(im_portrait*255).astype(np.uint8))
|
cv2.imwrite(os.path.join(out_dir,im_list[i].split(os.sep)[-1][0:-4]+'.png'),(im_portrait*255).astype(np.uint8))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user