hgupta01 / Weather_Effect_Generator

Code to generate adverse weather effect in RGB images
Apache License 2.0
19 stars 6 forks source link

Updated MiDaS_Depth_Estimation.py #4

Closed Abhishek0075 closed 2 months ago

Abhishek0075 commented 5 months ago

There was a small typo in the def parse_arguments() function at the default keyword : Before : parser.add_argument("--midas_model", type=str, deafuls="DPT_Large", help="Midas model name") After : parser.add_argument("--midas_model", type=str, default="DPT_Large", help="Midas model name")

This have been changed

Abhishek0075 commented 5 months ago

New changes were made in :- Fog_Effect_Generator.py : when we input single files to the function it was not saving the result MiDaS_Depth_Estimation.py It was having operand error as the operation when PIL reads an image it was giving a PILPngFile object which can't undergo further transformations so i converted it into a numpy array