# \#gan

**URL:** https://discuss.pytorch.kr/tag/gan/330.md

[최신](https://discuss.pytorch.kr/latest.md) · [카테고리](https://discuss.pytorch.kr/categories.md) · [태그](https://discuss.pytorch.kr/tags.md)

---

## [장시간 자율 코딩을 위한 에이전트 하네스 설계: GAN에서 영감 받은 멀티 에이전트 아키텍처 (feat. Anthropic)](https://discuss.pytorch.kr/t/gan-feat-anthropic/9427)

<div class="topic-metadata">

**Author:** [@9bow](https://discuss.pytorch.kr/u/9bow)\
**댓글:** 0\
**마지막 업데이트:** [3월 29, 2026, 3:30오전 UTC](https://discuss.pytorch.kr/t/gan-feat-anthropic/9427 "2026-03-29T03:30:50Z")

</div>

'장시간 자율 애플리케이션 개발을 위한 에이전트 하네스 설계' 연구 개요 연구 소개 및 배경 AI 코딩 에이전트가 빠르게 발전하면서, 단순한 코드 생성을 넘어 장시간 자율적으로 완성도 높은 애플리케이션을 개발할 수 있는지가 중요한 화두가 되고 있습니다. 글을 작성한 Prithvi Rajasekaran 및 그가 소속된 Anthropic Labs 팀은 이 문제에 대해 수개월간 실험하며, 클로드(Claude)가 고품질의 프론트엔드 디자인을 자율적으로 생성하게 만드는 문제와 독립적으로 장시간 실행되며 완전한 애플리케이션을 스스로 구축하게 만드는 두 가지 상호 연결된 핵심 과제에 집중해 왔습니다. 이 연구는 Anthropic이 이전에 발표한 프론트엔드 디자인 스킬과 장시간 코딩 에이전트 하네스 연구의 연장선에 있습니다. 이러한 연구 단계들에서 고도화된 프롬프트 엔지니어링과 하네스 설계를 통해 기존 기준치 이상의 괄목할 만한 성능 향상을 이루어냈지만, 개발이 거듭될수록 결국 어느 순간 품질 향상의 한계에 부딪히는 정체 현상을 경험하게 되었습니다. 연구자들은 적대적 생성 신경망(GAN)의 대립적 학습 구조에서 영감을 받아, 코드를 실제로 생성하는 생성자(generator) 에이전트와 이를 객관적으로 평가하는 평가자(evaluator) 에이전트로 분리하는 멀티 에이전트 구조를 설계하고, 여기에 기획자(planner) 를 추가하여 최종적으로 3-에이전트 아키텍처로 발전시켰습니다. 이 구조를 통해 수 시간에 걸친 자율 코딩 세션에서 풍부한 풀스택 애플리케이션을 생성하는 데 성공했습니다. 단순한 구현이 실패하는 이유 장시간 에이전트 코딩에서 반복적으로 나타나는 두 가지 핵심적인 실패 원인들이 있습니다: 첫 번째는 컨텍스트 윈도우 문제입니다. 모델은 긴 작업을 수행하면서 컨텍스트 윈도우가 채워지면 일관성을 잃는 경향이 있습니다. 일부 모델은 "컨텍스트 불안(Context Anxiety)"이라는 현상을 보이는데, 컨텍스트 한계에 가까워졌다고 판단하면 작업을 조기에 마무리…

---

## [pytorch GAN 학습 후 이미지 생성](https://discuss.pytorch.kr/t/pytorch-gan/2751)

<div class="topic-metadata">

**Author:** [@young-hun-jo](https://discuss.pytorch.kr/u/young-hun-jo)\
**댓글:** 5\
**마지막 업데이트:** [10월 30, 2023, 12:08오전 UTC](https://discuss.pytorch.kr/t/pytorch-gan/2751 "2023-10-30T00:08:19Z")

</div>

안녕하세요. Pytorch를 이용해서 MNIST 손글씨 데이터를 GAN 모델에 학습시키고 있는데요. GAN 모델의 생성자, 판별자 손실 함수는 Epoch를 1만 하더라도 이상적으로 잘 감소하는데.. 이상하게 생성자가 생성한 fake 이미지를 막상 출력해보면 너무 터무니 없이 다른데요..? 어떤 부분에서 원인이 될까요? Epoch를 늘려야 할까요..? 늘리기에는 Epoch가 1이 되더라도 판별자, 생성자 손실 함수가 0.000에 수렴해버립니다.. 모델 구조, 데이터 로드, 학습 코드 전문은 아래와 같습니다. 참고로 손실함수는 waserstein Loss function을 사용해서 WGAN을 구현하였어요! 원인이 될만한 부분 지적해주시면 감사하겠습니다 (\_\_) # 모델 구조 import torch import torch.nn as nn nz = 100 ngf = 64 nc = 1 ndf = 64 class Generator(nn.Module): def \_\_init\_\_(self): super(Generator, self).\_\_init\_\_() self.main1 = nn.Sequential( nn.ConvTranspose2d(in\_channels=nz, out\_channels=ngf\*4, kernel\_size=4, stride=1, padding=0, bias=False), nn.BatchNorm2d(num\_features=ngf\*4), nn.ReLU() ) self.main2 = nn.Sequential( nn.ConvTranspose2d…

---

## [pytorch로 GAN 학습시 마주하는 에러 질문](https://discuss.pytorch.kr/t/pytorch-gan/2700)

<div class="topic-metadata">

**Author:** [@young-hun-jo](https://discuss.pytorch.kr/u/young-hun-jo)\
**댓글:** 6\
**마지막 업데이트:** [10월 25, 2023, 7:31오전 UTC](https://discuss.pytorch.kr/t/pytorch-gan/2700 "2023-10-25T07:31:34Z")

</div>

안녕하세요! Pytorch를 이용해서 GAN을 만들고 MNIST 데이터를 이용해서 학습하려고 합니다! 그런데 아래와 학습 도중에 아래와 같은 에러를 마주했는데요! 원인이 뭔지 모르겠어서 어려움에 처하였습니다.. RuntimeError: Trying to backward through the graph a second time (or directly access saved tensors after they have already been freed). Saved intermediate values of the graph are freed when you call .backward() or autograd.grad(). Specify retain\_graph=True if you need to backward through the graph a second time or if you need to access saved tensors after calling backward. 우선 학습하는 코드는 아래와 같은데요! from torch.optim import Adam from torch.nn import BCELoss # params batch\_size = 100 z\_dim = 100 # define model & optimizer & Loss generator = Geneartor(batch\_size=BATCH\_SIZE, z\_dim=z\_dim) discriminator = Discriminator(batch\_size=BATCH\_SIZE) generator\_optim = Adam(generator.parameters()) discriminator\_optim = Adam(discriminator.parameters()) bce\_loss = BCELoss() # train for x, y in train\_loader: # 판별자 학습을 위한 데이터셋 생성(x:진짜 이미지, fake\_x: 가짜 이미지) real = torch.ones(l…

---

## [Annotate Research Papers: ML/DL 논문을 '쉽게' 읽을 수 있는, 주석이 포함된 논문 📖 저장소](https://discuss.pytorch.kr/t/annotate-research-papers-ml-dl/2559)

<div class="topic-metadata">

**Author:** [@9bow](https://discuss.pytorch.kr/u/9bow)\
**댓글:** 0\
**마지막 업데이트:** [9월 28, 2023, 12:31오전 UTC](https://discuss.pytorch.kr/t/annotate-research-papers-ml-dl/2559 "2023-09-28T00:31:27Z")

</div>

ML/DL 논문은 유용하지만 읽기 어렵습니다 :face\_with\_head\_bandage: (한때 불면증으로 고생했는데, 같은 팀 박사님 :student: 께서는 논문 읽기를 권하시더라고요 :face\_with\_open\_eyes\_and\_hand\_over\_mouth:) 새로 나오는 논문은 기하급수로 증가하고, 제가 읽는 속도는 느린 산술급수급이라, Paper Queue;;가 계속 늘어만 가고 있었는데;; 조금이나마 도움이 될만한 저장소를 TLDR 뉴스레터에서 발견하여 가져옵니다. (아직 양이 많지는 않아서 주로 처음 보는 분야의 논문을 읽을 때 유용하지 않을까... 싶습니다. :sweat\_smile: ) 지금까지의 논문 목록들은 아래와 같습니다. Field Category Annotated Paper Computer Vision Adaptive Risk Minimization Abstract Axial DeepLab Code Abstract ConvNext Code Abstract EfficientNetsV2 Code Abstract Supervised Flow-edge Guided Video Completion Code Abstract Is Batch Norm Unique? Abstract Knowledge Distillation: A good teacher is patient and consistent Code Abstract RandConv Code Abstract Polyloss Code Abstract Scaling Down Deep Learning Code Abstract Segment Anything Abstract Supervised Contrastive Learning Code Abstract Vision Transformer Code Abstract Are all ne…

---

## [Drag Your GAN: 포인트를 조작하여 이미지를 생성 / 변경](https://discuss.pytorch.kr/t/drag-your-gan/1608)

<div class="topic-metadata">

**Author:** [@9bow](https://discuss.pytorch.kr/u/9bow)\
**댓글:** 2\
**마지막 업데이트:** [5월 24, 2023, 1:20오전 UTC](https://discuss.pytorch.kr/t/drag-your-gan/1608 "2023-05-24T01:20:42Z")

</div>

지난 주에 핫한 논문으로 Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold이 꼽혀서 들고와봤습니다. 요즘 발전하는 속도나 결과물들을 보면... 시계열 분야에서 끄적거리는 제 수준에서는 가히 충격적입니다 :astonished: :astonished: :astonished: 소개 영상부터 보시죠;; 논문은 여기에서 보실 수 있고, 프로젝트 페이지는 아래와 같습니다. 저자가 지난 주(5/19)에 트위터로도 공개를 했었는데, 아래에서 사람들의 반응과 대화를 보실 수 있습니다. https://twitter.com/XingangP/status/1659483374174584832 어디까지 갈지 궁금하기도 하고 무섭기도 하고 그렇네요 :see\_no\_evil: :hear\_no\_evil: :speak\_no\_evil:
