# ScanGAN360 **Repository Path**: rolfma/ScanGAN360 ## Basic Information - **Project Name**: ScanGAN360 - **Description**: 自用github搬运 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-15 - **Last Updated**: 2023-05-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ScanGAN360 Code and model for the paper "[ScanGAN360: A Generative Model of Realistic Scanpaths for 360º Images](http://webdiis.unizar.es/~danims/projects/vr-scanpaths.html)". ![Teaser](https://github.com/DaniMS-ZGZ/ScanGAN360/blob/main/img/vr-scanpaths.jpg) ## Requirements This work was developed using: ``` * python 3.7.4 * pytorch 1.2.0 * cudatoolkit 10.0.30 * opencv 4.1.2 ``` You can install an environment with all required dependencies using `scangan360.yml` file in Anaconda. ## Inference The current version of the repository includes a basic, yet functional version to generate scanpaths from a 360º image using the ScanGAN360 model. ### Usage ``` python main.py --mode inference ``` This will read an image `image_path = "data/test.jpg"` and generate a set of scanpaths that will be saved in `path_to_save = "test/"`. You can modify both those paths, and the number of generated scanpaths `n_generated`. Each of the images will contain 25 different scanpaths. ## Training the model Training is now available. [Updated June 15th] ``` python main.py --mode train ``` Make sure you have correctly updated `utils.py`, including all the directories required. Also, check the `data` folder to download the required images and processed gaze data. Checkpoints and models are saved periodically in the assigned folder.