Skip to content

Commit

Permalink
Change path logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Sreerag-ibtl committed Jun 3, 2021
1 parent 572d482 commit f7d455e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import glob
from tqdm import tqdm
import jittor as jt
from pathlib import Path

jt.flags.use_cuda = 1

Expand Down Expand Up @@ -43,7 +44,7 @@

combine_model.predict_shadow(mat_img)

output_file = 'ori'+ filename[-3:] +'.jpg'
output_file = 'ori'+ Path(fileName).stem +'.jpg'
print('Output file:',output_file)
cv2.imwrite(output_file,cv2.cvtColor(combine_model.generated, cv2.COLOR_BGR2RGB))
i = i + 1
Expand Down

0 comments on commit f7d455e

Please sign in to comment.