묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
자바8로 하면 안되는 걸까요?
자바11로 하는 이유가 궁금합니다~~
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
Mask R-CNN 추론결과 질문
안녕하세요 강사님, 항상 좋은 강의 잘 듣고있습니다. mmdetection을 통해 Mask R-CNN을 구현하던 도중 문제점이 생겨 질문드립니다. Mask R-CNN 모델로 이미지를 추론한 결과 result를 binary 이미지로 저장하는 코드를 작성하였습니다. 추론결과 아래와 같이 하나로 이루어진 Mask 정보를 반환받길 원합니다. 그러나 100번에 1번꼴로 아래 사진과 같은 masking result를 반환 받아서 데이터에 이상치가 발생합니다. segmentation 반환결과, 위와 같이 떨어진 픽셀영역을 마스킹하는 문제를 해결하는 방법이 있을까요? (해당 영역을 지워버리고 싶습니다) 감사합니다
-
해결됨실전! 스프링 부트와 JPA 활용2 - API 개발과 성능 최적화
조회 질문입니다.
안녕하세요 강사님 강의를 듣고 혼자 조회를 만들고 테스트를 진행하다가 궁금한 것이 생겨 질문을 남기게 되었습니다. A, B, C 라는 서비스 클래스가 있고 A, B 클래스에 만든 비즈니스 로직을 C 서비스 클래스에서 사용하고 싶어 C 서비스 클래스에서 A,B를 참조해서 사용할 경우 어떻게 처리하는 것이 가장 좋은 것인 지 궁금합니다. 읽어주셔서 감사합니다.
-
미해결비전공자를 위한 풀스택 맛집지도 만들기 프로젝트!: Front, Back-end 그리고 배포까지
질문
안녕하세요. 강의 6:00 분 정도에 왜 setMap(null) 이 아닌 marker.setMap(null) 로 해야되는건가요 ???
-
해결됨[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
색상상태관리 null check 오류
색상상태관리 수강중 print(snapshot.data); 이건 정상적으로 출력이 되지만 snapshot.data![0] 이 부분에서 오류가 발생하여 색상 선택하는 부분으로 넘어가지 못하고 있습니다. 값은 제대로 나오는데 뭐가 문제일까요? 오류가 나오는 코드입니다 FutureBuilder<List<CategoryColor>>( //데이터가져오기 future: GetIt.I<LocalDatabase>().getCategoryColors(), builder: (context, snapshot) { print(snapshot.data![0]); if (snapshot.hasData && selectedColorId == null && snapshot.data!.isNotEmpty) { selectedColorId == snapshot.data![0].id; } return _ColorPicker( colors: snapshot.hasData ? snapshot.data! : [], selectedColorId: selectedColorId, ); }), ======== Exception caught by widgets library ======================================================= The following _CastError was thrown building FutureBuilder<List<CategoryColor>>(dirty, state: _FutureBuilderState<List<CategoryColor>>#a78fb): Null check operator used on a null value
-
미해결[입문] Qt 6 프로그래밍 2편
QT로 이미지나 json 파일 가져올때
강사님 안녕하세요 강의를 볼 수 있는 기간이 얼마 남지 않아 조금한 마음에 질문드립니다. 이미치 처리나 JSON파일 처리 강의를 볼때 이미지 파일이나 JSON 파일을 리소스에 등록시키고 가져 오던데 꼭 리소스에 등록을 해야만 하나요? 파일 있는 곳이 프로젝트 파일이이 있는 곳이면 상대적 경로로 가져오면 될 것 같은데 방법을 문의 드립니다. 아래 파일은 제가 파싱하고자 하는 JSON 파일입니다. 우선 start 오브젝트의 값들을 가져오고자 하느데 다음과 같이 하니 동작이 되지 않습니다. 문제점 지적 부탁드립니다. parseJSON(const QString &data) QJsonDocument jsonResponse = QJsonDocument::fromJson(data.toLocal8Bit()); QJsonObject totalobj = jsonResponse.object(); QJsonObject startobj = totalobj["start"].toObject(); QString Str1 = startobj["version"].toString(); QString Str2 = startobj["system_info"].toString(); ui->textEdit->append(Str1); ui->textEdit->append(Str2); JSON 파일에 오브젝트에 오브젝트를 얻어 오는 방법이 어떻게 되는 지 궁금합니다. 예로 보여주신 것은 단 하나의 오브텍트를 가지는 JSON 파일인데 보통 계층이 여러개가 되는 JSON파일은 어떤식으로 파싱을 해야 하나요? 아래 JSON파일이 이렇게 밖에 첨부되지 않는데 적당한 에디터로 옮겨야 할 것 같습니다. 죄송합니다. ->json 파일 { "start": { "connected": [{ "socket": 4, "local_host": "127.0.0.1", "local_port": 53559, "remote_host": "127.0.0.1", "remote_port": 5201 }], "version": "iperf 3.1.3", "system_info": "CYGWIN_NT-10.0 ▒▒▒▒▒▒ 2.5.1(0.297/5/3) 2016-04-21 22:14 x86_64", "timestamp": { "time": "Tue, 19 Jul 2022 05:49:51 GMT", "timesecs": 1658209791 }, "connecting_to": { "host": "127.0.0.1", "port": 5201 }, "cookie": "▒▒▒▒▒▒.1658209791.845554.28a3c74361a", "tcp_mss_default": 0, "test_start": { "protocol": "TCP", "num_streams": 1, "blksize": 131072, "omit": 0, "duration": 5, "bytes": 0, "blocks": 0, "reverse": 0 } }, "intervals": [{ "streams": [{ "socket": 4, "start": 0, "end": 1.000721, "seconds": 1.000721, "bytes": 2595618816, "bits_per_second": 2.074999e+10, "omitted": false }], "sum": { "start": 0, "end": 1.000721, "seconds": 1.000721, "bytes": 2595618816, "bits_per_second": 2.074999e+10, "omitted": false } }, { "streams": [{ "socket": 4, "start": 1.000721, "end": 2.005017, "seconds": 1.004296, "bytes": 2570846208, "bits_per_second": 2.047880e+10, "omitted": false }], "sum": { "start": 1.000721, "end": 2.005017, "seconds": 1.004296, "bytes": 2570846208, "bits_per_second": 2.047880e+10, "omitted": false } }, { "streams": [{ "socket": 4, "start": 2.005017, "end": 3.011280, "seconds": 1.006263, "bytes": 2549088256, "bits_per_second": 2.026578e+10, "omitted": false }], "sum": { "start": 2.005017, "end": 3.011280, "seconds": 1.006263, "bytes": 2549088256, "bits_per_second": 2.026578e+10, "omitted": false } }, { "streams": [{ "socket": 4, "start": 3.011280, "end": 4.000203, "seconds": 0.988923, "bytes": 2492203008, "bits_per_second": 2.016095e+10, "omitted": false }], "sum": { "start": 3.011280, "end": 4.000203, "seconds": 0.988923, "bytes": 2492203008, "bits_per_second": 2.016095e+10, "omitted": false } }, { "streams": [{ "socket": 4, "start": 4.000203, "end": 5.008456, "seconds": 1.008253, "bytes": 2597322752, "bits_per_second": 2.060850e+10, "omitted": false }], "sum": { "start": 4.000203, "end": 5.008456, "seconds": 1.008253, "bytes": 2597322752, "bits_per_second": 2.060850e+10, "omitted": false } }], "end": { "streams": [{ "sender": { "socket": 4, "start": 0, "end": 5.008456, "seconds": 5.008456, "bytes": 12805079040, "bits_per_second": 2.045354e+10 }, "receiver": { "socket": 4, "start": 0, "end": 5.008456, "seconds": 5.008456, "bytes": 12804882391, "bits_per_second": 2.045322e+10 } }], "sum_sent": { "start": 0, "end": 5.008456, "seconds": 5.008456, "bytes": 12805079040, "bits_per_second": 2.045354e+10 }, "sum_received": { "start": 0, "end": 5.008456, "seconds": 5.008456, "bytes": 12804882391, "bits_per_second": 2.045322e+10 }, "cpu_utilization_percent": { "host_total": 97.261207, "host_user": 2.194162, "host_system": 95.067046, "remote_total": 3.763427, "remote_user": 0.787845, "remote_system": 2.975581 } } }
-
해결됨그림으로 쉽게 배우는 운영체제
컴파일 과정 예시와 관련해서 질문드립니다!!
안녕하세요! 컴파일 과정 예시를 c언어로 작성해주셨는데 int main(void) 라고 main을 선언해주셨습니다!! 제가 알기로 void는 return 값이 없을 때 쓰는 걸로 알고있는데 0을 return 해주셔서 질문드립니다! 제가 잘못알고 있는지 궁금하여 질문글 남깁니다!!
-
미해결타입스크립트 입문 - 기초부터 실전까지
옵셔널 파라미터[타입스크립트 핸드북]
안녕하세요 주신 타입스크립트 핸드북에 보면 함수의 인자 부분에 옵셔널 파라미타 ? 넣는 게 있던데, function sum(a: number, b?: number): number { return a + b; } sum(10, 20); // 30 sum(10, 20, 30); // error, too many parameters sum(10); // 10 컴파일 에러는 잡히겠지만, sum(10); // 10이 아니라 sum(10); // Nan <- 10 + undefined(or null) 아닌가요~?
-
미해결딥러닝 CNN 완벽 가이드 - TFKeras 버전
1 x 1 convolution을 적용하면 왜 비선형성이 좋아지는지 궁금합니다.
선생님. 처음부터 쭉 듣다보니, 어느새 절반 이상을 듣게 되었습니다! 좋은 강의 감사드립니다. 1 x 1 convolution을 적용하면 왜 비선형성이 좋아지는지 궁금합니다. convolution은 시행할수록 비선형성이 항상 좋아지는것인가요??
-
미해결Slack 클론 코딩[백엔드 with NestJS + TypeORM]
옵셔널한 프로퍼티에서 ?의 사용
안녕하세요. 강의를 보고 프로젝트 진행중 질문사항이 있어서 문의드립니다.response와 request dto 분리해서 작업중인데 response dto에서 @ApiProperty({nullable:true}) @Expose() name?: string;이렇게 작성시 '?'를 작성할 필요가 없지않나 싶어서요!?가 값이 optional로 들어오지 않을 수 있다라는 느낌인데 이건 request dto에서만 작성하고 response dto에서는 작성안해도되는게 맞을까요?
-
미해결타입스크립트 입문 - 기초부터 실전까지
인터페이스와 옵셔널 파라미터...
// 3. 함수의 스펙(구조)에 interface 활용 interface SumFunction { (a:number, b?:number): number; } var sum: SumFunction; sum = function(a:number, b?:number): number { return a + b; } console.log(sum(1)); // NaN console.log(sum(1, 2)); // 3 위에가 제 소스코드인데, return a + b; 의 b 밑에 빨간 에러줄이 뜨고,읽어봤더니 [개체가 'undefined'인 것 같습니다.] 라고 나왔습니다. 실제로 컴파일하고 콘솔로 찍어봤더니 console.log(sum(1)); -> NaN console.log(sum(1, 2)); -> 3 이 나오던데, console.log(sum(1)); -> 1 console.log(sum(1, 2)); -> 3 이렇게 나오게 하려면 코드 수정을 어떻게 해야 할까요?
-
해결됨[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
색상 상태관리 수강중 오류
오류 내용 ======== Exception caught by Flutter framework ===================================================== The following assertion was thrown during a service extension callback for "ext.flutter.inspector.setSelectionById": Id does not exist. 발생시점 색상상태관리 파트 수강하면서 코드 작성중에 발생했습니다. Problems에는 아무 문제도 없고 콘솔에서 발생합니다. 색상을 클릭하면 테두리가 보여져야하는 부분에서 오류 발생했고 롤백해서 하려했는데 어느부분에서 발생한 오류인지 모르겠네요 Id값이 없다는거 보니까 데이터베이스 쿼리 작성할때 뭘 잘못쓴거같은데.. snapshot.data 프린트해보면 id값도 정상적으로 들어가있네요. 어떤 문제 때문에 발생하는 오류일까요 의심되는 부분은 여기입니다 FutureBuilder<List<CategoryColor>>( //데이터가져오기 future: GetIt.I<LocalDatabase>().getCategoryColors(), builder: (context, snapshot) { if (snapshot.hasData && selectedColorId == null && snapshot.data!.isNotEmpty) { selectedColorId == snapshot.data![0].id; } return _ColorPicker( colors: snapshot.hasData ? snapshot.data! : [], selectedColorId: selectedColorId, ); }),
-
미해결한 입 크기로 잘라 먹는 리액트(React.js) : 기초부터 실전까지
질문있습니다.
안녕하세요 🙋♂️ LocalStorage를 일기 데이터베이스로 사용하기강의를 듣는 중 질문이 있습니다. 51번 줄 dataId를 초기화 하는 코드를 강사님께서는 53번 줄에서 시작하는 useEffect보다 아래에 그러니까 63번줄에 적으셨던데, 제가 리액트를 이 강의로 처음 시작하다보니 잘 모르는데, 51번 줄의 dataId 초기화를 아래에 쓰는 것이 호이스팅이 되어 괜찮았던 건가요? 아니면 뭘까요??? 만약 호이스팅이라면 호이스팅을 안 만들고 싶어서 51번줄처럼 위에 적어줬습니다만, 의견 좀 알려주세요~~~
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
Labeling /recall 문의
교수님 안녕하세요 수강생입니다 현재 가르쳐주신 Mmdetection- faster-rcnn으로 실제 모델에 적용하여 tranning 중 문의사항이 있어 메일 보내드립니다. ◇ 문의사항 1. Recall이 낮을때 : 실제 모델이 적용했을 경우 Accuracy는 상당히 높으나 Recall이 너무 낮아 검출이 잘 안되고 있습니다 ㅠㅜ 이를 극복하기 위해 이미지 수를 늘리려 합니다. 맞는 방향일까요? 2. Labeling 시 겹침 문의 : 라벨링 시 각 객체간 너무 인접해 있어 box 설정시 겹치게 됩니다. 이럴경우 제외하고 넘어가야할까요? 아니면 같은 class의 객채만 아니면 겹쳐도 상관없을까요? 바쁘시겠지만 답변 부탁드립니다 감사합니다.
-
미해결Vue.js 완벽 가이드 - 실습과 리팩토링으로 배우는 실전 개념
권한요청 드립니다.
인프런 아이디 : ggaia.heo@gmail.com인프런 이메일 : ggaia.heo@gmail.com깃헙 아이디 : ggaia.heo@gmail.com깃헙 Username : Heokyoungjun
-
미해결따라하며 배우는 리액트 A-Z[19버전 반영]
다이아그램의 엑서스문제
안녕하세요. 다이아그램에서 학습자료를 보려는데요. Error loading file이라고 뜹니다. 등록된 이메일로 접근을 하려는데 왜 권한이 없다고 하는걸까요?ㅠㅠ
-
미해결생활코딩 - React
react 폴더 생성 이후 문제가 생겼습니다
windows 유저입니다 react-app 폴더를 만들고 명령 프롬프트에 드래그했는데 react-app'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는배치 파일이 아닙니다. 이렇게 뜨면서 오류가 납니다 이 오류를 어떻게 해결해야되는지 잘 모르겠어서 질문남깁니다ㅠㅠ
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버
pushOnly 인자를 주는 이유
JobQueue::Push 에서 pushOnly를 추가해야 하는 이유를 잘 모르겠습니다. JobQueue::Push 함수가 실행되었다는 것은 이미 예약한 시간이 되어서 실행되어도 좋은 Job이 JobQueue에 Push된다는 뜻이 아닌가요? 지금 당장 실행되어도 좋은 Job을 Push 하려는데, 왜 굳이 JobQueue::Execute를 건너뛰고 GlobalQueue::Push를 호출해서 한 타이밍 늦게 Job을 실행시키는지 잘 모르겠습니다.
-
해결됨풀스택 리액트 토이프로젝트 - REST, GraphQL (for FE개발자)
gql 백틱 안에 색깔 입혀지는 확장프로그램이 어떤건지 알 수 있을까요?
안녕하세요, 사소한 질문인데요, 백틱을 열면 오타 찾기도 힘들고 가독성이 떨어져서 강사님처럼 백틱 뒤에 색깔을 따로 입히고 싶은데 확장프로그램이 뭔지 알 수 있을까요?
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
스프링이니셜라이저로 프로젝트 생성할 때 오류?
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 스프링이니셜라이저로 프로젝트를 만들고 intellij에서 띄웠을 때 오류가 발생하는 것 같습니다. 설정도 똑같이 했는데 무엇이 문제인지 모르겠습니다. A problem occurred configuring root project 'hello-spring2'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.0-M3. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.0-M3 > No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.0-M3 was found. The consumer was configured to find a runtime of a library compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.4.1' but: - Variant 'apiElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.0.0-M3 declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component compatible with Java 17 and the consumer needed a runtime of a component compatible with Java 11 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.4.1') - Variant 'javadocElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.0.0-M3 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about org.gradle.plugin.api-version (required '7.4.1') - Variant 'mavenOptionalApiElements' capability org.springframework.boot:spring-boot-gradle-plugin-maven-optional:3.0.0-M3 declares a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares an API of a component compatible with Java 17 and the consumer needed a runtime of a component compatible with Java 11 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.4.1') - Variant 'mavenOptionalRuntimeElements' capability org.springframework.boot:spring-boot-gradle-plugin-maven-optional:3.0.0-M3 declares a runtime of a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 11 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.4.1') - Variant 'runtimeElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.0.0-M3 declares a runtime of a library, packaged as a jar, and its dependencies declared externally: - Incompatible because this component declares a component compatible with Java 17 and the consumer needed a component compatible with Java 11 - Other compatible attribute: - Doesn't say anything about org.gradle.plugin.api-version (required '7.4.1') - Variant 'sourcesElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.0.0-M3 declares a runtime of a component, and its dependencies declared externally: - Incompatible because this component declares documentation and the consumer needed a library - Other compatible attributes: - Doesn't say anything about its target Java version (required compatibility with Java 11) - Doesn't say anything about its elements (required them packaged as a jar) - Doesn't say anything about org.gradle.plugin.api-version (required '7.4.1') * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights.