cristianglezm/ViT-GPT2-FlowerCaptioner
Image-to-Text
•
Updated
•
45
image
imagewidth (px) 128
128
|
---|
Dataset for flower descriptions for FlowerEvolver-frontend
format
{
"annotations":[
{
"ImagePath":"flowers/001.png",
"caption":"A flower with 10 petals that are elongated and narrow ovals in shape. The petals are yellow with dark green tones, featuring a striped pattern. The center of the flower has a dense and colorful pattern with red, blue, green, and pink."
},
...
]
}
You will need to get the desktop app here, go to downloads and download the correct version then extract the zip and open a terminal.
Make a new file makeDataset.sh and paste the following:
#!/bin/bash
# $1 min
# $2 max
random(){
echo "$(($1 + $RANDOM % $2))"
}
# $1 min
# $2 max
randomFloat(){
echo "$(($1 + $RANDOM % $2)).$((0 + $RANDOM % 99))"
}
if [ ! -d "FlowerDataset" ]
then
mkdir "FlowerDataset"
fi
echo "Making flowers for dataset"
for i in $(seq 501 600)
do
./FlowerEvolver.exe -cli -b $(randomFloat -1 3) -l $(random 2 4) -r 64 -p $(randomFloat 1 12) -sf "FlowersDataset/$i.json" -si "FlowersDataset/$i.png"
done
then adjust the parameters to make new flowers not found in the dataset.
This file is a generation file for FlowerEvolver app or website you can load the flowers to inspect, mutate or reproduce them.