2022年9月13日火曜日

Stable Diffusion WebUi - Altryne の設定

1.AltryneのGoogle Colabを開く

2.「1 - Setup stage」と「2 - Run the Stable Diffusion webui」を実行する(再生マーク)

3.「3 - Launch WebUI for stable diffusion」を実行する
 ⇒ 以下のエラーになるので、自分のGoogle Driveの「MyDrive/AI/models」にsd-v1-4.ckptをダウンロードして入れておく。4GBある。
  FileNotFoundError: [Errno 2] No such file or directory: '/content/drive/MyDrive/AI/models/sd-v1-4.ckpt'

 ⇒ もう一度実行


 

2021年11月19日金曜日

funimation downloader nx (aniDL.exe)のセットアップ方法

まっくんという人が公開している情報に英語CC字幕のアニメリストがとてもよい!
DLの方法まで載っていてありがたい。


だが2021/11現在、そのDL方法のfunimation-downloader-nxのリンクが切れていたりしてたので、最新情報を補足。

funimationのダウンローダーは色々な人が作ってるが、更新がされてないものが多い。

この中で今生きているのが↓
最新のバージョンではexeにコンパイルするように変わっている。
古いバージョンの方がセットアップは簡単。

以下手順
【古いバージョンの1.04のfuni.js】
tags→1.04を選び、

Download ZIPでダウンロード
この後は先人の手順でOK

【最新バージョンのaniDL.exe】
branches-masterだとコンパイルが必要。
1:branches-masterをDL→解凍。そのフォルダで以下を実行。
  npm install -D typescript
  npm install -D ts-node
  npm init -y
  npm run build-win64
  → これでaniDL.exeという実行ファイルが出来上がる。
    7z.exeが必要。インストールしてパスを通しておく。参考リンク
   場所は:multi-downloader-nx-master\lib\_builds\multi-downloader-nx-1.0.4-win64\aniDL.exe
   multi-downloader-nx-1.0.4-win64 を使いやすいところに移動
2:aniDL.exeでfunimationにログイン
  .\aniDL.exe --auth --service funi
  → この後、IDとパスワードを聞かれて、入れたら認証キーが保存される。
    以降はログインはしなくてよくなる。
3:multi-downloader-nx-1.0.4-win64\binフォルダに以下を設置
  ./bin/ffmpeg/ffmpeg.exe
  ./bin/mkvtoolnix/mkvmerge.exe
4:ダウンロード実行
  オプションは「--service funi」を指定すること以外はfuni.jsと大体同じ。

aniDLのオプション
Usage: aniDL.exe [options]

Authentication:
      --auth  Enter authentication mode                                                                        [boolean]

Fonts:
      --dlFonts   Download all required fonts for mkv muxing                                                   [boolean]
      --fontName  Set the font to use in subtiles (Funi only)                                                   [string]

Search:
  -f, --search         Search for an anime                                                                      [string]
      --search-type    Search type used for crunchyroll
                               [string] [choices: "", "top_results", "series", "movie_listing", "episode"] [default: ""]
  -p, --page           Page number for search results                                                           [number]
      --search-locale  Search locale used for crunchyroll
       [string] [choices: "", "en-US", "es-LA", "es-419", "es-ES", "pt-BR", "fr-FR", "de-DE", "ar-ME", "ar-SA", "it-IT",
                                                                                         "ru-RU", "tr-TR"] [default: ""]

