Questions tagged [image-generation]

111 questions
0
votes
1 answer

Tensorflow GAN outputting negative numbers in an image, causing PIL errors

I have a GAN set up with Tensorflow and Keras, and training has been smooth. The only problem that I am having is that when I try to convert output tensors into images, I get an error. Upon further inspection of the output tensor, I find that the…
0
votes
0 answers

CNN Low test Accuracy

I am building a CNN model to classify images into 11 classes as follows: 'dew','fogsmog','frost','glaze','hail','lightning','rain','rainbow','rime','sandstorm','snow' and while training I get good accuracy and good validation accuracy Epoch…
0
votes
1 answer

An error with Omegaconf when running continuous image generation code

I found this author's PiggybackGAN code on Github (about continuous learning image generation) The link below: https://github.com/kaushik333/Piggyback-GAN-Pytorch The github issue has this problem,but no one has solved. I want to run this code in my…
0
votes
1 answer

Is there a way to generate an image with more than one colour using the PIL Image module?

I've been using the Image module in PIL in python, and I'm trying to generate an image using an array of hex codes. I have the width of the image set to the number of colours, and I want to create an image where each pixel is a different colour…
0
votes
1 answer

log determinant jacobian in Normalizing Flow training with Pytorch

I am studying how to train a normalizing flow model from the below tutorial, https://uvadlc-notebooks.readthedocs.io/en/latest/tutorial_notebooks/tutorial11/NF_image_modeling.html#Normalizing-Flows-on-images In Dequantization part, the log…
0
votes
1 answer

ImageDataGenerator directory

I am working with te ImageDataGenerator in Tensorflow for labeling images. I seem to be doing something wrong trying to point into my trainning directory, any ideas? Thanks in advance from tensorflow.keras.preprocessing.image import…
0
votes
1 answer

I have a GAN output, can I save the image inside the below sequence of output as single image?

For example consider this image an I want to save each part as single image: Here is the code, this will give a sequence of output after each epochs, I want to save each small output as single image. How can I proceed? import tensorflow as tf from…
0
votes
2 answers

Server side images generation with JavaScript

Are there any tools that allow you to generate images on the server side using JavaScript langauge? I'm investigating the possibility of using the same JS code to render images on the client side and on the server side.
mgamer
  • 13,580
  • 25
  • 87
  • 145
0
votes
1 answer

Creating an image in Java (pixel by pixel) in memory and serving it dynamically in Google App Engine

I have an app that I am creating in Java in Google App Engine that needs to create an image from scratch (pixel by pixel, without too many higher level operations like rotating or text generation) on the server and then dynamically incorporate that…
Rowan
  • 51
  • 6
0
votes
1 answer

Generate image from HTML canvas + other HTML elements

I'm using the SpaceTree plugin from the JIT library. I'm in the final stages of a project and the possibility of using IE6 is a dead end, so as an alternative option, converting the visualisation to an image should be plausible. I've used canvas's…
0
votes
0 answers

image generation with Python

I'm new to Python and programing in gneral. I'm a self-learner and I decided that I would write a command line tool that would help me make watchfaces for Mi Band 4. So I want to generate; numbers, days of weeks and some specials characters in…
0
votes
0 answers

Image generation

I need to generate for each record image (combined from some images). I do it with canvas. html2canvas($("#target"), { onrendered: function(canvas) { var imgsrc = canvas.toDataURL("image/png"); …
Lola_Padilya
  • 107
  • 1
  • 7
0
votes
0 answers

php function imagecreatetruecolor() wont work

The PHP function imagecreatetruecolor() won't work on my apache server. I used an example from the PHP manual header ('Content-Type: image/png'); ini_set('display_error', 'On'); error_reporting(E_ALL); $im = imagecreatetruecolor(120, 20) or…
cabanni
  • 349
  • 5
  • 12
0
votes
0 answers

generate image with two class Matlab

I know hoy to generate an image with specific pixels: img= randn(128,128); imshow(img); Also I know how to generate an image with matrix: x1 = random('unif',0,1,2,4) x1 = 0.0012 0.3403 0.1536 0.2083 0.2753 0.9554 0.1373 …
0
votes
1 answer

Trying to adapt tflearn code, shape error

i'm trying to adapt this simple autoencoder code: https://github.com/tflearn/tflearn/blob/master/examples/images/autoencoder.py . I'm trying to change the code in a way that it uses convolutional layers and have a input of 488 images * 30 height *…