KaihuaTang / Scene-Graph-Benchmark.pytorch

A new codebase for popular Scene Graph Generation methods (2020). Visualization & Scene Graph Extraction on custom images/datasets are provided. It's also a PyTorch implementation of paper “Unbiased Scene Graph Generation from Biased Training CVPR 2020”
MIT License
1.03k stars 228 forks source link

AssertionError: Invalid type <class 'NoneType'> for key TO_TEST #206

Open jack-zzzzz opened 3 months ago

jack-zzzzz commented 3 months ago

❓ Questions and Help

edace15e2ef943a2590669f7102d1a3b

Maelic commented 3 months ago

Hi, New versions of yacs do not allow parameters to have a None value, so you have to change the parameter DATASETS.TO_TEST value to "" (empty string) instead if you don't want to use it, see https://github.com/Maelic/Scene-Graph-Benchmark-Cuda11.7/blob/9f4fbaf11e81843884c6c154eaf8b713db66966d/sgg_benchmark/config/defaults.py#L86

You may also have to change the dataloader accordingly: https://github.com/Maelic/Scene-Graph-Benchmark-Cuda11.7/blob/9f4fbaf11e81843884c6c154eaf8b713db66966d/sgg_benchmark/data/build.py#L167