

# Farther Than Mirror: Explore Pattern-Compensated Depth of Mirror with Temporal Changes for Video Mirror Detection


## Python Environment

```
python3.9 
pytorch 2.1.2
cuda 12.2

transformers==4.42.0.dev0
huggingface-hub==0.23.0
```

## Data Downloading (VMD-D dataset)

[https://portland-my.sharepoint.com/personal/jiayinlin5-c_my_cityu_edu_hk/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fjiayinlin5%2Dc%5Fmy%5Fcityu%5Fedu%5Fhk%2FDocuments%2FCVPR2023%5Fresource&ga=1](https://portland-my.sharepoint.com/personal/jiayinlin5-c_my_cityu_edu_hk/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fjiayinlin5%2Dc%5Fmy%5Fcityu%5Fedu%5Fhk%2FDocuments%2FCVPR2023%5Fresource&ga=1)
## Pre-trained Weight Downloading
### SegFormer-B2
[https://huggingface.co/nvidia/segformer-b2-finetuned-ade-512-512](https://huggingface.co/nvidia/segformer-b2-finetuned-ade-512-512)

The SegFormer-B2 weight should be put in ***"./weight/segformer-b2-finetuned-ade-512-512"***

### DepthAnything-Small
The DepthAnything-Small will be automatically loaded through the following code:
```python
encoder = 'vits'
self.depth_anything_model = DepthAnything.from_pretrained('LiheYoung/depth_anything_{:}14'.format(encoder))
```


