# Visdom

[Visdom](https://github.com/facebookresearch/visdom)은 데이터를 시각화하기 위한 툴입니다. torch, numpy를 지원하고 있습니다.

![from https://github.com/facebookresearch/visdom](https://camo.githubusercontent.com/d69475a01f9f327fc42931a21df8134d1fbdfc19/68747470733a2f2f6c68332e676f6f676c6575736572636f6e74656e742e636f6d2f2d62714839555843772d42452f574c3255736472726241492f41414141414141416e59632f656d727877436d6e7257345f434c54797955747442305359524a2d693443436951434c63422f73302f53637265656e2b53686f742b323031372d30332d30362b61742b31302e35312e30322b414d2e706e67253232766973646f6d5f626967253232)

#### 쉬운 시작

1.Visdom server 켜기

```
pip install visdom
python -m visdom.server
# localhost:8097에 접속합니다.
```

2\. Visdom에 로그 남기기

```python
DEFAULT_PORT = 8097
DEFAULT_HOSTNAME = "http://localhost"

vis = visdom.Visdom(port=DEFAULT_PORT, server=DEFAULT_HOSTNAME)
vis.text('텍스트 써보기') vis.images(img:numpy_type) # numpy type의 이미지를 변수에 할당 vis.matplot(plt) # matplotlib의 plot type의 변수에 할당
```

&#x20;더 자세한 사항은 [Visdom 문서](https://github.com/facebookresearch/visdom)를 참조해주세요


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pytorchhair.gitbook.io/project/utils/visdom.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
