fullfanta / multimodal_transfer Goto Github PK
View Code? Open in Web Editor NEWtensorflow implementation of 'Multimodal Transfer: A Hierarchical Deep Convolutional Neural Network for Fast Artistic Style Transfer'
tensorflow implementation of 'Multimodal Transfer: A Hierarchical Deep Convolutional Neural Network for Fast Artistic Style Transfer'
Hi wanted to try this algorithm to see results on large images.
Running into the following exception when loading the graph:
ValueError: Tensor("Placeholder:0", shape=(1, 1200, 630, 3), dtype=float32) must be from the same graph as name: "style_subnet/Shape_1"
hi,i just wonder how long does it take to complete a training session.I want to check my code against reference training time.so it would be nice if you could tell me how much time the CPU and GPU take respectively.thanks a lot!
Hi, I try to run your code, found there will be 3 images output (256,512,1024), are they Singular Transfer result, how can I get Multimodal Transfer result as your paper said
THank you!
I was training the model and saved it, now I am trying to load but unable to do. I have seen in the previous posts as well, but reference links are not working.
Code snippet:
#load model
with tf.io.gfile.GFile(args.model, "rb") as f:
graph_def = tf.compat.v1.GraphDef()
graph_def.ParseFromString(f.read())
# with tf.Graph().as_default() as graph:
generated_image_1, generated_image_2, generated_image_3, = tf.graph_util.import_graph_def(
graph_def,
input_map={'input_image' : input_tensor, 'short_edge_1' : short_edge_1, 'short_edge_2' : short_edge_2, 'short_edge_3' : short_edge_3},
return_elements=['style_subnet/conv-block/resize_conv_1/output:0', 'enhance_subnet/resize_conv_1/output:0', 'refine_subnet/resize_conv_1/output:0'],
producer_op_list=None
)
Error
Traceback (most recent call last):
File "stylize.py", line 97, in <module>
main()
File "stylize.py", line 57, in main
graph_def.ParseFromString(f.read())
google.protobuf.message.DecodeError: Error parsing message with type 'tensorflow.GraphDef'
Note: If need more information about this, will sure post add it here. Let me know
Traceback (most recent call last):
File "stylize.py", line 86, in <module>
main()
File "stylize.py", line 54, in main
producer_op_list=None
File "C:\Users\shubham\myenv\lib\site-packages\tensorflow_core\python\util\deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "C:\Users\shubham\myenv\lib\site-packages\tensorflow_core\python\framework\importer.py", line 405, in import_graph_def
producer_op_list=producer_op_list)
File "C:\Users\shubham\myenv\lib\site-packages\tensorflow_core\python\framework\importer.py", line 505, in _import_graph_def_internal
raise ValueError(str(e))
ValueError: node 'Placeholder' in input_map does not exist in graph (input_map entry: input_image:0->Placeholder:0)
Hi, thx for your great code! However, when I run train.py, I've got Check failed: CUDA_SUCCESS == dynload::cuCtxSetCurrent(cuda_context->context()) (0 vs. 4)
Could you help me?
In the paper, training images of 512x512 are resized from those w,h>=480 in MSCOCO, but how to get 1024x1024 since there is no that high resolution in MSCOCO?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.