Barbershop icon indicating copy to clipboard operation
Barbershop copied to clipboard

Can't run main.py with sample images

Open ywon0925 opened this issue 2 years ago • 0 comments

Hi, I set up the environment on google Colab and trying to test-run the code.

I first ran the below code and got image 90.png ready.

python align_face.py

And, when I try to run the code I'm getting the following error:

python main.py --im_path1 90.png --im_path2 15.png --im_path3 117.png --sign realistic --smooth 5
Align Step 2:   0%|          | 0/100 [00:00<?, ?it/s]/usr/local/envs/Barbershop/lib/python3.7/site-packages/torch/nn/functional.py:3103: UserWarning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and now uses scale_factor directly, instead of relying on the computed output size. If you wish to restore the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details. 
  warnings.warn("The default behavior for interpolate/upsample with float scale_factor changed "
/usr/local/envs/Barbershop/lib/python3.7/site-packages/torch/nn/functional.py:3063: UserWarning: Default upsampling behavior when mode=bicubic is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details.
  "See the documentation of nn.Upsample for details.".format(mode))

I tried changing align_corners & recompute_scale_factor and that did not fix the problem.

How could I possibly solve the problem?

ywon0925 avatar Mar 07 '22 08:03 ywon0925