mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 13:59:10 +08:00
Fix progress bar for full images datamanager (#2969)
This commit is contained in:
1 parent
c491e3e101
commit
8b728d4ec8
1 file changed
+15
-11
@@ -180,26 +180,30 @@ class FullImageDatamanager(DataManager, Generic[TDataset]):
|
|||||||
return data
|
return data
|
||||||
|
|
||||||
CONSOLE.log("Caching / undistorting train images")
|
CONSOLE.log("Caching / undistorting train images")
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor(max_workers=2) as executor:
|
||||||
cached_train = list(
|
cached_train = list(
|
||||||
executor.map(
|
track(
|
||||||
process_train_data,
|
executor.map(
|
||||||
track(
|
process_train_data,
|
||||||
range(len(self.train_dataset)),
|
range(len(self.train_dataset)),
|
||||||
description="Caching / undistorting train images",
|
|
||||||
transient=True,
|
|
||||||
),
|
),
|
||||||
|
description="Caching / undistorting train images",
|
||||||
|
transient=True,
|
||||||
|
total=len(self.train_dataset),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
CONSOLE.log("Caching / undistorting eval images")
|
CONSOLE.log("Caching / undistorting eval images")
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor(max_workers=2) as executor:
|
||||||
cached_eval = list(
|
cached_eval = list(
|
||||||
executor.map(
|
track(
|
||||||
process_eval_data,
|
executor.map(
|
||||||
track(
|
process_eval_data,
|
||||||
range(len(self.eval_dataset)), description="Caching / undistorting eval images", transient=True
|
range(len(self.eval_dataset)),
|
||||||
),
|
),
|
||||||
|
description="Caching / undistorting eval images",
|
||||||
|
transient=True,
|
||||||
|
total=len(self.eval_dataset),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user