Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Can I use a Conv1d model with tensorflow_to_barracuda.py?

Discussion in 'ML-Agents' started by ShayanRiyaz, Apr 19, 2020.

  1. ShayanRiyaz

    ShayanRiyaz

    Joined:
    Mar 10, 2020
    Posts:
    3
    Hi, Everyone I built a conv1d neural network using tensorflow 2.0.0. I converted the model into a .pb file. Can anyone tell me if this model can be converted


    So far every time I try to run this file. I get this error

    ```
    File "tensorflow_to_barracuda.py", line 28, in <module>
    tf2bc.convert(args.source_file, args.target_file, args.trim_unused_by_output, args)
    File "D:\OneDrive\Documents\CyberSens\envs\ml-agents\ml-agents\mlagents\trainers\tensorflow_to_barracuda.py", line 1549, in convert
    i_model.ParseFromString(f.read())
    google.protobuf.message.DecodeError: Error parsing message
    ```
     

    Attached Files:

  2. celion_unity

    celion_unity

    Unity Technologies

    Joined:
    Jun 12, 2019
    Posts:
    289
  3. ShayanRiyaz

    ShayanRiyaz

    Joined:
    Mar 10, 2020
    Posts:
    3
    Hi I followed the guidelines. However, the error is still persistent.

    Here's my updated model
     

    Attached Files:

  4. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    @ShayanRiyaz,
    If you are still using Conv1D, you will get the error as it is not supported.