Fabrik icon indicating copy to clipboard operation
Fabrik copied to clipboard

cannot load Lenet.pbtxt

Open srika91 opened this issue 6 years ago • 8 comments

Attached the file for reference ,renamed the extension as .txt to upload here.Is there a certain way or initialization we need to follow to create the .pbtxt files to load in fabrik?Any help on this will be great.

lenet.txt

srika91 avatar Oct 03 '18 14:10 srika91

You have to parse the pbtxt file into a GraphDef object. This following link describes one way to do it.

thatbrguy avatar Oct 03 '18 18:10 thatbrguy

@thatbrguy thank you for the reply.I was not clear i guess.The attached file in the first comment am not able to import it in Fabrik,anything wrong with that pbtxt file or any steps we need to follow to create pbtxt files compatible with fabrik?

srika91 avatar Oct 04 '18 08:10 srika91

@srika91 Ah I see. The pbtxt created by tf.train.write_graph() should be perfectly fine to import on Fabrik. It would be more helpful if you can explain a bit more about the error.

thatbrguy avatar Oct 04 '18 14:10 thatbrguy

@thatbrguy sure would love to,but the fabrik does not provide any error statements related to tensorflow.It throws error related to Django. #379 also is similar to this i guess but not sure.Will post the Django related errors soon. The provided "lenet.txt" file can be renamed to "lenet.pbtxt" and can be imported in fabrik as well to see the errors.

srika91 avatar Oct 04 '18 16:10 srika91

fabrik_error.txt Attached the error file for your reference @thatbrguy

srika91 avatar Oct 05 '18 11:10 srika91

@srika91 what is the dimension of input layer?

Ram81 avatar Oct 06 '18 11:10 Ram81

Sorry for the late response. It's mostly a problem with the padding or shape calculation logic in tensorflow_app/views/import_graphdef.py. I think adding error or exception handling statements there should be enough. What do you think? @Ram81

thatbrguy avatar Oct 06 '18 13:10 thatbrguy

can I work on this issue or someone is already working on this

Gurpreetsingh9465 avatar Oct 07 '18 06:10 Gurpreetsingh9465