Skip to content

Commit

Permalink
first version
Browse files Browse the repository at this point in the history
  • Loading branch information
kumeS committed Jul 30, 2023
1 parent 6df15bc commit 46a4ffb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions R/generateImageVariation4R.R → R/imageVariation4R.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#' @return A list. This list contains either URLs pointing to the generated images
#' or the images themselves in base64 encoded JSON format, depending on the `Output_image` parameter.
#'
#' @export generateImageVariation4R
#' @export imageVariation4R
#' @author Satoshi Kume
#'
#' @examples
Expand All @@ -37,14 +37,14 @@
#' image_path = "path_to_your_image.png"
#'
#' # Generate image variations
#' res <- generateImageVariation4R(image = image_path, n = 3, size = "256x256",
#' res <- imageVariation4R(image = image_path, n = 3, size = "256x256",
#' response_format = "url", Output_image = TRUE)
#'
#' # Display the generated image variations
#' Display(res)
#' }

generateImageVariation4R <- function(image,
imageVariation4R <- function(image,
n = 3,
size = "256x256",
response_format = "url",
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ chatAI4R is an experimental project aimed at developing and implementing various

## Installation of the chatAI4R package

1. Start R / RStudio console.
### 1. Start R / RStudio console.

2. Run the following commands in the R console:
### 2. Run the following commands in the R console:

```r
# CRAN-version installation (Not yet available)
Expand All @@ -48,7 +48,7 @@ system("wget https://github.com/kumeS/chatAI4R/archive/refs/tags/v0.0.4.tar.gz")
system("R CMD INSTALL chatAI4R-0.0.4.tar.gz")
```

3. Set the API key according to each Web API.
### 3. Set the API key according to each Web API.

For example, to obtain an OpenAI API key, please register as a member on the OpenAI website (https://platform.openai.com/account/api-keys) and obtain your API key.

Expand Down Expand Up @@ -100,9 +100,9 @@ Flowcharts of the R functions were created by GPT-4 + Skrive plugin.
### Image generation functions using DALL·E 2

- generateImage4R
- editImage4R:
- generateImageVariation4R
- createImagePrompt
- editImage4R
- imageVariation4R
- createImagePrompt_v1
- createImagePrompt_v2

### Image generation functions using Stable Diffusion
Expand Down

0 comments on commit 46a4ffb

Please sign in to comment.