Downloading:
      --new                   Get last updated series list from crunchyroll                                    [boolean]
      --movie-listing, --flm  Get video list by Movie Listing ID                                                [string]
      --series, --srz         Get season list by Series ID                                                      [string]
  -s                          Set the season ID                                                                 [string]
  -e, --episode               Sets the Episode Number/IDs (comma-separated, hyphen-sequence)                    [string]
  -q                          Set the quality layer. Use 0 to get the best quality.                [number] [default: 7]
  -x, --server                Select server                                  [number] [choices: 1, 2, 3, 4] [default: 1]
  -k, --kstream               Select specific stream for crunchyroll[number] [choices: 1, 2, 3, 4, 5, 6, 7] [default: 1]
      --partsize              Set the amount of parts that should be downloaded in paralell       [number] [default: 10]
      --hslang                Download video with specific hardsubs
         [string] [choices: "none", "en", "es-419", "es", "pt-BR", "fr", "de", "ar", "it", "ru", "tr"] [default: "none"]
      --subLang               Set the subtitles to download (Funi only)
                                                                 [array] [choices: "enUS", "esLA", "ptBR"] [default: []]
      --dlsubs                Download subtitles by language tag (space-separated) (crunchy only)
    [array] [choices: "all", "none", "en", "es-419", "es", "pt-BR", "fr", "de", "ar", "it", "ru", "tr"] [default: "all"]
      --novids                Skip downloading videos                                                          [boolean]
      --noaudio               Skip downloading audio                                                           [boolean]
      --nosubs                Skip downloading subtitles                                                       [boolean]
      --dub                   Set languages to download (funi only)
                                           [array] [choices: "enUS", "esLA", "ptBR", "zhMN", "jaJP"] [default: ["enUS"]]
      --dubLang               Set the language to download (Crunchy only)
               [string] [choices: "eng", "spa", "por", "fra", "deu", "ara", "ita", "rus", "tur", "jpn"] [default: "jpn"]
      --all                   Used to download all episodes from the show (Funi only)         [boolean] [default: false]
      --fontSize              Used to set the fontsize of the subtitles                           [number] [default: 55]
      --allSubs               If set to true, all available subs will get downloaded (Funi only)
                                                                                              [boolean] [default: false]
      --allDubs               If set to true, all available dubs will get downloaded (Funi only)
                                                                                              [boolean] [default: false]
      --timeout               Set the timeout of all download reqests. Set in millisecods      [number] [default: 60000]
      --simul                 Force downloading simulcast ver. instead of uncut ver. (if uncut ver. available) (Funi
                              only)                                                           [boolean] [default: false]

Muxing:
      --mp4      Mux video into mp4                                                           [boolean] [default: false]
      --skipmux  Skip muxing video and subtitles                                                               [boolean]

Filename Template:
      --fileName  Set the filename template. Use ${variable_name} to insert variables.
                  You may use 'title', 'episode', 'showTitle', 'season', 'width', 'height', 'service' as variables.
                                               [string] [default: "[${service}] ${showTitle} - ${episode} [${height}p]"]
      --numbers   Set how long a number in the title should be at least.
                  Set in config: 3; Episode number: 5; Output: 005
                  Set in config: 2; Episode number: 1; Output: 01
                  Set in config: 1; Episode number: 20; Output: 20                                 [number] [default: 2]

Debug:
      --nosess                                          [boolean] [default: "Reset session cookie for testing purposes"]
      --debug   Debug mode (tokens may be revield in the console output)                                       [boolean]

Utilities:
      --nocleanup  Don't delete subtitles and videos after muxing                             [boolean] [default: false]
      --service    Set the service to use                                        [required] [choices: "funi", "crunchy"]
      --update     Force the tool to check for updates                                        [boolean] [default: false]

Help:
  -h, --help  Show this help                                                                                   [boolean]







2021年10月30日土曜日

英語学習のための動画プレーヤー

英語学習のための動画プレーヤー
-2
-10 -2 +10 +30  fast slow





-2 play-pause
再生画面タッチ -> pause/resume

2020年7月18日土曜日

Redmi Note 9s:ROM操作概要

  • 準備
  • 公式ロムの入れ方
    ※11.0.9だとEvolution-XのROM入れた時にwifiがバグるらしいので11.0.7にするため
    ※もしくは元に戻したい時とか
    • 公式ROMをDL
      Global→Fastboot Stable→11.0.7→Download
    • Xiaomi Flash ToolをDL
    • fastbootモードで起動(ボリューム下押しながら起動)
    • Xiaomi Flash ToolでROM書き換え
      ※最初のdriverインストールでエラー(logフォルダのファイルが無いというエラー) → MiFlashがあるフォルダにlogフォルダ作ったらOKだった
    • 失敗メモ
      • error:Not catch checkpoint (\$fastboot -s .* lock),flash is not done
        → でも起動した。重要な箇所は終わってたから?ずっと11.0.7使うわけじゃないのでこれ以上やってない
      • Xiaomi ADB/Fastboot toolを使ったROM書き換え
        → 公式ROMの認識までは行けたが、「Flash ROM」するとstatusに文字化けメッセージが出て失敗した。原因わからず。公式のXiaomi Flash Toolで書き換えた
      • 公式bat(flash_all.bat)でROM書き換え
        公式ROMを解凍すると入っているコマンドファイル
        fastbootモードにしてからPCで実行する
        → コマンド結果ではOKだが、再起動を繰り返すようになった。原因わからず。公式のXiaomi Flash Toolで書き換えた。(これもflash_all.batを使うみたいだが、直接実行するものじゃないのかな?)
  • Evolution-Xの入れ方
    • ROMをDL
    • TWRPを入れる
    • fastbootモードで起動(ボリューム下押しながら起動)
    • TWRPをスマホに送り込むコマンドをPCから実行
      fastboot flash recovery recovery-redmi_note9s-3.4.1-10.0-b5.img
    • リカバリーモードで起動(ボリューム上押しながら起動)
    • TWRPがパスワードを聞いてきたらロックスクリーン解除のを入力
    • TWRPをスリープしない設定にする(バグ対応)
    • EvolutionXをROMに書き込む

2020年6月26日金曜日

プロテインコスパランキング

タンパク質を20gとるとして、結局いくらでカロリーはどうなのか。
タンパク質以外がどれぐらい入ってんのか。
そんな情報。

※プロテ率=カロリー中のプロテインの占める割合。どんだけ余計な脂質+糖質があるかが分かる。

結論:
体重も増やしたい人⇒ダイソーきな粉の圧倒的コスパ感
体重は増やしたくない人⇒ 業スー鶏むね肉か業スー冷凍鶏モモ肉

考察
ダイソーきな粉は異常なコスパ。ただし脂質と糖質も多いので困ったところ。
鶏むね肉のコスパが良いがもも肉はブラジル産だとそれより安い。パサ感が苦手ならもも肉もあり。
体重増加を狙う場合は皮あり。体重を増やしたくない場合は皮は捨てる。
鯖缶も十分あり。
プロテインパウダーはコスパに優れているというのもあるが、手軽、お菓子みたいでおいしい、吸収率がとかいう動機で買うもの。

プロテイングラノーラもコスパは意外に良い。食事も一緒にとると考えればプロテ%の低さもあり。

コンビニは200円ぐらいはする。それはまぁ仕方ないところか。

2020年5月31日日曜日

GooglePlay Storeで覚えのないレビューが勝手に投稿されていた

GooglePlay Storeで覚えのないYoutubeアプリへのレビューが勝手に投稿されていた。



レビューの内容:
最近は頭の悪いAIで利益の剥奪をしているみたいですが、全くAIの判断基準が分かりません。くり返しの多い〜、やら色々な基準があるんでしょうけどもっと具体的に、例えば動画で解説するなど解決策はあるのではないのでしょうか。

なんだこれ?
アカウント乗っ取り?
投稿は5/30だがその2日前に「アカウントが復元されました」のメールが来ていたから、それと関係が?

アカウントのアクティビティを見ると、確かに家族のスマホでPlay Storeでyoutubeを開いている記録があった。
がこんなレビューを書いた覚えはないようだ。

ログイン履歴をみても、特に覚えのない機器からのログインはない。
考えられるのは、そのスマホで勝手にレビュー登録されたか。もしくはワンタップでレビュー送信される状態まで下書きされていて、特に確認せずOK押したか。

内容から見て、Youtuberの不満のようだ。
広く喧伝したがっていると言えばそう読めもするので、スパムだとしたら分かるが、どうやって投稿されたかわからないので気持ち悪い。

とりあえず、該当スマホからアカウントを抜くことと、パスワードの変更、信頼しているデバイスの全削除は行った。