Update test_wholeimage_swap_multispecific.py
by adding :
import warnings
warnings.filterwarnings("ignore")
we can get rid of the numerous errors and warnings that appear while doing image swaps.
This commit is contained in:
@@ -24,7 +24,8 @@ import torch.nn as nn
|
||||
from util.norm import SpecificNorm
|
||||
import glob
|
||||
from parsing_model.model import BiSeNet
|
||||
|
||||
import warnings
|
||||
warnings.filterwarnings("ignore")
|
||||
def lcm(a, b): return abs(a * b) / fractions.gcd(a, b) if a and b else 0
|
||||
|
||||
transformer_Arcface = transforms.Compose([
|
||||
|
||||
Reference in New Issue
Block a user