Skip to content

Commit

Permalink
Fixed naming 🔤
Browse files Browse the repository at this point in the history
  • Loading branch information
manolo-lolo committed Jan 10, 2022
1 parent 0d85af6 commit ab8e47d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions configs/open_images_scene_images_transformer.yaml
Expand Up @@ -64,6 +64,7 @@ data:
crop_method: random-2d
random_flip: true
use_group_parameter: true
use_additional_parameters: true
encode_crop: true
validation:
target: taming.data.annotated_objects_open_images.AnnotatedObjectsOpenImages
Expand All @@ -81,4 +82,5 @@ data:
crop_method: center
random_flip: false
use_group_parameter: true
use_additional_parameters: true
encode_crop: true
2 changes: 1 addition & 1 deletion scripts/make_scene_samples.py
Expand Up @@ -14,7 +14,7 @@
from tqdm import tqdm

from scripts.make_samples import get_parser, load_model_and_dset
from taming.data.conditional_builder.object_center_points_builder import CoordinatesCenterPointsConditionalBuilder
from taming.data.conditional_builder.objects_center_points import ObjectsCenterPointsConditionalBuilder
from taming.data.helper_types import BoundingBox, Annotation
from taming.data.annotated_objects_dataset import AnnotatedObjectsDataset
from taming.models.cond_transformer import Net2NetTransformer
Expand Down
3 changes: 2 additions & 1 deletion taming/data/annotated_objects_open_images.py
Expand Up @@ -81,7 +81,7 @@ def load_categories(csv_path: Path) -> Dict[str, Category]:


class AnnotatedObjectsOpenImages(AnnotatedObjectsDataset):
def __init__(self, **kwargs):
def __init__(self, use_additional_parameters: bool, **kwargs):
"""
@param data_path: is the path to the following folder structure:
open_images/
Expand Down Expand Up @@ -110,6 +110,7 @@ def __init__(self, **kwargs):
"""

super().__init__(**kwargs)
self.use_additional_parameters = use_additional_parameters

self.categories = load_categories(self.paths['class_descriptions'])
self.filter_categories()
Expand Down

0 comments on commit ab8e47d

Please sign in to comment.