Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I upload two image for this method? #13

Open
isgbuddy opened this issue Dec 9, 2019 · 3 comments
Open

How can I upload two image for this method? #13

isgbuddy opened this issue Dec 9, 2019 · 3 comments

Comments

@isgbuddy
Copy link

isgbuddy commented Dec 9, 2019

@app.route('/mix_images', methods=['POST'])
def mix_images():
try:
label1 = np.asarray(json.loads(request.form['label1']), dtype='float64')
label2 = np.asarray(json.loads(request.form['label2']), dtype='float64')
vector1 = np.asarray(json.loads(request.form['vector1']), dtype='float64')
vector2 = np.asarray(json.loads(request.form['vector2']), dtype='float64')

@pskl
Copy link

pskl commented Dec 17, 2019

@joel-simon Subsequent question: is it possible to mix an external image with images generated through BigGAN?

@WalrusSoup
Copy link

I am curious about this as well. It looks like the vector column contains the actual data for the image. I am not familiar with TF image processing. A pointer in the right direction would be appreciated.

@jacobgroff
Copy link

I am also interested in how to add your own images. It may be well beyond the scope of this project though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants