Skip to content

Generate image of arbitrary dimension #2

@amarzullo24

Description

@amarzullo24

Dear,
Is it possible to generate images of arbitrary dimension?
I would like to try the framework using images of arbitrary size but I don't know what I have to change in the code. Images generated in the output grid are indeed squared.

It is sufficient for me also generate rectangular images as in the sky generator, but changing the parameters as in that files (i.e. multiplying by two the scale parameter) results in an error when running train.lua.

Here the stacktrace:

Number of free parameters in D: 11904795
Number of free parameters in G: 5179396
Copying model to gpu...
Loading new training data...
/home/user/torch/install/bin/luajit: inconsistent tensor size at /home/user/torch/pkg/torch/lib/TH/generic/THTensorCopy.c:7
stack traceback:
        [C]: at 0x7fd5bfd1cf60
        [C]: in function '__newindex'
        ./utils/nn_utils.lua:159: in function 'visualizeProgress'
        train.lua:232: in function 'main'
        train.lua:263: in main chunk
        [C]: in function 'dofile'
        ...user/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
        [C]: at 0x00405d50

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions