Git Product home page Git Product logo

biggansarewatching's People

Contributors

anvoynov avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

biggansarewatching's Issues

`os.path.join` is not suitable for navigating in hdf5 tree on windows

Hi, I really like your BIgBiGAN2BigGAN code and it's super useful!
However running the code on Windows system will generate the error below, and after quick debugging, I find it's the path format is unrecognizable to hdf5.
'''
KeyError: "Unable to open object (object 'module\Generator\GBlock\conv0\u0:0' doesn't exist)"'
'''
And after using / as separator instead of \\ everything works like charm!
So I suggest a quick and dirty solution to enhance compatibility is to add .replace("\\", "/") to L149, L175, L189 in tf_to_torch

Reproduce Results on CUB dataset

Hi, remarkable work! Congratulations! I am trying to reproduce the segmentation results on CUB dataset. However, I got performance significantly different what is claimed in Table 1. Could you please help me to see if I did something wrong? Or if this result is within the normal range of variation? Many Thanks!

Reproduce results

image

Commands

BigBiGAN
python train_segmentation.py --out=results/CUB_BigBiGAN --gen_devices=1 --gan_weights=BigGAN/weights/BigBiGAN_x1.pth --z=embeddings/BigBiGAN_ImageNet_z.npy --bg_direction=BigGAN/weights/bg_direction.pth --val_images_dir=data/CUB/test_images --val_masks_dir=data/CUB/test_segmentations

E-BigBiGAN (w/o z-noising)
python train_segmentation.py --out=results/CUB_E_BigBiGAN --gan_weights=BigGAN/weights/BigBiGAN_x1.pth --z=embeddings/BigBiGAN_CUB_train_z.npy --bg_direction=BigGAN/weights/bg_direction.pth --val_images_dir=data/CUB/test_images --val_masks_dir=data/CUB/test_segmentations

E-BigBiGAN (w/ z-noising)
python train_segmentation.py --out=results/CUB_E_BigBiGAN_noise --gen_devices=1 --gan_weights=BigGAN/weights/BigBiGAN_x1.pth --z=embeddings/BigBiGAN_CUB_train_z.npy --z_noise=0.2 --bg_direction=BigGAN/weights/bg_direction.pth --val_images_dir=data/CUB/test_images --val_masks_dir=data/CUB/test_segmentations

For the val_images_dir and val_masks_dir, I just copied all the test images and segmentations to new folders, where test split follows ReDO (Chen et al., 2019) setting.

Environment

Ubuntu 18.04.4 LTS
GeForce GTX TITAN X
torch==1.3.0
torchvision==0.4.1a0+d94043a
scipy==1.3.1
numpy==1.17.3
Pillow==6.2.1
h5py==2.9.0
scikit_image==0.15.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.