CycleGAN onnx file import error

GuuInTheHaus Posts: 6
edited August 2022 in SnapML #1

I trained a face conversion CycleGAN and exported it as an onnx file.
But when I import the .onnx file, It says
Resource import for /Users/youjin/Downloads/latest_net_G (1).onnx failed: The ONNX network's output '625' dimensions should be non-negative
I don't see why it says the '625' dimension is considered negative.
I am trying to figure out what is going on, but I still wanted to ask for any hints.

I set the output dimension using dynamic_axis, but it still gives me the same error message.


  • Bakari Mustafa
    Bakari Mustafa Posts: 174 🔥🔥🔥

    It's difficult to say what might be causing this error without more information about your CycleGAN model and how you are attempting to import it into Lens Studio. One thing you might try is to make sure that the output dimensions of your model are correctly set to be non-negative. You could also try looking at the ONNX file itself to see if there are any issues with the way the model is structured. If you're still having trouble, it might be helpful to share more details about your model and the steps you are taking to import it into Lens Studio.