Commit f77b16d3 authored by Anjith GEORGE's avatar Anjith GEORGE
Browse files

Changed imports to _legacy

parent f2f7c8b9
Pipeline #43945 failed with stage
in 8 minutes and 56 seconds
......@@ -11,7 +11,7 @@ class FaceCropper():
"""
def __init__(self, cropped_height, cropped_width, color_channel='rgb'):
# the face cropper
from bob.bio.face.preprocessor import FaceCrop
from bob.bio.face_legacy.preprocessor import FaceCrop
cropped_image_size = (cropped_height, cropped_width)
right_eye_pos = (cropped_height // 5, cropped_width // 4 -1)
left_eye_pos = (cropped_height // 5, cropped_width // 4 * 3)
......
import numpy
from bob.bio.base.extractor import Extractor
from bob.bio.base_legacy.extractor import Extractor
class DummyExtractor(Extractor):
""" The Dummy class for passing the extracted embedding.
......
......@@ -5,7 +5,7 @@ from torch.autograd import Variable
import torchvision.transforms as transforms
from bob.learn.pytorch.architectures import DeepPixBiS
from bob.bio.base.extractor import Extractor
from bob.bio.base_legacy.extractor import Extractor
import logging
logger = logging.getLogger("bob.learn.pytorch")
......
......@@ -5,7 +5,7 @@ from torch.autograd import Variable
import torchvision.transforms as transforms
from bob.learn.pytorch.architectures import FASNet
from bob.bio.base.extractor import Extractor
from bob.bio.base_legacy.extractor import Extractor
import logging
logger = logging.getLogger("bob.learn.pytorch")
......
......@@ -6,7 +6,7 @@ from torch.autograd import Variable
import torchvision.transforms as transforms
from bob.learn.pytorch.architectures import LightCNN29
from bob.bio.base.extractor import Extractor
from bob.bio.base_legacy.extractor import Extractor
class LightCNN29Extractor(Extractor):
""" The class implementing the feature extraction of LightCNN29 embeddings.
......
......@@ -6,7 +6,7 @@ from torch.autograd import Variable
import torchvision.transforms as transforms
from bob.learn.pytorch.architectures import LightCNN29v2
from bob.bio.base.extractor import Extractor
from bob.bio.base_legacy.extractor import Extractor
class LightCNN29v2Extractor(Extractor):
""" The class implementing the feature extraction of LightCNN29v2 embeddings.
......
......@@ -6,7 +6,7 @@ from torch.autograd import Variable
import torchvision.transforms as transforms
from bob.learn.pytorch.architectures import LightCNN9
from bob.bio.base.extractor import Extractor
from bob.bio.base_legacy.extractor import Extractor
class LightCNN9Extractor(Extractor):
""" The class implementing the feature extraction of LightCNN9 embeddings.
......
......@@ -5,7 +5,7 @@ from torch.autograd import Variable
import torchvision.transforms as transforms
from bob.learn.pytorch.architectures import MCCNN
from bob.bio.base.extractor import Extractor
from bob.bio.base_legacy.extractor import Extractor
import logging
logger = logging.getLogger("bob.learn.pytorch")
......
......@@ -5,7 +5,7 @@ from torch.autograd import Variable
import torchvision.transforms as transforms
from bob.learn.pytorch.architectures import MCCNNv2
from bob.bio.base.extractor import Extractor
from bob.bio.base_legacy.extractor import Extractor
import logging
logger = logging.getLogger("bob.learn.pytorch")
......
......@@ -5,7 +5,7 @@ from torch.autograd import Variable
import torchvision.transforms as transforms
from bob.learn.pytorch.architectures import MCDeepPixBiS
from bob.bio.base.extractor import Extractor
from bob.bio.base_legacy.extractor import Extractor
import logging
logger = logging.getLogger("bob.learn.pytorch")
......
......@@ -4,7 +4,7 @@ from torch.autograd import Variable
import torchvision.transforms as transforms
from bob.learn.pytorch.architectures.DltResNet import dltresnet34 as drn_arc
from bob.learn.pytorch.architectures.ResNet import resnet34 as resnet_arc
from bob.bio.base.preprocessor import Preprocessor
from bob.bio.base_legacy.preprocessor import Preprocessor
import bob.io.base
import torch.backends.cudnn as cudnn
import pickle
......
......@@ -31,7 +31,7 @@ requirements:
- bob.extension
- bob.core
- bob.io.base
- bob.bio.base
- bob.pad.base
- bob.io.image
- bob.ap
- numpy {{ numpy }}
......
......@@ -63,7 +63,7 @@ network (before loading it). ``_model``, ``_num_classes`` and ``_use_res`` are o
.. code:: python
from bob.bio.base.extractor import CallableExtractor
from bob.bio.base_legacy.extractor import CallableExtractor
extractor = CallableExtractor(lambda x: x)
extracted_directory = "preprocessed"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment