zkmkarlsruhe / ofxTensorFlow2

TensorFlow 2 AI/ML library wrapper for openFrameworks
Other
113 stars 17 forks source link

trained model different format? #22

Closed paul-ferragut closed 2 years ago

paul-ferragut commented 2 years ago

I managed to train a model for pix2pix, however the output files are looking different than the included edge2shoe example.

2022-06-19 22_49_18-C__Users_plesk_Documents_coding_of_v0 11 2_vs2017_release_addons_ofxTensorFlow2_

I don't have assetsand variablesfolder and no .pb file. I would appreciate some more guidance for how to format my trained model so I can use it with the example.

bytosaur commented 2 years ago

hey @paul-ferragut,

how did you train it ? Did you use the original repo or the one I put into the examples folder? my version has a main.py which calls this source file. Line 136 writes a model after every epoch to ''../bin/data/", which is the folder where the model should be for the openFrameworks. Please check the location ;)

paul-ferragut commented 2 years ago

thank you for your reply! no I didn't, I trained using instructions from https://github.com/affinelayer/pix2pix-tensorflow/ my bad I will try this way!

bytosaur commented 2 years ago

okok please check the README in the python folder ;)

bytosaur commented 2 years ago

From the first look it seems to be as easy as that... I would simply try to use as much of the folder structure, image properties and code as the original script. Image properties might be the one you will struggle with most. If needed I would write a separate script that transforms your data

paul-ferragut commented 2 years ago

thank you for the help @bytosaur I got everything working :) Should have read the readme better . Now I will have some fun testing datasets :)