Skip to content

issue running test example  #3

@gbernal

Description

@gbernal

HI @liuq99 Thank you for sharing your project.

I'm trying to run the test code following the instructions in the readme file

python -m edgegan.test --name=edgegan --dataroot=/home/PycharmProjects/EdgeGAN/data --dataset=bike --nomulticlasses --gpu=0

but I'm getting the following errors.

tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [100,8192] rhs shape= [114,8192]
         [[{{node save/Assign_56}}]]

During handling of the above exception, another exception occurred:
    err, "a mismatch between the current graph and the graph")
tensorflow.python.framework.errors_impl.InvalidArgumentError: Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Assign requires shapes of both tensors to match. lhs shape= [100,8192] rhs shape= [114,8192]
         [[node save/Assign_56 (defined at /.local/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py:1748) ]]

I'm guessing that it might be related to the data structure. Currently, this is how it is

EdegGAN
└───data 
   └──--bike
    └───train
       |   |    <file00>.png #data from the SketchyCOCO > Objects > Sketch > Train > 2 
       |   |    <file01>.png
       |   |    ...
       |   
    └───test
        |    <file00>.png # #data from the SketchyCOCO > Objects > Sketch > Val > 2 
        |    <file01>.png
        |    ...

Thank you and I look forward to your response.

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