Skip to content

Commit c72a173

Browse files
authored
Revert "[Docs] Update and make improvements" (#5858)
* Revert "[`Docs`] Update and make improvements (#5819)" This reverts commit c697f52. * Update README.md * Update memory.md * Update basic_training.md * Update write_own_pipeline.md * Update fp16.md * Update basic_training.md * Update write_own_pipeline.md * Update write_own_pipeline.md
1 parent dc21498 commit c72a173

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/source/en/tutorials/basic_training.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ Now you can wrap all these components together in a training loop with 🤗 Acce
326326

327327
... # Sample a random timestep for each image
328328
... timesteps = torch.randint(
329-
... 0, noise_scheduler.config.num_train_timesteps, (bs,), device=clean_images.device
329+
... 0, noise_scheduler.config.num_train_timesteps, (bs,), device=clean_images.device,
330+
... dtype=torch.int64
330331
... )
331332

332333
... # Add noise to the clean images according to the noise magnitude at each timestep

docs/source/ko/tutorials/basic_training.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ TensorBoard에 로깅, 그래디언트 누적 및 혼합 정밀도 학습을 쉽
327327

328328
... # 각 이미지를 위한 랜덤한 타임스텝(timestep)을 샘플링합니다.
329329
... timesteps = torch.randint(
330-
... 0, noise_scheduler.config.num_train_timesteps, (bs,), device=clean_images.device
330+
... 0, noise_scheduler.config.num_train_timesteps, (bs,), device=clean_images.device,
331+
... dtype=torch.int64
331332
... )
332333

333334
... # 각 타임스텝의 노이즈 크기에 따라 깨끗한 이미지에 노이즈를 추가합니다.

0 commit comments

Comments
 (0)