[AI 실무] AI Research Engineer를 위한 논문 구현 시작하기 with PyTorch
안녕하세요, 수업 정말 잘 들었습니다 🙂 하나 궁금한 건, loss.py 에서 ContentLoss, StyleLoss 를 정의하고, 이후 해당 클래스들을 train.py 에서 불러온 다음 total_loss 를 계산하였는데. 혹시 loss.py 에서 total_loss 의 클래스도 구현하는게 정석적인 건지 아니면 이처럼 train 과정에서 새로운 loss term 을 하이퍼파라미터와 함께 초기화하여 사용하는게 더 일반적인 건지 궁금합니다.
login.ui를 업데이트 해도 login_ ui.py 가 업데이트 되지 않아요! 저는 vsc에서 login.ui를 우클릭해도 edit qt ui file(designer)가 나오지 않아서.. 직접 designer 프로그램을 킨후에 id, pw, login_btn으로 수정한후 저장했는데요. login_ui.py는 자동으로 수정되지 않네요? 어떻게 해야할까요!
모두를 위한 파이썬 : 필수 문법 배우기 Feat. 오픈소스 패키지 배포 (Inflearn Original)이 강의를 안배우고 고수가 되는 파이썬 : 동시성과 병렬성 문법 배우기 Feat. 멀티스레딩 vs 멀티프로세싱 (Inflearn Original)로 바로 넘어가서 배워도 괜찮을까요 ??? 레벨대로 다 배워야 하는지도 궁금하고 구매하는데 신중에 있어서 정확히 알고 싶어서요.
for i in range(1, 51): num = i with open("{0}주차.txt".format(num), "w", encoding="utf8") as report_file: report_file.write("- {0} 주차 주간보고 - ".format(num)) report_file.write("\n부서 : ") report_file.write("\n이름 : ") report_file.write("\n업무 요약 : ")
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * Where: Build file '/Users/wootukchoi/FoodDeliveryApp/node_modules/react-native-code-push/android/build.gradle' line: 17 * What went wrong: A problem occurred evaluating project ':react-native-code-push'. > Could not find method android() for arguments [build_2tl5hzetictwda5fo4twhoyrv$_run_closure1$_closure2@6264dc0a] on project ':react-native-code-push' of type org.gradle.api.Project. * Try: package com.fooddeliveryapp import com.facebook.react.ReactActivity import com.facebook.react.ReactActivityDelegate import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled import com.facebook.react.defaults.DefaultReactActivityDelegate import android.os.Bundle; import com.microsoft .codepush.react.CodePush class MainActivity : ReactActivity() { /** * Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the component. */ override fun getMainComponentName(): String = "FoodDeliveryApp" /** * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] */ override fun createReactActivityDelegate(): ReactActivityDelegate = DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) override fun getJSBundleFile(): String { return CodePush.getJSBundleFile() } }
많은 시도를 해봤지만 계속 안되더라구요 ㅠㅠ error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:processDebugResources'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.facebook.flipper:flipper:0.239.0. Searched in the following locations: - https://oss.sonatype.org/content/repositories/snapshots/com/facebook/flipper/flipper/0.239.0/flipper-0.239.0.pom - https://repo.maven.apache.org/maven2/com/facebook/flipper/flipper/0.239.0/flipper-0.239.0.pom - https://dl.google.com/dl/android/maven2/com/facebook/flipper/flipper/0.239.0/flipper-0.239.0.pom - https://www.jitpack.io/com/facebook/flipper/flipper/0.239.0/flipper-0.239.0.pom Required by: project :app > project :react-native-flipper * 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. > Get more help at https://help.gradle.org . BUILD FAILED in 1s.
안녕하세요. 궁금한 게 있으면 언제든지 질문하라고 하셔서... 용감(?)하게 질문해 봅니다. 매번 강의 너무 잘 듣고 있습니다^^ 강의를 따라 듣다 보니까, Pyside6에서 필요한 모듈은 모두 import한 다음, 클래스를 만들며넛 ui 제작이 시작되더라고요. 그런데, 처음 클래스를 만들고 초기화 할 때, init()메서드 부분이 잘 이해가 되지 않습니다. 어느 경우에는 parent를 매개변수로 설정하고, 어느 경우에는 super()를 안 쓰고 그러는데, 그냥 따라서 코드만 작성하기에는 뭔까 찝찝한 느낌이라 확실히 알고 코드를 작성하고 싶습니다. 검색을 해도...? "클래스를 만들 때는 그냥 쓰는 거다"라는 의미로 훅 넘어가는데... 이 구문들의 의미와 필요성?이 잘 와닿지가 않아 여쭙니다. 아래 첨부한 코드는 section13에 3번째 강의 내용 중 발췌한 내용입니다. class PriceApp(QWidget): def __init__(self): super(PriceApp, self).__init__() self.ui = Ui_Widget() self.ui.setupUi(self) self.setWindowTitle("QDataSteam Example")
해당에러가 뜹니다 무시해도되는걸까요? 비밀@비밀-ui-MacBookPro node_modules % npx pod install (node:21857) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead. (Use node --trace-deprecation ... to show where the warning was created) (node:21857) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/비밀/.npm/_npx/a0ca5f5666585aa2/node_modules/pm2/node_modules/isbinaryfile/package.json' of './lib/panino.js'. Please either fix that or report it to the module author POD ERR unknown command install
[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
num1 = int(input()) num2 = int(input()) num3 = int(input()) if num1 > num2 : if num2 > num3 : print (num3) elif num2 < num3 : print(num2) else : print (num1) 저는 이렇게 코드를 작성했는데 영상에서 제시해주신 코드와 제 코드 중 어떤 게 더 효율적이라고 볼 수 있을까요?
1. 현재 학습 진도 몇 챕터/몇 강을 수강 중이신가요? 3-4 2. 어려움을 겪는 부분 병합 정렬 구현해볼 때 두 배열의 비교하는 값이 같은 경우에서의 처리가 안되어 있는 것 같습니다. 3. 시도해보신 내용 while first_array_index < len(array1) and second_array_index < len(array2): if array1[first_array_index] < array2[second_array_index]: result_array.append(array1[first_array_index]) first_array_index += 1 elif array1[first_array_index] > array2[second_array_index]: result_array.append(array2[second_array_index]) second_array_index += 1 else: result_array.append(array1[first_array_index]) result_array.append(array2[second_array_index]) first_array_index += 1 second_array_index += 1 동일한 값을 비교할 경우 두 값을 모두 result 배열에 넣어줘야 하니까 else의 코드도 있어야 하지 않을까 생각이 들어 글 남깁니다! 좋은 강의 감사드립니다!
if(타이머 === "아직실행안함") 상태에서 스크롤퍼센트가 >= 0.7 이면 타이머 값을 다른 값으로 변경해주어야 타이머 = setTimeout(()=>{타이머="아직실행안함"},1000) 이 코드로 스로틀링 되는게 아닌가요? 영상에서는 타이머 값을 다른 값으로 변경해주지 않는데 이러면 타이머 = setTimeout(()=>{타이머="아직실행안함"},1000) 이 코드를 추가하기 전과 같지 않나요?
딕셔너리 키 값에 한글이나 영어로 값을 입력할때 띄어쓰기를 언더바로 표시 안해도 공백으로 해도 정상적으로 값이 입력이 되는데 꼭 언더바로 하는 이유가 있을까요? 그리고 변수 값을 지정할때 강의에서 my_dict인 부분에서는 Eh 파이썬이 띄어쓰기 공백을 인식을 못하더라구요 그래서꼭 _를 표시해줘야 에러를 안띄우던데 둘 차이가 뭔가요?