묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[OpenCV] 파이썬 딥러닝 영상처리 프로젝트 - 손흥민을 찾아라!
dlib 설치 오류
안녕하세요. dlib 설치과정에서 오류가 발생하여 질문 드립니다(이전에 올라온 오류내용과는 다른 것 같아서요). 저 같은 경우에는 Visual Studio for C++가 설치되지 않았다고 메세지가 뜨고 있구요. 확인해보니 Visual Studio 2017이 설치되어 있습니다(Ver. 15.9.33). C++용은 별도로 있는 건가요? 그리고 sudo 명령을 써서 설치 해보려고도 했는데 저는 Sudo를 치면 이렇게 에러가 뜨네요;; 'sudo'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. Error Message -------------------- ERROR: Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib Installing collected packages: dlib Running setup.py install for dlib ... error ERROR: Command errored out with exit status 1: command: 'c:\users\dback\anaconda3\envs\computervision\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dback\\AppData\\Local\\Temp\\pip-install-sve59yx7\\dlib_0c949618dbc44980a36e6e19378d8423\\setup.py'"'"'; __file__='"'"'C:\\Users\\dback\\AppData\\Local\\Temp\\pip-install-sve59yx7\\dlib_0c949618dbc44980a36e6e19378d8423\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\dback\AppData\Local\Temp\pip-record-ksd_hvtu\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\dback\anaconda3\envs\computervision\Include\dlib' cwd: C:\Users\dback\AppData\Local\Temp\pip-install-sve59yx7\dlib_0c949618dbc44980a36e6e19378d8423\ Complete output (60 lines): running install running build running build_py package init file 'tools\python\dlib\__init__.py' not found (or not a regular file) running build_ext Building extension for Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] Invoking CMake setup: 'cmake C:\Users\dback\AppData\Local\Temp\pip-install-sve59yx7\dlib_0c949618dbc44980a36e6e19378d8423\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\dback\AppData\Local\Temp\pip-install-sve59yx7\dlib_0c949618dbc44980a36e6e19378d8423\build\lib.win-amd64-3.8 -DPYTHON_EXECUTABLE=c:\users\dback\anaconda3\envs\computervision\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\dback\AppData\Local\Temp\pip-install-sve59yx7\dlib_0c949618dbc44980a36e6e19378d8423\build\lib.win-amd64-3.8 -A x64' -- Building for: NMake Makefiles CMake Error at CMakeLists.txt:5 (message): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! You must use Visual Studio to build a python extension on windows. If you are getting this error it means you have not installed Visual C++. Note that there are many flavors of Visual Studio, like Visual Studio for C# development. You need to install Visual Studio for C++. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -- Configuring incomplete, errors occurred! Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\dback\AppData\Local\Temp\pip-install-sve59yx7\dlib_0c949618dbc44980a36e6e19378d8423\setup.py", line 223, in <module> setup( File "c:\users\dback\anaconda3\envs\computervision\lib\site-packages\setuptools\__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "c:\users\dback\anaconda3\envs\computervision\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\users\dback\anaconda3\envs\computervision\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "c:\users\dback\anaconda3\envs\computervision\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\dback\anaconda3\envs\computervision\lib\site-packages\setuptools\command\install.py", line 61, in run return orig.install.run(self) File "c:\users\dback\anaconda3\envs\computervision\lib\distutils\command\install.py", line 545, in run self.run_command('build') File "c:\users\dback\anaconda3\envs\computervision\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\dback\anaconda3\envs\computervision\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\dback\anaconda3\envs\computervision\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\users\dback\anaconda3\envs\computervision\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\dback\anaconda3\envs\computervision\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\dback\AppData\Local\Temp\pip-install-sve59yx7\dlib_0c949618dbc44980a36e6e19378d8423\setup.py", line 135, in run self.build_extension(ext) File "C:\Users\dback\AppData\Local\Temp\pip-install-sve59yx7\dlib_0c949618dbc44980a36e6e19378d8423\setup.py", line 172, in build_extension subprocess.check_call(cmake_setup, cwd=build_folder) File "c:\users\dback\anaconda3\envs\computervision\lib\subprocess.py", line 364, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\dback\\AppData\\Local\\Temp\\pip-install-sve59yx7\\dlib_0c949618dbc44980a36e6e19378d8423\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\dback\\AppData\\Local\\Temp\\pip-install-sve59yx7\\dlib_0c949618dbc44980a36e6e19378d8423\\build\\lib.win-amd64-3.8', '-DPYTHON_EXECUTABLE=c:\\users\\dback\\anaconda3\\envs\\computervision\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\dback\\AppData\\Local\\Temp\\pip-install-sve59yx7\\dlib_0c949618dbc44980a36e6e19378d8423\\build\\lib.win-amd64-3.8', '-A', 'x64']' returned non-zero exit status 1. ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\dback\anaconda3\envs\computervision\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dback\\AppData\\Local\\Temp\\pip-install-sve59yx7\\dlib_0c949618dbc44980a36e6e19378d8423\\setup.py'"'"'; __file__='"'"'C:\\Users\\dback\\AppData\\Local\\Temp\\pip-install-sve59yx7\\dlib_0c949618dbc44980a36e6e19378d8423\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\dback\AppData\Local\Temp\pip-record-ksd_hvtu\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\dback\anaconda3\envs\computervision\Include\dlib' Check the logs for full command output. (ComputerVision) C:\Users\dback>
-
미해결스프링 핵심 원리 - 기본편
DI관련 질문이 있습니다.
안녕하세요. 김영한 강사님. springSecurity에서 DI 관련하여 질문이 있습니다. 혹시 security와 연관이 있는데 질문드려도 괜찮을지 궁금합니다.
-
미해결초보자를 위한 HTML 기초
section 내에서 여러요소를 그룹핑해야 되는 상황에 대해 질문드립니다.
section 내에서 여러요소를 그룹핑해야 될 때, section 안에 section을 넣을 수 있나요? 아니면 div(예 : div1, div2, div3)로 사용하는게 좋을까요? 예를 들어, 아래와 같은 코드에서요!
-
미해결스프링 핵심 원리 - 기본편
@ComponentScan 시 Singleton방식
안녕하세요! 강사님 다름이아니라 라이브코딩 도중 의문점이 생겨서 질문 남겨봅니다! 번거로우실텐데 죄송합니다 질문1. 강의에서 본것처럼 AppConfig.class 에서 @Configuration 이 붙지않으면 스프링 컨테이너가 스프링빈들을 전부 싱글톤 방식이 아닌 계속 인스턴스생성을하여 메모리 낭비가 되는 모습까지는 이해했습니다. 근데, AutoAppConfig.class에서 @ComponentScan 시에 @Configuration 애노테이션을 안붙여도 모든 Component들이 스캔 후 알아서 싱글톤방식으로 빈이 생성되는것을 test코드를 통해 확인했습니다! AutoAppConfig에서 컴포넌트 스캔 자체가 AppConfig같은 설정정보 없이도 @Component만을 탐색해서 빈을 등록하는거까지는 이해하고는 있는데 왜 @Configuration 애노테이션을 안붙여도 자동적으로 싱글톤방식으로 빈이 생성되는지 궁금합니다! 제가 뭘 놓치고 있는걸까요???
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
에러읽어보고 찾아보려고햇는데 해석이아직안되서 질문드립니다!
(사진)
-
미해결Node.js에 TypeScript 적용하기(feat. NodeBird)
프론트단에 질문이 있습니다
백엔드 노드쪽 타입과 함께 프론트쪽도 타입스크립트로 하고 있는데 기존 react-nodebird의 _app.js 나 index파일이랑 ts-nodebird의 _app.tsx, index 파일들을 보면 코드구조가 다르거나 추가되는 것들이 있는데 코드가 다른 이유가 있는건가요? 프론트에 타입스크립트 적용하려면 ts-nodebird 기준으로 하면 될까요?
-
미해결Flutter 초급 - Http통신, 상태관리
MainActivity.kt 에러
안녕하세요. 강의 잘듣고있습니다. 여기서 부터 완전 먹통이라 SDK부터 뭔가 잘못 셋팅되었거나 한듯합니다. 어떻게 해결할 수 있을까요...? 아래 영상은 경로 셋팅되어있는거에 참고차 첨부합니다. SDK 셋업부터 잘못되어있다면 어떻게 수정하고 이 에러를 해결 할 수 있을까요...? 진도를 떠 빼고싶은데 못빼고 있어 문의 남깁니다. 감사합니다.
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
npm install에서 ERR문구가 많이 떠서 질문드립니다.
node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v83-win32-x64-unknown.tar.gz node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@14.15.5 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) gyp ERR! find Python gyp ERR! find Python Python is not set from command line or npm configuration gyp ERR! find Python Python is not set from environment variable PYTHON gyp ERR! find Python checking if "python" can be used gyp ERR! find Python - "python" is not in PATH or produced an error gyp ERR! find Python checking if "python2" can be used gyp ERR! find Python - "python2" is not in PATH or produced an error gyp ERR! find Python checking if "python3" can be used gyp ERR! find Python - "python3" is not in PATH or produced an error gyp ERR! find Python checking if the py launcher can be used to find Python 2 gyp ERR! find Python - "py.exe" is not in PATH or produced an error gyp ERR! find Python checking if Python is C:\Python27\python.exe gyp ERR! find Python - "C:\Python27\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Python37\python.exe gyp ERR! find Python - "C:\Python37\python.exe" could not be run gyp ERR! find Python gyp ERR! find Python ********************************************************** gyp ERR! find Python You need to install the latest version of Python. gyp ERR! find Python Node-gyp should be able to find and use Python. If not, gyp ERR! find Python you can try one of the following options: gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" gyp ERR! find Python (accepted by both node-gyp and npm) gyp ERR! find Python - Set the environment variable PYTHON gyp ERR! find Python - Set the npm configuration variable python: gyp ERR! find Python npm config set python "C:\Path\To\python.exe" gyp ERR! find Python For more information consult the documentation at: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation gyp ERR! find Python ********************************************************** gyp ERR! find Python gyp ERR! configure error gyp ERR! stack Error: Could not find any Python installation to use gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp ERR! stack at exithandler (child_process.js:315:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! stack at onErrorNT (internal/child_process.js:465:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:80:21) gyp ERR! System Windows_NT 10.0.19041 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\mario\\OneDrive\\문서\\GitHub\\magarin\\react\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\mario\\OneDrive\\문서\\GitHub\\magarin\\react\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd C:\Users\mario\OneDrive\문서\GitHub\magarin\react\boilerplate-mern-stack-master\node_modules\bcrypt gyp ERR! node -v v14.15.5 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\mario\OneDrive\문서\GitHub\magarin\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\mario\OneDrive\문서\GitHub\magarin\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\mario\OneDrive\문서\GitHub\magarin\react\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) node-pre-gyp ERR! System Windows_NT 10.0.19041 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\mario\\OneDrive\\문서\\GitHub\\magarin\\react\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\mario\OneDrive\문서\GitHub\magarin\react\boilerplate-mern-stack-master\node_modules\bcrypt node-pre-gyp ERR! node -v v14.15.5 node-pre-gyp ERR! node-pre-gyp -v v0.14.0 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\mario\OneDrive\문서\GitHub\magarin\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\mario\OneDrive\문서\GitHub\magarin\react\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN react-redux@5.1.2 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-redux@5.1.2 requires a peer of redux@^2.0.0 || ^3.0.0 || ^4.0.0-0 but none is installed. You must install peer dependencies yourself. npm WARN react-boiler-plate@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! bcrypt@3.0.8 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the bcrypt@3.0.8 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\mario\AppData\Roaming\npm-cache\_logs\2021-02-20T17_12_16_618Z-debug.log 뭔가 잘못된거같은데 해결방법을 알고 싶어서 질문드립니다.
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
jdbcTemplate import
안녕하세요. build.gradle파일에 jdbc 관련 라이브러리를 추가했는데 JdbcTemplate를 import 못하고 있습니다. 혹시 빼먹은 코드가 있을까요?
-
미해결Vue.js + TypeScript 완벽 가이드
컴포넌트 연결에 대하여
<template> <div> <h1>Vue Todo with TypeScript</h1> <todo-input></todo-input> </div> </template> <script lang="ts"> import Vue from "vue"; import TodoInput from "./components/TodoInput.vue"; export default Vue.extend({ components: { TodoInput } }); </script> <style scoped></style> -------------------------------------- <template> <div> <h1>Vue Todo with TypeScript</h1> <TodoInput></TodoInput> </div> </template> <script lang="ts"> import Vue from "vue"; import TodoInput from "./components/TodoInput.vue"; export default Vue.extend({ components: { TodoInput } }); </script> <style scoped></style> 질문 :어떤 방식이 맞는지 궁금합니다. 자동완성 전자이고, 캡틴판교님과 회사에서는 후자를 쓰고 있습니다.
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
format 함수 예제 문법 오류나요..;;
(사진)
-
미해결스프링 시큐리티
아키텍쳐 이해가 잘 되지 않는 분들 참고(질문아님)
(사진)
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
file 옵션 강의때 sys가 되질 않아요
(사진)
-
미해결Vue.js + TypeScript 완벽 가이드
NUXT 에서 아직 인스턴스를 지원하지 않는다고 하는데 그게 맞나요?
안녕하세요. 캡틴판교님 넉스트에서 클래스로 밖에 아직 지원을 하지않아서 인스턴스를 안쓴다고 들었는데 그게 맞나요? 현재 저희 회사도 클래스 문법을 써서 너무 힘들게 따라가고 있습니다..ㅠㅠ
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
why?6
K-Means의 군집방식과 GMM의 군집방식의 차이점을 잘 모르겠습니다. Q1 ) GMM에서 데이터의 밀집도를 그래프로 그린뒤 그 그래프가 여러개의 정규분포곡선으로 이루어져있다고 가정한뒤 각 데이터들을 모수추정을 하여 군집화를 한다고 이해를 했는데 K-Means 도 어떻게 보면 데이터가 가장 많이 밀집되어있는 곳에 center를 잡아 군집화를 하는거니 차이가 없지않나요? Q2 ) 데이터를 모수추정하는과정에서 정규분포곡선의 모양이 변경되며 더이상 변경되지 않는 그래프의 모양이 될때까지 반복하는것인가요? -> 하나의 데이터 밀집도 그래프를 여러가지의 정규분포 곡선이 다양한 조합으로 나타낼수가 있나요? GMM을 정확히 이해하지 못한상태에서 질문을 하는거라 질문의 내용이 모호할수도있습니다..
-
미해결Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
404 나와서 깃허브 다시 요청드립니다
인프런 아이디 : wonyong kim인프런 이메일 : iersans@gmail.com깃헙 아이디 : won-dragon깃헙 Username : won-dragon
-
미해결자바(javafx) 실전 데스크탑앱 프로젝트 - 유튜브관리앱
안녕하세요. 하나의 컨트롤러 내에서 다른 컨트롤러 호출에 관한 질문입니다.
현재 이런 어플리케이션을 만들고 있습니다. 해당 화면에서 File > Open을 누르게 되면 아래와 같이 모달이 나오는데요, 해당 모달의 확인 버튼을 눌렀을 때, 모달이 닫히면서 이곳에서 선택한 파일 4개의 경로를 가지고아래 깔려있는 HDX Viewer라는 Scene의 왼쪽 흰색 영역에 TreeView를 그려주고 싶습니다. 저는 현재 2개의 뷰 파일을 가지고 있고, (아래쪽이 MainView.fxml, 위의 모달이 FileSelectView.fxml 입니다.)각 뷰에 따른 컨트롤러 클래스를 2개 가지고 있습니다. (MainViewController.java, FileSelectViewController.java) 해당 로직은 이렇게 진행됩니다. [모달이 열리지 않은 상태] MainViewController에서 onClickOpen() => showFileModal() [모달이 열린 상태]FileSelectViewController에서 확인 버튼 클릭 => onConfirm()실행 => mainViewController의 setTreeItem()을 부름 이때, mainViewController의 setTreeItem에서 제가 분명히 TreeItem을 잘 적용했으나, mainView에서 해당 변경 사항이 반영되지 않았습니다. 혹시 해당 뷰의 상태를 바꿔주려면 어떻게 해야 하나요?제가 어떤 부분을 놓쳤는지 궁금합니다. 혹시 괜찮으시다면 한번 검토해주실 수 있을까요? 더 필요한 사항이 있으시면 적어주신다면 제가 더 첨부하겠습니다. 감사합니다. MainViewController.java package application; import java.io.File; import java.io.FileNotFoundException; import java.net.URL; import java.util.ResourceBundle; import javax.xml.stream.XMLStreamException; import org.systemsbiology.jrap.stax.MSXMLSequentialParser; import org.systemsbiology.jrap.stax.Scan; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.fxml.Initializable; import javafx.scene.Node; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.chart.BarChart; import javafx.scene.chart.LineChart; import javafx.scene.chart.XYChart; import javafx.scene.control.Button; import javafx.scene.control.MenuItem; import javafx.scene.control.TableView; import javafx.scene.control.TreeItem; import javafx.scene.control.TreeView; import javafx.scene.input.MouseEvent; import javafx.stage.FileChooser; import javafx.stage.Modality; import javafx.stage.Stage; public class MainViewController implements Initializable { @FXML private MenuItem open; @FXML private TreeView<String> treeview; @FXML private LineChart<?, ?> linechart; @FXML private BarChart<?, ?> barchart_up; @FXML private Button peptide_view; @FXML private BarChart<?, ?> barchart_down; @FXML private TableView<?> tableview; @FXML void onClickOpen(ActionEvent event) { Stage stage = Main.getPrimaryStage(); showFileModal(stage); } private void showFileModal(Stage parentStage) { try { Stage stage = new Stage(); Parent root = FXMLLoader.load(getClass().getResource("FileSelectView.fxml")); stage.setScene(new Scene(root, 600, 400)); stage.setTitle("file select"); stage.initModality(Modality.WINDOW_MODAL); stage.initOwner(parentStage); stage.showAndWait(); } catch(Exception e){ System.out.println(e); } } @FXML void onClickTableView(MouseEvent event) { } @Override public void initialize(URL arg0, ResourceBundle arg1) { barchart_up.setLegendVisible(false); barchart_up.getXAxis().setAnimated(false); barchart_up.getYAxis().setAnimated(false); barchart_down.setLegendVisible(false); barchart_down.getXAxis().setAnimated(false); barchart_down.getYAxis().setAnimated(false); treeview.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> { if(newValue != null && newValue != oldValue){ try { MSXMLSequentialParser parser = new MSXMLSequentialParser(); parser.open(newValue.getValue()); Scan scan = parser.getNextScan(); double[][] array = scan.getMassIntensityList(); XYChart.Series data = new XYChart.Series(); for (int j = 0; j < array[0].length; j++) { double key = array[1][j]; String s = String.format("%.2f", key); double value = array[0][j]; data.getData().add(new XYChart.Data(s, value)); } barchart_up.getData().add(data); } catch (FileNotFoundException | XMLStreamException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); } public void setTreeItem() { peptide_view.setText("aaaaa"); try { TreeItem<String> Root = new TreeItem<String>("FILES"); TreeItem<String> newItem = new TreeItem<String>("condition1"); Root.getChildren().add(newItem); treeview.setRoot(Root); treeview.refresh(); System.out.println(peptide_view); System.out.println(treeview); } catch(Exception e) { } } } FileSelectViewController.java package application; import java.io.File; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Node; import javafx.scene.Parent; import javafx.scene.control.Button; import javafx.scene.control.TextField; import javafx.stage.FileChooser; import javafx.stage.Stage; public class FileSelectViewController { private FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter("MZXML FILES (*.mzxml)", "*.mzxml"); @FXML private Button confirm_button; @FXML private Button control_button; @FXML private TextField control_field; @FXML private Button f1_button; @FXML private TextField f1_field; @FXML private Button f2_button; @FXML private TextField f2_field; @FXML private Button f3_button; @FXML private TextField f3_field; @FXML void onConfirm(ActionEvent event) { try { Node node = (Node) event.getSource(); Stage thisStage = (Stage) node.getScene().getWindow(); // String[] filePaths = new String[4]; // filePaths[0] = control_field.getText(); // filePaths[1] = f1_field.getText(); // filePaths[2] = f2_field.getText(); // filePaths[3] = f3_field.getText(); FXMLLoader loader = new FXMLLoader(getClass().getResource("MainView.fxml")); loader.load(); MainViewController mainViewController = (MainViewController) loader.getController(); mainViewController.setTreeItem(); thisStage.close(); } catch(Exception e) { System.out.println(e); } } void selectFile(FileChooser.ExtensionFilter filter, TextField field) { Stage stage = Main.getPrimaryStage(); FileChooser fileChooser = new FileChooser(); fileChooser.setTitle("Open File"); // Set extension filter fileChooser.getExtensionFilters().add(filter); File file = fileChooser.showOpenDialog(stage); if (file != null) field.setText(file.getPath()); } @FXML void onSelectControlFile(ActionEvent event) { selectFile(extFilter, control_field); } @FXML void onSelectF1File(ActionEvent event) { selectFile(extFilter, f1_field); } @FXML void onSelectF2File(ActionEvent event) { selectFile(extFilter, f2_field); } @FXML void onSelectF3File(ActionEvent event) { selectFile(extFilter, f3_field); } } Main.java package application; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.stage.Stage; import javafx.scene.Parent; import javafx.scene.Scene; public class Main extends Application { private static Stage primaryStage; private void setPrimaryStage(Stage stage) { Main.primaryStage = stage; } static public Stage getPrimaryStage() { return Main.primaryStage; } @Override public void start(Stage primaryStage) { try { setPrimaryStage(primaryStage); Parent root = FXMLLoader.load(getClass().getResource("MainView.fxml")); Scene scene = new Scene(root, 1280, 720); scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm()); primaryStage.setScene(scene); primaryStage.setTitle("HDX Viewer"); primaryStage.setResizable(false); primaryStage.show(); } catch(Exception e) { e.printStackTrace(); } } public static void main(String[] args) { launch(args); } }
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
질문하나만 드려도될까요..
테스트는 성공으로 뜨는데 빨간색으로 이런 글씨가 있어서 왜 이런게 뜨는지 여쭤봐도 될까요..? org.junit.platform.launcher.core.EngineDiscoveryOrchestrator lambda$logTestDescriptorExclusionReasons$7 INFO: 0 containers and 2 tests were Method or class mismatch
-
미해결[텐서플로2] 파이썬 딥러닝 완전정복 - GAN, BERT, RNN, CNN 최신기법
RNN&BERT 코드 에러 질문입니다!
안녕하세요! 항상 잘 듣고 있습니다. RNN 관련 영화평 분류 강의에서 코드 에러가 발생해 질문하게 되었습니다. 문제가 된 코드는 아래와 같습니다. 분명 강의에서 알려 주신 대로 입력했는데 RUN해보니 두 번째 코드와 같은 에러가 뜨네요... 구글링해봐도 해결 방법을 찾을 수가 없어 글을 올립니다. 감사합니다! history = model.fit(train_dataset, epochs = 10, validation_data = test_dataset, validation_steps=30) Epoch 1/10 WARNING:tensorflow:Model was constructed with shape (None, None) for input KerasTensor(type_spec=TensorSpec(shape=(None, None), dtype=tf.float32, name='embedding_1_input'), name='embedding_1_input', description="created by layer 'embedding_1_input'"), but it was called on an input with incompatible shape (None, None, None, None, None). WARNING:tensorflow:Model was constructed with shape (None, None) for input KerasTensor(type_spec=TensorSpec(shape=(None, None), dtype=tf.float32, name='embedding_1_input'), name='embedding_1_input', description="created by layer 'embedding_1_input'"), but it was called on an input with incompatible shape (None, None, None, None, None). --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-40-79f235ece0ed> in <module> ----> 1 history = model.fit(train_dataset, epochs = 10, 2 validation_data = test_dataset, 3 validation_steps=30) ~\anaconda3\lib\site-packages\tensorflow\python\keras\engine\training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing) 1098 _r=1): 1099 callbacks.on_train_batch_begin(step) -> 1100 tmp_logs = self.train_function(iterator) 1101 if data_handler.should_sync: 1102 context.async_wait() ~\anaconda3\lib\site-packages\tensorflow\python\eager\def_function.py in __call__(self, *args, **kwds) 826 tracing_count = self.experimental_get_tracing_count() 827 with trace.Trace(self._name) as tm: --> 828 result = self._call(*args, **kwds) 829 compiler = "xla" if self._experimental_compile else "nonXla" 830 new_tracing_count = self.experimental_get_tracing_count() ~\anaconda3\lib\site-packages\tensorflow\python\eager\def_function.py in _call(self, *args, **kwds) 869 # This is the first call of __call__, so we have to initialize. 870 initializers = [] --> 871 self._initialize(args, kwds, add_initializers_to=initializers) 872 finally: 873 # At this point we know that the initialization is complete (or less ~\anaconda3\lib\site-packages\tensorflow\python\eager\def_function.py in _initialize(self, args, kwds, add_initializers_to) 723 self._graph_deleter = FunctionDeleter(self._lifted_initializer_graph) 724 self._concrete_stateful_fn = ( --> 725 self._stateful_fn._get_concrete_function_internal_garbage_collected( # pylint: disable=protected-access 726 *args, **kwds)) 727 ~\anaconda3\lib\site-packages\tensorflow\python\eager\function.py in _get_concrete_function_internal_garbage_collected(self, *args, **kwargs) 2967 args, kwargs = None, None 2968 with self._lock: -> 2969 graph_function, _ = self._maybe_define_function(args, kwargs) 2970 return graph_function 2971 ~\anaconda3\lib\site-packages\tensorflow\python\eager\function.py in _maybe_define_function(self, args, kwargs) 3359 3360 self._function_cache.missed.add(call_context_key) -> 3361 graph_function = self._create_graph_function(args, kwargs) 3362 self._function_cache.primary[cache_key] = graph_function 3363 ~\anaconda3\lib\site-packages\tensorflow\python\eager\function.py in _create_graph_function(self, args, kwargs, override_flat_arg_shapes) 3194 arg_names = base_arg_names + missing_arg_names 3195 graph_function = ConcreteFunction( -> 3196 func_graph_module.func_graph_from_py_func( 3197 self._name, 3198 self._python_function, ~\anaconda3\lib\site-packages\tensorflow\python\framework\func_graph.py in func_graph_from_py_func(name, python_func, args, kwargs, signature, func_graph, autograph, autograph_options, add_control_dependencies, arg_names, op_return_value, collections, capture_by_value, override_flat_arg_shapes) 988 _, original_func = tf_decorator.unwrap(python_func) 989 --> 990 func_outputs = python_func(*func_args, **func_kwargs) 991 992 # invariant: `func_outputs` contains only Tensors, CompositeTensors, ~\anaconda3\lib\site-packages\tensorflow\python\eager\def_function.py in wrapped_fn(*args, **kwds) 632 xla_context.Exit() 633 else: --> 634 out = weak_wrapped_fn().__wrapped__(*args, **kwds) 635 return out 636 ~\anaconda3\lib\site-packages\tensorflow\python\framework\func_graph.py in wrapper(*args, **kwargs) 975 except Exception as e: # pylint:disable=broad-except 976 if hasattr(e, "ag_error_metadata"): --> 977 raise e.ag_error_metadata.to_exception(e) 978 else: 979 raise ValueError: in user code: C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\engine\training.py:805 train_function * return step_function(self, iterator) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\engine\training.py:795 step_function ** outputs = model.distribute_strategy.run(run_step, args=(data,)) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:1259 run return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:2730 call_for_each_replica return self._call_for_each_replica(fn, args, kwargs) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:3417 _call_for_each_replica return fn(*args, **kwargs) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\engine\training.py:788 run_step ** outputs = model.train_step(data) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\engine\training.py:754 train_step y_pred = self(x, training=True) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\engine\base_layer.py:1012 __call__ outputs = call_fn(inputs, *args, **kwargs) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\engine\sequential.py:375 call return super(Sequential, self).call(inputs, training=training, mask=mask) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\engine\functional.py:424 call return self._run_internal_graph( C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\engine\functional.py:560 _run_internal_graph outputs = node.layer(*args, **kwargs) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\layers\wrappers.py:539 __call__ return super(Bidirectional, self).__call__(inputs, **kwargs) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\engine\base_layer.py:998 __call__ input_spec.assert_input_compatibility(self.input_spec, inputs, self.name) C:\Users\User\anaconda3\lib\site-packages\tensorflow\python\keras\engine\input_spec.py:219 assert_input_compatibility raise ValueError('Input ' + str(input_index) + ' of layer ' + ValueError: Input 0 of layer bidirectional_1 is incompatible with the layer: expected ndim=3, found ndim=6. Full shape received: (None, None, None, None, None, 64)
-
미해결Vue.js 중급 강좌 - 웹앱 제작으로 배워보는 Vue.js, ES6, Vuex
깃허브 권한 요청 ... 왜 권한이 안돼죠??
인프런 아이디 : jkkim74.jk3@gmail.com인프런 이메일 : jkkim74.jk3@gmail.com깃헙 아이디 : jack68@naver.com깃헙 Username : jkkim74 이걸로 계속 깃허브 권한 요청했는데요.. 안들어가지네요...