mirror of
https://github.com/open-mmlab/mmclassification.git
synced 2025-06-03 21:53:55 +08:00
[Fix] Fix multi-node test tmp dir (#251)
* fix multi-node test tmp dir * fix mmcv version
This commit is contained in:
parent
5ee08767f2
commit
dc296f64c6
@ -126,7 +126,8 @@ def collect_results_cpu(result_part, size, tmpdir=None):
|
|||||||
dtype=torch.uint8,
|
dtype=torch.uint8,
|
||||||
device='cuda')
|
device='cuda')
|
||||||
if rank == 0:
|
if rank == 0:
|
||||||
tmpdir = tempfile.mkdtemp()
|
mmcv.mkdir_or_exist('.dist_test')
|
||||||
|
tmpdir = tempfile.mkdtemp(dir='.dist_test')
|
||||||
tmpdir = torch.tensor(
|
tmpdir = torch.tensor(
|
||||||
bytearray(tmpdir.encode()), dtype=torch.uint8, device='cuda')
|
bytearray(tmpdir.encode()), dtype=torch.uint8, device='cuda')
|
||||||
dir_tensor[:len(tmpdir)] = tmpdir
|
dir_tensor[:len(tmpdir)] = tmpdir
|
||||||
|
@ -1 +1 @@
|
|||||||
mmcv-full>=1.3.0
|
mmcv-full>=1.3.0,<1.5.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user