Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -45,5 +45,11 @@ def run_theia(image): | |
| 45 |  | 
| 46 | 
             
                return [(theia_decode_results, "Theia Results"), (gt_decode_results, "Ground Truth")]
         | 
| 47 |  | 
| 48 | 
            -
            demo = gr.Interface( | 
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| 49 | 
             
            demo.launch()
         | 
|  | |
| 45 |  | 
| 46 | 
             
                return [(theia_decode_results, "Theia Results"), (gt_decode_results, "Ground Truth")]
         | 
| 47 |  | 
| 48 | 
            +
            demo = gr.Interface(
         | 
| 49 | 
            +
                title="Theia: Distilling Diverse Vision Foundation Models for Robot Learning",
         | 
| 50 | 
            +
                description="This space demonstrates decoding Theia-predicted VFM representations to their original teacher model outputs. For DINOv2 we apply the PCA vsiualization, for SAM we use it's decoder to generate segmentation masks (but with SAM's pipeline of prompting), and for Depth-Anything we use it's deocder head to do depth prediction.",
         | 
| 51 | 
            +
                fn=run_theia,
         | 
| 52 | 
            +
                inputs=gr.Image(type="pil"),
         | 
| 53 | 
            +
                outputs=gr.Gallery(label="Input, DINOv2, SAM, Depth Anything", type="numpy")
         | 
| 54 | 
            +
            )
         | 
| 55 | 
             
            demo.launch()
         | 

