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

error when creating yolov3 architecture #99

Open
JDM559 opened this issue Sep 29, 2022 · 1 comment
Open

error when creating yolov3 architecture #99

JDM559 opened this issue Sep 29, 2022 · 1 comment

Comments

@JDM559
Copy link

JDM559 commented Sep 29, 2022

Describe the bug
I was following your steps but this error popped up when i was trying to create the yolov3 architecture

To Reproduce
Code and steps to reproduce the behavior:

remotes::install_github("maju116/platypus")
install.packages("keras")
install.packages("tensorflow")
library(tidyverse)
library(platypus)
library(abind)
library(keras)
library(tensorflow)


test_yolo <- yolo3(
  net_h = 416, # Input image height. Must be divisible by 32
  net_w = 416, # Input image width. Must be divisible by 32
  grayscale = FALSE, # Should images be loaded as grayscale or RGB
  n_class = 80, # Number of object classes (80 for COCO dataset)
  anchors = coco_anchors # Anchor boxes
)

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Session information (please complete the following information):

  • OS: [e.g. iOS]: Windows 10 x64 (build 19043)
  • R version: 4.1.2 (2021-11-01)
  • Python version:
  • TensorFlow (Python) version (tensorflow::tf_version()):
  • R session information (sessionInfo()):R version 4.1.2 (2021-11-01)
    Platform: x86_64-w64-mingw32/x64 (64-bit)
    Running under: Windows 10 x64 (build 19043)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] abind_1.4-5 platypus_0.1.1 keras_2.9.0 tensorflow_2.9.0 forcats_0.5.1 stringr_1.4.0 dplyr_1.0.10
[8] purrr_0.3.4 readr_2.1.1 tidyr_1.1.4 tibble_3.1.7 ggplot2_3.3.6 tidyverse_1.3.2

loaded via a namespace (and not attached):
[1] Rcpp_1.0.9 here_1.0.1 lubridate_1.8.0 lattice_0.20-45 prettyunits_1.1.1 png_0.1-7
[7] rprojroot_2.0.3 assertthat_0.2.1 zeallot_0.1.0 utf8_1.2.2 R6_2.5.1 cellranger_1.1.0
[13] backports_1.4.1 reprex_2.0.1 httr_1.4.3 pillar_1.8.0 progress_1.2.2 tfruns_1.5.1
[19] rlang_1.0.2 googlesheets4_1.0.0 curl_4.3.2 readxl_1.3.1 rstudioapi_0.13 whisker_0.4
[25] Matrix_1.4-1 reticulate_1.26 googledrive_2.0.0 munsell_0.5.0 broom_0.7.12 compiler_4.1.2
[31] modelr_0.1.8 pkgconfig_2.0.3 base64enc_0.1-3 tidyselect_1.1.2 gridExtra_2.3 XML_3.99-0.10
[37] fansi_1.0.2 crayon_1.5.1 tzdb_0.2.0 dbplyr_2.1.1 withr_2.5.0 rappdirs_0.3.3
[43] grid_4.1.2 jsonlite_1.8.0 gtable_0.3.0 lifecycle_1.0.1 DBI_1.1.3 magrittr_2.0.2
[49] scales_1.2.1 cli_3.3.0 stringi_1.7.6 fs_1.5.2 remotes_2.4.2 xml2_1.3.3
[55] ellipsis_0.3.2 generics_0.1.3 vctrs_0.4.1 RColorBrewer_1.1-3 tools_4.1.2 glue_1.6.2
[61] hms_1.1.1 colorspace_2.0-3 gargle_1.2.0 rvest_1.0.3 haven_2.4.3

PASTE RESULTS FROM sessionInfo()

R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Workspace loaded from ~/Personal Stats Projects/.RData]

source("~/.active-rstudio-document", echo=TRUE)

library(tidyverse)
-- Attaching packages -------------------------------------------------------------------------------------------- tidyverse 1.3.2 --
v ggplot2 3.3.6 v purrr 0.3.4
v tibble 3.1.7 v dplyr 1.0.10
v tidyr 1.1.4 v stringr 1.4.0
v readr 2.1.1 v forcats 0.5.1
-- Conflicts ----------------------------------------------------------------------------------------------- tidyverse_conflicts() --
x dplyr::filter() masks stats::filter()
x dplyr::lag() masks stats::lag()

library(platypus)
Loading required package: tensorflow
Loading required package: keras
Welceome to platypus!

library(abind)

library(keras)

library(tensorflow)

test_yolo <- yolo3(

  • net_h = 416, # Input image height. Must be divisible by 32
  • net_w = 416, # Input image width. Must be divisible by 32
  • .... [TRUNCATED]
  • "C:/Users/19165/AppData/Local/r-miniconda/condabin/conda.bat" "create" "--yes" "--prefix" "C:/Users/19165/AppData/Local/r-miniconda/envs/r-reticulate" "python=3.8" "numpy" "--quiet" "-c" "conda-forge"
    Collecting package metadata (current_repodata.json): ...working... failed

CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to
download and install packages.

Exception: HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

Error: Error creating conda environment 'C:/Users/19165/AppData/Local/r-miniconda/envs/r-reticulate' [exit code 1]
In addition: Warning messages:
1: package ‘tidyverse’ was built under R version 4.1.3
2: package ‘ggplot2’ was built under R version 4.1.3
3: package ‘tibble’ was built under R version 4.1.3
4: package ‘dplyr’ was built under R version 4.1.3
5: package ‘tensorflow’ was built under R version 4.1.3
6: package ‘keras’ was built under R version 4.1.3

@maju116
Copy link
Owner

maju116 commented Sep 29, 2022

@JDM559 it seems like your python environment is not configured correctly. Did you install tensorflow (python)?

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

2 participants