NVlabs / imaginaire

NVIDIA's Deep Imagination Team's PyTorch Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while inferencing COCO-FUNIT model

Manjuphoenix opened this issue · comments

Replicating the repository through docker as mentioned in the installation readme
Was able to create the docker image and start the container
Downloaded the sample test dataset by executing the command:
python scripts/download_test_data.py --model_name coco_funit
But while running the inference command i.e. :
python inference.py --single_gpu --config configs/projects/coco_funit/animal_faces/base64_bs8_class149.yaml --output_dir projects/coco_funit/output/animal_faces

It throws the below error:

root@937f18ea3ce4:/home/manjunath/imaginaire# python inference.py --single_gpu \

--config configs/projects/coco_funit/animal_faces/base64_bs8_class149.yaml
--output_dir projects/coco_funit/output/animal_faces
/opt/conda/lib/python3.8/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:569: FutureWarning: In the future np.object will be defined as the corresponding NumPy scalar.
(np.object, string),
Traceback (most recent call last):
File "inference.py", line 13, in
from imaginaire.utils.logging import init_logging
File "/home/manjunath/imaginaire/imaginaire/utils/logging.py", line 10, in
from imaginaire.utils.meters import set_summary_writer
File "/home/manjunath/imaginaire/imaginaire/utils/meters.py", line 11, in
from torch.utils.tensorboard import SummaryWriter
File "/opt/conda/lib/python3.8/site-packages/torch/utils/tensorboard/init.py", line 13, in
from .writer import FileWriter, SummaryWriter # noqa: F401
File "/opt/conda/lib/python3.8/site-packages/torch/utils/tensorboard/writer.py", line 13, in
from tensorboard.summary.writer.event_file_writer import EventFileWriter
File "/opt/conda/lib/python3.8/site-packages/tensorboard/summary/init.py", line 22, in
from tensorboard.summary import v1 # noqa: F401
File "/opt/conda/lib/python3.8/site-packages/tensorboard/summary/v1.py", line 23, in
from tensorboard.plugins.histogram import summary as _histogram_summary
File "/opt/conda/lib/python3.8/site-packages/tensorboard/plugins/histogram/summary.py", line 35, in
from tensorboard.plugins.histogram import summary_v2
File "/opt/conda/lib/python3.8/site-packages/tensorboard/plugins/histogram/summary_v2.py", line 35, in
from tensorboard.util import tensor_util
File "/opt/conda/lib/python3.8/site-packages/tensorboard/util/tensor_util.py", line 20, in
from tensorboard.compat.tensorflow_stub import dtypes, compat, tensor_shape
File "/opt/conda/lib/python3.8/site-packages/tensorboard/compat/tensorflow_stub/init.py", line 22, in
from .dtypes import as_dtype # noqa
File "/opt/conda/lib/python3.8/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py", line 569, in
(np.object, string),
File "/opt/conda/lib/python3.8/site-packages/numpy/init.py", line 305, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'object'.
np.object was a deprecated alias for the builtin object. To avoid this error in existing code, use object by itself. Doing this will not modify any behavior and is safe.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations