FALdetector icon indicating copy to clipboard operation
FALdetector copied to clipboard

Possible to make this setup and running at Google Colab?

Open dawnFirefly opened this issue 4 years ago • 12 comments

Hi, thanks for making this great model!

With the recent meme "dame da ne" using deep fake to create face swap video, and someone set it up on Google Colab to make it easy to use for people like who have little to no coding experience. I wonder is possible for FALdetector to achieve the same thing?

dawnFirefly avatar Sep 03 '20 00:09 dawnFirefly

It is very easy to install and use on colab. Step by step: 1: open new notebook and set runtime is GPU 2: connect to google drive for storage 3: " %cd " cd to drive folder 4: !git clone https://github.com/PeterWang512/FALdetector.git 5: %cd to folder FALdetector 6: Follow (2) Run our models on FALdetector github Goodluck to u

hirusnov avatar Sep 06 '20 07:09 hirusnov

Hi,when I trying to use on colab in step5: %cd it shows: /root I have already connect to my google drive how to chance to folder FALdetector?

burninglay avatar Oct 19 '20 10:10 burninglay

Hi,when I trying to use on colab in step5: %cd it shows: /root I have already connect to my google drive how to chance to folder FALdetector?

Type that code: import os os.chdir('/content/drive/My Drive/folder name') after that, you can confirm it worked with the pwd command like this: !pwd

in step 3: use %cd /content/drive/MyDrive/ and start to clone github after clone: use %cd FALdetector to go to folder

hirusnov avatar Oct 19 '20 11:10 hirusnov

Hi,when I trying to use on colab in step5: %cd it shows: /root I have already connect to my google drive how to chance to folder FALdetector?

Type that code: import os os.chdir('/content/drive/My Drive/folder name') after that, you can confirm it worked with the pwd command like this: !pwd

in step 3: use %cd /content/drive/My\ Drive/ and start to clone github after clone: use %cd FALdetector to go to folder

thx for helping. I have run the model successfully: Probability being modified by Photoshop FAL: 5.25% But how can I save the Process picture(like Suggest undo ) as the demo shows?

burninglay avatar Oct 20 '20 03:10 burninglay

Hi,when I trying to use on colab in step5: %cd it shows: /root I have already connect to my google drive how to chance to folder FALdetector?

Type that code: import os os.chdir('/content/drive/My Drive/folder name') after that, you can confirm it worked with the pwd command like this: !pwd in step 3: use %cd /content/drive/My\ Drive/ and start to clone github after clone: use %cd FALdetector to go to folder

thx for helping. I have run the model successfully: Probability being modified by Photoshop FAL: 5.25% But how can I save the Process picture(like Suggest undo ) as the demo shows?

I dont know how to save result too. I think we can change the code, but i dont know.

hirusnov avatar Oct 20 '20 03:10 hirusnov

Hi,when I trying to use on colab in step5: %cd it shows: /root I have already connect to my google drive how to chance to folder FALdetector?

Type that code: import os os.chdir('/content/drive/My Drive/folder name') after that, you can confirm it worked with the pwd command like this: !pwd in step 3: use %cd /content/drive/My\ Drive/ and start to clone github after clone: use %cd FALdetector to go to folder

thx for helping. I have run the model successfully: Probability being modified by Photoshop FAL: 5.25% But how can I save the Process picture(like Suggest undo ) as the demo shows?

Hi, can you share the link to your colab model? I have trouble install the valset to the colab, plus there is no point to reinvent the wheel.

dawnFirefly avatar Dec 29 '20 03:12 dawnFirefly

Hi,when I trying to use on colab in step5: %cd it shows: /root I have already connect to my google drive how to chance to folder FALdetector?

Type that code: import os os.chdir('/content/drive/My Drive/folder name') after that, you can confirm it worked with the pwd command like this: !pwd in step 3: use %cd /content/drive/My\ Drive/ and start to clone github after clone: use %cd FALdetector to go to folder

thx for helping. I have run the model successfully: Probability being modified by Photoshop FAL: 5.25% But how can I save the Process picture(like Suggest undo ) as the demo shows?

Hi, can you share the link to your colab model? I have trouble install the valset to the colab, plus there is no point to reinvent the wheel.

What wrong with you guys? Can you explain more?

hirusnov avatar Dec 29 '20 03:12 hirusnov

Hi,when I trying to use on colab in step5: %cd it shows: /root I have already connect to my google drive how to chance to folder FALdetector?

Type that code: import os os.chdir('/content/drive/My Drive/folder name') after that, you can confirm it worked with the pwd command like this: !pwd in step 3: use %cd /content/drive/My\ Drive/ and start to clone github after clone: use %cd FALdetector to go to folder

thx for helping. I have run the model successfully: Probability being modified by Photoshop FAL: 5.25% But how can I save the Process picture(like Suggest undo ) as the demo shows?

Hi, can you share the link to your colab model? I have trouble install the valset to the colab, plus there is no point to reinvent the wheel.

What wrong with you guys? Can you explain more?

image https://colab.research.google.com/drive/1qbZ53V3Lzwe5f_nRRJi2LaXXCV_Iw1Ij?usp=sharing Idk where did I do wrong, but it keep showing invalid syntax, after like 2 hr of trial and error this is where I gave up last time...

dawnFirefly avatar Dec 29 '20 04:12 dawnFirefly

Hi,when I trying to use on colab in step5: %cd it shows: /root I have already connect to my google drive how to chance to folder FALdetector?

Type that code: import os os.chdir('/content/drive/My Drive/folder name') after that, you can confirm it worked with the pwd command like this: !pwd in step 3: use %cd /content/drive/My\ Drive/ and start to clone github after clone: use %cd FALdetector to go to folder

thx for helping. I have run the model successfully: Probability being modified by Photoshop FAL: 5.25% But how can I save the Process picture(like Suggest undo ) as the demo shows?

Hi, can you share the link to your colab model? I have trouble install the valset to the colab, plus there is no point to reinvent the wheel.

What wrong with you guys? Can you explain more?

image https://colab.research.google.com/drive/1qbZ53V3Lzwe5f_nRRJi2LaXXCV_Iw1Ij?usp=sharing Idk where did I do wrong, but it keep showing invalid syntax, after like 2 hr of trial and error this is where I gave up last time...

Ohhh I see you must use !python instead of python on colab Goodluck guy

hirusnov avatar Dec 29 '20 04:12 hirusnov

Hi,when I trying to use on colab in step5: %cd it shows: /root I have already connect to my google drive how to chance to folder FALdetector?

Type that code: import os os.chdir('/content/drive/My Drive/folder name') after that, you can confirm it worked with the pwd command like this: !pwd in step 3: use %cd /content/drive/My\ Drive/ and start to clone github after clone: use %cd FALdetector to go to folder

thx for helping. I have run the model successfully: Probability being modified by Photoshop FAL: 5.25% But how can I save the Process picture(like Suggest undo ) as the demo shows?

Hi, can you share the link to your colab model? I have trouble install the valset to the colab, plus there is no point to reinvent the wheel.

What wrong with you guys? Can you explain more?

image https://colab.research.google.com/drive/1qbZ53V3Lzwe5f_nRRJi2LaXXCV_Iw1Ij?usp=sharing Idk where did I do wrong, but it keep showing invalid syntax, after like 2 hr of trial and error this is where I gave up last time...

you don't need to download valset, it is only used to validate the model's accuracy

hirusnov avatar Dec 29 '20 05:12 hirusnov

Download the dataset

cd data !bash download_valset.sh cd ..

Run evaluation script. Model weights need to be downloaded.

!python eval.py --dataroot data --global_pth weights/global.pth --local_pth weights/local.pth --gpu_id 0 This is true code for download valset and test

hirusnov avatar Dec 29 '20 05:12 hirusnov

I made one you can fork, see #31 In the issue I have some notes on more efficient file stuff (via Drive) including saving the files in a Drive dir, and several ways to collect input images.

konsumer avatar Apr 20 '21 19:04 konsumer