Skip to content

Commit

Permalink
bug fixed (google-research#179)
Browse files Browse the repository at this point in the history
Co-authored-by: Klaus Greff <[email protected]>
  • Loading branch information
taiya and Qwlouse authored Apr 12, 2022
1 parent 2ad946d commit 9a167f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ dist/
shapenet2kubric/shapenet2kubric.log
examples/KuBasic/Cone/*
Dockerfile
output_tmp/*
18 changes: 3 additions & 15 deletions kubric/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from absl.flags import argparse_flags

# Copyright 2022 The Kubric Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import argparse
import collections
import copy
Expand All @@ -50,11 +38,11 @@
# Kubric argparser
# --------------------------------------------------------------------------------------------------

class ArgumentParser(argparse.ArgumentParser):
class ArgumentParser(argparse_flags.ArgumentParser):
"""An argumentparser with default options, and compatibility with the Blender REPL."""

def __init__(self, *args, **kwargs):
argparse.ArgumentParser.__init__(self, *args, **kwargs)
super().__init__(*args, **kwargs)

# --- default arguments for kubric
self.add_argument("--frame_rate", type=int, default=24,
Expand Down

0 comments on commit 9a167f7

Please sign in to comment.