Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Cannot run pretrained models #9

@Gigibulid

Description

@Gigibulid

Hi, I was not able to run the pre-trained models. In particular, I tried to use only one image from CelebA dataset and I got this error:
(venv) D:\PycharmProjects\FaderNetwork\venv>python interpolate.py --model_path models/young.pth --n_images 10 --n_interpolations
10 --alpha_min 10.0 --alpha_max 10.0 --output_path young.png

INFO - 08/04/18 01:01:49 - 0:00:00 - 1 / 0 / 0 images with attributes for train / valid / test sets
Traceback (most recent call last):
File "interpolate.py", line 64, in
data, attributes = load_images(params)
File "D:\PycharmProjects\FaderNetwork\venv\src\loader.py", line 82, in load_images
log_attributes_stats(train_attributes, valid_attributes, test_attributes, params)
File "D:\PycharmProjects\FaderNetwork\venv\src\loader.py", line 39, in log_attributes_stats
logger.debug('Valid %s: %s' % (attr_name, ' / '.join(['%.5f' % valid_attributes[:, k + i].mean() for i in range(n_cat)])))
File "D:\PycharmProjects\FaderNetwork\venv\src\loader.py", line 39, in
logger.debug('Valid %s: %s' % (attr_name, ' / '.join(['%.5f' % valid_attributes[:, k + i].mean() for i in range(n_cat)])))
IndexError: too many indices for tensor of dimension 1

Could you please help me?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions