Giter Site home page Giter Site logo

Google Colab about barbershop HOT 8 OPEN

zpdesu avatar zpdesu commented on August 30, 2024
Google Colab

from barbershop.

Comments (8)

deshwalmahesh avatar deshwalmahesh commented on August 30, 2024 4

@osushilover you can try this little demo in the meanwhile. too slow though.

from barbershop.

osushilover avatar osushilover commented on August 30, 2024

@deshwalmahesh
You have the technical skills to build a Colab notebook from Python!
I admire you.

I tried the code you provided and it was indeed slow even with Tesla V100 under high memory on Colab Pro+.

However, I was able to process the test images and I know this code will definitely be useful for others, so thank you very much for your help.

If you would allow me, I would like to ask you to change the permissions of this notebook so that anyone can modify it.
I am not a programmer and do not understand what it means except for that first cell.
Therefore, I am embarrassed and frustrated that I still cannot try FaceSwap with the images I have prepared.

from barbershop.

Styml avatar Styml commented on August 30, 2024

If you would allow me, I would like to ask you to change the permissions of this notebook so that anyone can modify it.

You can simply copy notebook and change it yourself, if I understood you correctly.
If you want to faceswap your images, just change the urls in the second cell to links to your images and change fourth cell to !python main.py --im_path1 0.png --im_path2 1.png --sign realistic --smooth 5 or something like that

from barbershop.

deshwalmahesh avatar deshwalmahesh commented on August 30, 2024

@deshwalmahesh You have the technical skills to build a Colab notebook from Python! I admire you.

I tried the code you provided and it was indeed slow even with Tesla V100 under high memory on Colab Pro+.

However, I was able to process the test images and I know this code will definitely be useful for others, so thank you very much for your help.

If you would allow me, I would like to ask you to change the permissions of this notebook so that anyone can modify it. I am not a programmer and do not understand what it means except for that first cell. Therefore, I am embarrassed and frustrated that I still cannot try FaceSwap with the images I have prepared.

Thank you for such kind words. If you want to modify that notebook, you can either press Ctrl + S and save it in a drive or you could Download the ipynb and upload it again in Colab. I hope that works for you.

from barbershop.

kuldeep70391 avatar kuldeep70391 commented on August 30, 2024

Downloading StyleGAN2 checkpoint: pretrained_models/ffhq.pt
Access denied with the following error:

Cannot retrieve the public link of the file. You may need to change
the permission to 'Anyone with the link', or have had many accesses. 

You may still be able to access the file from the browser:

 https://drive.google.com/uc?id=1AT6bNR2ppK8f2ETL_evT27f3R_oyWNHS 

Loading StyleGAN2 from checkpoint: pretrained_models/ffhq.pt
Traceback (most recent call last):
File "main.py", line 117, in
main(args)
File "main.py", line 18, in main
ii2s = Embedding(args)
File "/content/Barbershop/Barbershop/models/Embedding.py", line 23, in init
self.net = Net(self.opts)
File "/content/Barbershop/Barbershop/models/Net.py", line 15, in init
self.load_weights()
File "/content/Barbershop/Barbershop/models/Net.py", line 25, in load_weights
checkpoint = torch.load(self.opts.ckpt)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 771, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 270, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.8/dist-packages/torch/serialization.py", line 251, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'pretrained_models/ffhq.pt'

from barbershop.

AdityaVishwakarmaIN avatar AdityaVishwakarmaIN commented on August 30, 2024

true too slow in nature

from barbershop.

fingerella2000 avatar fingerella2000 commented on August 30, 2024

@deshwalmahesh Thank you for the sharing. It works like a charm without setting up the conda environment rather than just pip install ninja

Curious how does it work? Could you share a bit more about the magic?
Thanks.

from barbershop.

eralds avatar eralds commented on August 30, 2024

@deshwalmahesh Thank you for the sharing. It works like a charm without setting up the conda environment rather than just pip install ninja

Curious how does it work? Could you share a bit more about the magic? Thanks.

I also want to know why. My guess would be that the collab environment already has all the packages installed.

from barbershop.

Related Issues (20)

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.